Reload manu_data.js

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
ywfbi
Advanced
Advanced
Posts: 27
Joined: Wed Aug 31, 2005 10:41 am

Reload manu_data.js

Post by ywfbi »

Hi folks, what Im trying to do is reload the menu_data.js file, now since its loaded after the soure files I assume it can be done.

If I put a

Code: Select all

document.write("<scr"+"ipt type=text/javascript src=menu_data.js><\/scr"+"ipt>");
or
document.write("<script type="text/javascript" src="menu_data.js"><\/script>");
I get a mm_style is undefined error.
Any ideas would be greatly appreciated.

Now I can just refresh the page, but there would be a few seconds time delay (due to lengthy js), if I could just unload and reload the menus I think it may be quicker.
Post Reply