Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run parent page script from child page 1

Status
Not open for further replies.

tekkerguy

Programmer
Nov 16, 2005
196
US
I posted this in the ajax forum, but it applies to javascript as well.

Is there any way that. suppose I have a main page that when the user clicks the go button, it opens up a new page with a graph image. Now in the new page, I want the user to click a button, or select a new graph type from a pull down menu, and the original script from the parent page is rerun to refresh the current page?

Basically, can a child page execute javascript code from a parent page?
 
You can execute code in the parent page calling parent.whatever.

And you can execute code from the parent page by externalizing it to a js file and including if in child page.

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top