ninedoors
Posts: 17
Joined: Tue Feb 17, 2009 1:53 am

Call function on parent page

Is it possible to call a javascript function on the parent page by clicking a link in the highslide window? I am using an iframe. I first have the user search for a person, if they are found I want them to be able to click the link that is associated to a person and pass it to a function on the parent page that will use the id and fill a div with info. Is that posssible?

Thanks
torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

Re: Call function on parent page

Yes, you can access the parent page like you would do from any other iframe. If your parent page function is called someFunction, you can call it from the iframe by parent.window.someFunction.
Torstein Hønsi
CTO, Founder
Highsoft

Return to “Highslide JS Usage”