CanMan2004 Posted September 23, 2006 Share Posted September 23, 2006 hi allI have a php page which runs a query, after it has run, it pops up a message saying the information has been stored, after this, I then run a few more of these statements with jscript in between, for example[code]top.iframe.location=show.php?status=complete[/code]The final one I want to run, I can't seem to be able to figure a way to target the script.I want to put the following link in between a print statement (like above), but specify a target of where the link should funtion.[code]"<a href="javascript:ajaxpage('masterpage.php?question=1', 'bottomcolumn');">Click here</a>"[/code]Basically my query is in an iframe, but the script the link above is for, sits in on the index page where the iframe is located, as the script the link is for is not located inside the iframe, it wont work.Make any sense?I would move the script into the iframe, but for what im trying to do, it wouldnt be possible.Is there a piece of php code which I could add to the link[code]<a href="javascript:ajaxpage('masterpage.php?question=1', 'bottomcolumn');">Click here</a>[/code]and it would target and run that link in the main index page and not in the iframe, then place this new piece of code in between a print statement, so it automatically runs when the query in the iframe has finished.Any help or guidence would be greatThanks in advanceDave ??? Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted September 23, 2006 Share Posted September 23, 2006 We do not have the source of the ajaxpage function, so we do not know what it does.This belongs in the javascript forum by the way. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.