Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getURL not working in IE

Status
Not open for further replies.

dazsnow

Technical User
Oct 30, 2004
1
GB
I have a movie clip which contains the thumbnail for an image. On the movie clip I have the following action:

on(press) {
address = _root.gallerycontainer.pathToFullPics+_root.gallerycontainer.fArray[_root.gallerycontainer.pIndex-5];
target_winName = " width = 550;
height = 450;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 1;
getURL ("javascript:myWin = window.open('" + address + "','" + target_winName + "','" + "width=" + width + ",height=" + height + ",toolbar=" + toolbar + ",location=" + location + ",directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",top='+((screen.height/2)-(" + h/2 + "))+',left='+((screen.width/2)-(" + w/2 + "))+'" + "'); void(0);");
}

So when you click the movie clip, it opens the full-sized image in a new browser window. The problem is that it works fine in all browsers except internet explorer, which simply returns the error "invalid argument at line 0". Any ideas what could be wrong.

Any help greatly appreciated. Thanks.

P.S. if you wanna check out the part of the site i'm talking about, click on portfolio > animations ? click on one of the images.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top