jquery - Javascript "window.open" code won't work in Internet Explorer 7 or 8 -


I am using jQuery / Javascript code to open a popup window on my site:

 (Code) $ ('# change_photo_link' $ id, "upload photo", "menubar = no, width = 430, height = 100, toolbar =");});  

This code works on Firefox and Chrome. It does not work on IE 7 or IE 8 (IE 6 has not been tested) IE has made an error on line window.open Why? The error given by IE is "invalid argument" and this is all.

This is the second parameter in place that this is the reason if you upload "upload photo" instead of "upload photo" ", Then it works:

  $ ('# change_photo_link'). Click (function () {$ id = $ ('# id') .attr ('value'); window.open ("photo.upload.php? Id =" + $ id, "UploadPhoto", "menubar = No, width = 430, height = 100, toolbar = no ");});  

I do not think there could be no official reason as the reason for the location in the window.open () parameter in the windowName parameter > Causes an error, but this is probably an implementation description. windowName is used as an internal reference, and can be used as a value for the target attribute of an anchor or form, so I think IE should handle it internally Gecko / Firefox reference docs say that this parameter should should not contain an empty space, but clearly it is not currently a problem in Gecko versions.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -