Helpful Information
 
 
Category: General Coding
problem with simple javascript

Hi!

I've got a link which updates two inline frames. The frames are I1, where i want ta have the menu and I2, which functions as start page and target for the menu in I1.

The problem is that the javascript menu in I1 doesn't show unless i update the site with the update button in the browser. I looked att the code ande the wantes page is there but somehow it does not call the two js-files which are used to build the menu.

I,ve got
<body onload="javascript:{if(parent.frames['I2']&&parent.frames['I1'].Go)parent.frames['I1'].Go()}">
on the site in the inline frame 2, I2.

I also tried
<body onload="top.I1.location.reload(true);"> on the page that loads in I2 but then the menu doesn't even show when I update the website with the update button. på

When i delete the temporary files on my computer (cache, i guess) it works without problems the first time.

Do you have an idea what the problem is? Have been testing and looking on the web for answers witouht any luck?

Please help me.

/luskan










privacy (GDPR)