Forum Moderators: open

Message Too Old, No Replies

My Javascript menu is not showing

Needs a full refresh

         

Dano1

8:51 am on Oct 14, 2008 (gmt 0)

10+ Year Member



I recently created a new Intranet for my company, I uploaded it onto a development section of our network and had a problem with my Javascript menu not showing apart from when you hold Ctrl and press F5, a standard refresh didn't work, also after doing the Ctrl refresh if you were to navigate to another page or close and reopen the page the menu would disappear again.
In the end I can't remember what I did, whether I found something or just ignored it for a while but it started working, and has been fine ever since.
Now I have placed it in another section of our network so everyone can use it but the menu problem is happening again, the development section is still working fine.

Does anyone have any ideas as to why this is happening, I have the IE7 error reporting turned on and it tells me that the dTree is undefined, it names a line in the code but all I have on that line is the Title tag.

Any help would be appreciated, if you need to see any part of the code just ask and I will post it, I'm just wondering if anyone has come across this problem before.

Dano1

2:48 pm on Oct 14, 2008 (gmt 0)

10+ Year Member



Ok, its all started working now, it seems it just needed time.

rocknbil

7:09 pm on Oct 14, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



....also after doing the Ctrl refresh if you were to navigate to another page or close and reopen the page the menu would disappear again.

Welcome aboard Dano1, this is not a JS problem, it is a caching problem. Yes, you would think when you delete the cache or CTRL-refresh that clearing the cache deletes all files - for whatever reason, it doesn't. :-) This is why you were able to navigate away, come back, and there's the old JS.

I've seen it in both IE and FF, especially with CSS and external JS. Sometimes I literally have to request the CSS in the browser, clear the cache, refresh it, then clear the cache AGAIN when going back to the page to get it to load properly.

It may not be only the browser cache. I'm on satellite here, and to be fair to the browsers - my provider operates on a proxy server. The files I request get stored in their proxy, and when I refresh, sometimes the request doesn't even make it to the website and is returned by the proxy. (This is my THEORY anyway, because no one cops to the possibility it's a problem.) So if you have any sort of proxy in between, this is another possibility.

Frustrating, yes. But it has a workaround. Persistence. :-)