Forum:Getting JS to work in IE9

What is causing the js here not to show in IE9?


 * Hi, Eladkse! I just found your problem!!! I also experienced this last year. There Are Two Possibilites: You may not have Javascript enabled on your browser; I stopped using IE last year cause it breaks everything, ThemeDesigner doesnt't work in IE either, I suggest you switch to another browser like Firefox, Opera, Chrome, or Safari. Enable Javascript first (if you don't have it enabled yet) if you got it enabled and it still won't work, switch to another browser. That is all.
 * -- 11:20, June 11, 2011 (UTC)
 * It's not that, as other JS works for me in IE. Also, I use Firefox, but I am coding for a IE user.


 * Just try something else cause IE makes Wikia look ugly. It really works for everyone (tell me if it doesn't work for you).
 * -- 11:24, June 11, 2011 (UTC)
 * It is not me using IE9! I use Firefox.
 * I am coding a piece of JS for a user who does use IE9. I am looking for someone who can do JS to look through the code and tell me what isn't working, not someone to tell me to switch browsers.


 * Ok sorry, but what is the code? So I can learn the problem. And Why did you put the code for?
 * -- 11:51, June 11, 2011 (UTC)


 * The code is here. It adds editing tools to the side of the screen. If you want to see them at the particular wiki, you'll need to add
 * importScriptPage('MediaWiki:EditBar.js', 'doctor-who-collectors');
 * To your wikia.js over there.


 * I just found the problem!!! Adding it at EditBar.js will not work unless the skin is monobook or monaco. If your customizing the new look, then try adding it at Wikia.js, if it still doesn't work It must mean that Wikia Staff disabled it.
 * -- 12:00, June 11, 2011 (UTC)
 * Okay, you are a genius. I assume this is only an IE problem though, as imports work fine in other browsers.


 * I'm on Google Chrome, so it's not an IE problem, it doesn't appear on my browser as well. So try adding these at the top your Wikia.js:
 * @import "http://doctor-who-collectors.wikia.com/index.php?title=MediaWiki:EditBar.js&action=raw&ctype=text/css";
 * -- 12:12, June 11, 2011 (UTC)
 * Odd, cause my original import is working in chrome.
 * Nevermind, I found a sloution that made mediawiki:wikia.js check the username and then display the content if it matched. Thanks for your help.

New Question: Find window width in IE
As above, how can I find the window width in Internet Explorer? I can get $(document).width; to work with all the other browsers.
 * You really shouldn't add new questions to an existing post, if you want a response. -- Fandyllic (talk &middot; contr) 13 Jun 2011 1:43 PM Pacific