How to refresh/reload menu?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
brettzamora
Advanced
Advanced
Posts: 26
Joined: Thu Oct 10, 2002 5:32 pm

How to refresh/reload menu?

Post by brettzamora »

Hi...

I have a program that dynamically writes the menudata.js file on the server. On one of my web pages I have maintnance facility that allows the user to specify what appears on one of the submenus. After they submit their changes, I call my program and regenerate the menudata.js file, then I display a confirmation page to the user. The confirmation page and all other pages have the same menus on them. When the confirmation page is displayed, the new menudata.js file should be reflecting the change, however, it's as if the page pulls the menudata.js file from cache. I've messed with the expires pragma, etc, however, the only way I can get the menu to refresh is if I right click on the page and then click the refresh option. Is there a way to get the menu to reload itself without using the cached version, specifically when I want it to??

Thanks,

Brett
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi Brett,

Is it possible that the confirmaton page is loading before your program is finished re-writing the menu_data.js file?

Kevin
Post Reply