Forum Moderators: open

Message Too Old, No Replies

Links stopped working in IE but only on local drive

         

voices

12:20 am on Dec 5, 2007 (gmt 0)

10+ Year Member



I have a css nav bar with text links. 7 Pages with the same nav bar. One page the links stop working in IE, works fine in Firefox. When I upload the page it works fine in both browsers. I copy the links out of my page and paste into a new page, they work. I remove things one by one until nothing is left but the links and they don't work. Finally I rebuild the page and all is working again, BUT the same thing is happening to a different page. The links don't work when I view the file from my hard drive, but they work fine on the server. I delete the file from my harddrive, download the working copy from the server and the links work in Firefox but not IE. Has anyone ever had such an insane thing happen?

penders

11:16 am on Dec 9, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The only pupose of the MOTW comment is so the active script can run locally without the annoying popup...

Not the only purpose; ALL the settings of that security zone will apply. Which is a reason why web pages could well behave differently when run 'locally' as opposed to from a web server.

Yes I did put the comments on the page that I linked to, but now that I understand the purpose of the comment I see that would make no sense.

If you understand the purpose of the 'comment' (ie. MOTW) why does it make no sense? Strictly speaking, in IE the MOTW is not a comment, it is a special instruction, just like conditional comments. Yes, in other browsers it is treated as an oridinary comment.

It would be interesting to see if someone can duplicate the problem.

Yes, I can duplicate the problem, but under the following scenario I can solve it by including a MOTW on every page:

- In IE, running in the local security zone.
- Two pages, PageA and PageB.
- PageA has a link to PageB.
- Without a MOTW on any page, the link from PageA to PageB works OK.
- Add a MOTW to PageA, the link from PageA to PageB does NOT work.
- Add a MOTW to PageB, the link from PageA to PageB works OK. Sorted.

If in your environment this does not solve it, then I guess there must be something else?!

That last comment (//end AC code) is just a plain ol' JavaScript comment.

This 31 message thread spans 2 pages: 31