views:

49

answers:

3

UPDATED

I have a page where i upload an image to crop which opens a window with the required functionality, it works absolutely fine as per below given script, but it doesn't work with IE

<script>
window.open('http://mymachine/mysite/crop.php?bgimagecode1=1281439586.jpg&amp;x=728&amp;y=364&amp;id=30&amp;bannersize=1x2&amp;osCsid=','mywindow','fullscreen=yes,scrollbars=yes');
</script>

please help

A: 

Don't set the second parameter. It doesn't work in IE... just leave it empty.

window.open('". HTTP_SERVER . "/crop.php?bgimagecode1=".$realname."&x=".$w."&y=".$h."& id=".$_POST['categoryId']."&bannersize=".$_POST['size']."&osCsid=".$_POST['sid']."','','fullscreen=yes,scrollbars=yes');

More info in a previous thread...

thomasvdb
-1, that just isn't true at all.
Andy E
-ve i need it. i cant do that
OM The Eternity
@Andy E: I had the some problem and by leaving the second parameter empty (the title of the window) it solved my problem.
thomasvdb
@thomas: That can happen if the name has spaces or other invalid characters in it. A valid name will work just fine.
Andy E
@thomasvdb The second parameter is the string that just names the new window. Such string can be used to be the target of links and forms when the target attribute of an <a> element or of a <form> is specified. This string parameter should not contain any blank space. strWindowName does not specify the title of the new window. [https://developer.mozilla.org/en/window.open]
epascarello
I see... should have read it better :)
thomasvdb
A: 

Maybe you have IE set to block popups? You have to whiteflag the domain or it won't open. I would check your preferences.

meder
I checked it i have set them as "allowed"
OM The Eternity
A: 

If you are using PHP to generate this string, you should be using urlencode to make sure the URL's querystring is valid.

epascarello
if this is the case then Y is it working fine in FF?
OM The Eternity