Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
59
rated 0 times [  62] [ 3]  / answers: 1 / hits: 36771  / 14 Years ago, tue, september 7, 2010, 12:00:00

Apparently, this call to window.open is not valid under Internet Explorer. The Javascript code on my site is not running, I would assume it is due to that error.



The line it tells me the error is on, is the call to window.open, apparently an argument is not valid there.



$('.objeto').click( 
function() {
var center = 'height=380,width=900,top='+((screen.width - 900)/2)+',left='+((screen.height - 380)/2);
var address = $(this).attr('id');
window.open (address,'Ver articulo', config=center);
}
);


The site runs fine under both Google Chrome, and Firefox.


More From » jquery

 Answers
19

In IE, you can't have spaces in your second variable (the new window's name).



Try:



window.open (address,'Ver_articulo', config=center); 

[#95685] Friday, September 3, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
leandraannabellar

Total Points: 255
Total Questions: 89
Total Answers: 89

Location: England
Member since Sun, May 21, 2023
1 Year ago
;