tigerchicken
asked on
jquery not loading in Internet Explorer 7 but works in other browsers
Hi,
I have a problem that is driving me insane. Our new website is just a bout ready to go live but for internet explorer 7 not loading jquery correctly. All javascript is working fine in all other browsers apart from ie 6 (which I'm not even going to try to support!).
Jquery is supposed to load as part of the jquerytools js file hosted with jquery tools' cdn. The reference to it in the header of my html is before any other .js referenced files.
I.E. Just gives me the message that "Line 73" Char 24. Unexpected identifier, string or number. Code 0. I'm pretty dure this is because it's not loading jquery properly. I have tried hosting the jquery file on my own host rather than using jquerytools cdn and I have also tried using google's cdn and still no joy.
The url I am working on is http://www.tigerchick.com/76/
Any help much appreciated!
I have a problem that is driving me insane. Our new website is just a bout ready to go live but for internet explorer 7 not loading jquery correctly. All javascript is working fine in all other browsers apart from ie 6 (which I'm not even going to try to support!).
Jquery is supposed to load as part of the jquerytools js file hosted with jquery tools' cdn. The reference to it in the header of my html is before any other .js referenced files.
I.E. Just gives me the message that "Line 73" Char 24. Unexpected identifier, string or number. Code 0. I'm pretty dure this is because it's not loading jquery properly. I have tried hosting the jquery file on my own host rather than using jquerytools cdn and I have also tried using google's cdn and still no joy.
The url I am working on is http://www.tigerchick.com/76/
Any help much appreciated!
ASKER
Hi Jeremiah,
thanks for taking a look at this. I have moved that display option line below the header line as you suggested but it still doesn't work. Any more ideas?
your help is greatly appreciated!
thanks for taking a look at this. I have moved that display option line below the header line as you suggested but it still doesn't work. Any more ideas?
your help is greatly appreciated!
ASKER
As an experiment I tried removing the reject script entirely and it made no difference to the script on the rest of the page loading. I've put it back again now.
Is it just me, or is there an extra comma at the end of the display option's array?
ASKER
I tried removing the comma and it makes no difference. As I said before, as an experiment I also tried removing that entire section of script (the browser reject portion) and it didn't make a difference. Clearly the problem does not lie in that portion of the code.
If anyone has any ideas on this I would be very grateful. I have tested in most browsers and it works fine apart from IE 6 / 7. Firebug does not return any errors.
Help !
If anyone has any ideas on this I would be very grateful. I have tested in most browsers and it works fine apart from IE 6 / 7. Firebug does not return any errors.
Help !
ASKER
Ok - I've managed to fix this.
The problem was indeed some errant commas, not in the place where Jeremiah thought there might be but in a different external js file. Thanks to Jeremiah though for pointing out the possibility!
Cheers,
M
The problem was indeed some errant commas, not in the place where Jeremiah thought there might be but in a different external js file. Thanks to Jeremiah though for pointing out the possibility!
Cheers,
M
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks!
It's probably an error in this window that is messing up the rest of your page, since when JavaScript runs into a problem in one line of a file, it ignores the rest of that file. I've ran into that problem before when learning jQuery.