18 October, 2009

IE Only - Invalid Argument

I adopted some older code that I think had been working for some time. This code is part of an admin screen, and as I was testing some improvements I noticed an error with Internet Explorer. Since I predominately use Firefox, I'd never detected the error as a user of the admin screen. Internet Explorer reported the first character as having an Invalid Argument.

The simple code was opening a new browser window. The problem was a hyphen in the window name (Help-Venues).
window.open("venue_all.php","Help-Venues","height=800, width=720,scrollbars=yes")

No comments: