sebnitu / HorizontalNav

A jQuery plugin that spans a horizontal navigation to fit the full width of it's container.
MIT License
277 stars 43 forks source link

Plugin doesn't work in IE #4

Closed LostSenSS closed 12 years ago

LostSenSS commented 12 years ago

Hello! Your plugin doesn't work in IE7-IE9 :/ Screenshot your example - http://www.keepme.ru/upload/images/2012/07/17/a567e38f119e2e49489c755b25fdc36e.PNG

OscarGodson commented 12 years ago

Are there any errors in the console?

LostSenSS commented 12 years ago

Yes.

SEC7112: The script has been blocked from https://raw.github.com/sebnitu/HorizontalNav/master/jquery.horizontalNav.js MIME type mismatch HorizontalNav

SCRIPT438: Object does not support property or method "horizontalNav" HorizontalNav, line 78 character 3

OscarGodson commented 12 years ago

Sounds like a demo fail more than an IE bug. Have you tested this on your own site? That usually happens if you hotlink to github. I'm on a phone so I can't view the source but I bet that's it. @sebnitu Usually writes good cross browser plugins so I'm sure it'll work of you download and run the script locally. But, seb should probably fix the demo tho.

LostSenSS commented 12 years ago

I am try it use in my site. IE9 work well, but IE7/IE8 have new problem - "SCRIPT65535: Unexpected call to method or property access. jquery.min.js, line 3 character 32 461" I am use last version JQ from http://code.jquery.com/jquery-1.7.2.min.js

OscarGodson commented 12 years ago

can you reproduce it for Seb at JSBin in IE8 so we can see?

sebnitu commented 12 years ago

Hey @LostSenSS,

I just finished doing some browser testing of the script and like Oscar mentioned, it is a demo issue. From what I've just tested, the script should work even as low as IE6.

I just removed some console.log stuff that was probably causing some IE7-8 trouble (@5689422). Try running the most recent jquery.horizontalNav.js file in your site and see if you're still having issues.

LostSenSS commented 12 years ago

Yeah, it works! But in IE7/IE8 it works only If put jquery.min.js in head section. If put jquery.min.js before body close tag (and of course before horizontalNav.js) it calls error. Tnx for help.

sebnitu commented 12 years ago

Glad we got it resolved ;)