Jump to content

Targetting script in parent frame


CanMan2004

Recommended Posts

hi all

I 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 great

Thanks in advance

Dave ???
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.