The contained page can access a function on the container page like so:
Code:
window.parent.functionname()
Armed with this knowledge, you can have on each recipe page:
HTML Code:
<body onload="window.parent.highlight('recipe_name')">
"recipe_name" could simply be the id of the item on the parent page to be highlighted. Then put a function on the container page called highlight:
Code:
highlight(r_name){
code here to highlight whatever you want
}
This seems a bit extraneous to me though, how else would a recipe get loaded in the iframe without someone clicking on its name on the parent page? Unless there is some other way, a simple onClick event on the parent page will take care of this.
If you are using frames, not iframes, use:
Code:
parent.window.framename.functionname()
Bookmarks