views:

1786

answers:

5

Try clicking on the "Print" button on the following page: (link removed - consensus is that everything was working fine and the problem was my setup) For debugging purposes, I've replaced a chunk of javascript with a simple alert("test"), and even that isn't showing up in IE7 for me. It works totally fine in Safari, FF (Mac and PC) and IE6, but for some reason it's not working in IE7. For your reference, the code in the button is this:

<a onclick="makeNewWindow()" href="#"><img src="/print.gif"/></a>

And the JS inside /newsletter/print.js is this:

function makeNewWindow() {
   alert("test");   
}

Can anyone help me understand if there's a way around this, or if this has something to do with the fact that I'm running "IE7 Standalone" via Parallels on my Mac? Any help is greatly appreciated.

Thanks, Mike

+3  A: 

Just tested it on IE7 Vista and it worked fine... Your code looks sound as well, so I think it might be an issue with your setup?

nickf
Agreed, code looks fine.
jtyost2
+3  A: 

Javascript is probably disabled in your particular setup of IE7. See this link how to enable it : http://www.tranexp.com/win/JavaScript-enabling.htm

+2  A: 

could be that it's caching an older version of the js file? try ctrl-F5

hasen j
+2  A: 

I'm guessing that you have an error with OTHER javascript code which is causing your browser to just ignore everything else.

Also you may want to change that code to ... onclick="makeNewWindow();return false" ... in order to avoid confusion

Andrew G. Johnson
A: 

I have the same issue with IE7 standalone - it refuses to alert anything. Infuriating.