SpirtOfGrandeur
03-15-2006, 02:34 PM
onload triggers correctly in IE and FF. For I use it in both. But what you actually want to do is have at the end of your menu script a window.open that loads the other frame. This will make it alot easier on you.
JS: (Bottom of Menu pages)
<script type='text/javascript'>
window.open('./firsturlhere.html', 'display');
</script>
paulkeates
03-18-2006, 05:12 AM
An update because I solved the issue an want to make it available to others who might be looking for the answer.
Yes, I know it is not much (one line!), but there is no clear answer to this after a lot of searching. Every little bit helps!
<script type=text/javascript>;
parent.frames['displayframe'].location = "displayframe_overview_what_we_do.htm"
</script>
You place this at the very bottom of the HTML that gets loaded in order to display the menus. The 'displayframe' part references the actual iFrame that you want to load a html page into. The last part of the statement is the actual URL to load into that page.
So you use this code to load one (or as many as needed) iFrames with URL's after an iFrame has been loaded. This is very useful for dynamically building menus with associated 'hit lists' alongside to help you quickly narrow down your options.
To see the actual implementation go to www.sqa-one.com and view source of any of the menus as they load.
Thanks to 'SpirtOfGrandeur' for answering part of this in his prior post - the point about 'performing an operation at the end of the menu load' instead of looking ofr an event to be triggered.
Thanks,
Paul