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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PopUp script not working in MIE

Status
Not open for further replies.

chasemedia

Programmer
Oct 24, 2007
7
CA
OK, Im using the following script to open a new window, resize it and fill it with content, everything works fine on the MAC side as well as in FireFox, however it will not work on a Windows PC in Internet Explorer and its causeing quite a problem. Just wondering if anyone knows how I can make it work in all browsers and cross platform and everything.
Thanks in advance

Source Code:
//This is the function to launch a new browser window; action called on the onMouseUp event in the anchor tag
function popMeUpNone (url, name, width, height, resizable) {
settings = "toolbar=no, location=no, directories=no," +
"status=yes, menubar=no, scrollbars=no, resizable=" + resizable + "," +
"width=" + width + ", height=" + height;

myNewWindow = window.open(url, name, settings);
};



and its being called by:

<a href="#" onMouseUp="popMeUpNone('../videos/housetour.mov', 'CMI - Chase Media Inc - Portfolio - House Tour Demo', 700, 350, 'no');">


Hope you guys can help, Thanks again.
 
I get the error on your arguments, specifically
<a href="#" onMouseUp="popMeUpNone('../videos/housetour.mov', 'CMI - Chase Media Inc - Portfolio - House Tour Demo', 700, 350, 'no');">

When I change that, your script works for me
 
I tryed many things on both of those websites and still nothing works for me.
Again it works perfect in firefox and on my mac
however when i test it on a windows machine in internet explorer it just says error on page in the bottom status bar.
If anyone knows anything that may be causeing this please do help.
 
Well one of the problems if you read the links to mozilla developer or msdn is that your passing a string with spaces as the window name. Here is what mozilla developer says about doing this
strWindowName
This 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.
Have you tried passing in the correct agrusments? your code seems to work fine when I try it with the correct arguments.
 
j4606, Thank you I found that after I posted and it works perfect now.
Thanks for all your help everyone
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top