views:

4481

answers:

5

This is the Javascript I'm currently using:

window.open('/modules/mod_oneononechat/chatwindow.php?key='+key+'&color=blue','x'+winName+'x','location=0,status=0,toolbar=0,menubar=0,resizable=0,scrollbars=0,height=375,width=420');

This doesn't seem to be working in IE8. It's a chat window that works fine on all other browsers (including IE7)... any ideas as to why it's not working on IE8?

A: 

try using a javascript library such as JQuery for this.

A possible alternative to window.open is this JQuery plugin, along with examples.

http://famspam.com/facebox

More solutions by JQuery for popups etc.

It may be your popup blocker that prevents your popup from showing up

Konstantinos
i dunno how to use jQuery..
thanks a lot!..ill try those..
you are welcome :)
Konstantinos
A: 

Can you check whether it throws any javascript error?

You can use IE8 built in javascript debugger

Umesh
it doesnt throw any errors..
Try window.open from basic phase,say window.open("/modules/mod_oneononechat/chatwindow.php") , and add parameters one by one. You will get to know when/adding what makes it stop working in IE8.
Umesh
If basic itself not working, then you can at least conclude it as a setting in browser.
Umesh
k..thankx!..din think of that!
I am saying this approach because from IE8 Microsoft have discontinued supporting some of the parameters and supported with some new sets. So if you are using old ones, they will throw script error in IE8. Buy you said you are not getting any error!
Umesh
A: 

The support article titled Q281679 by Microsoft was released for MSIE 5.5/6.0. But it could be applicable for MSIE 8.

Alternatively, you could use the X-UA-Compatible meta tag or header, and see if this can be resolved by resorting to the compatibility mode (I would personally use this as a last resort, and would instead attempt to write JavaScript that does not cause IE8 to behave as described).

PS: To avoid IE8 from requiring the compatibility mode, use the services of the W3C page validator, and have the page tested in another standards compliant browser like Firefox 3 (don't forget to use Firebug and the Web Development Toolbar extensions if you use FF3).

Vineet Reynolds
it shows up in compatibility mode..but yea..i want it to work without having to turn it on..
Then I suspect that your page does not validate. Attempt to write standards-compliant code so that IE8 is not thrown into quirks mode. Use the W3C validator at http://validator.w3.org/ to help yourself.
Vineet Reynolds
A: 

Try this:

It works for me

javascript:window.open('http://google.com','x'+'winName'+'x','location=0','status=0','toolbar=0','menubar=0','resizable=0','scrollbars=0','height=375','width=420');

Ramesh
+2  A: 

guess what I discovered? ;-) ie8 doesn't linke spaces in window name ...

slowik