|
Subject:
|
getURL with javascript window.open properties
|
|
Posted By:
|
nancy
|
Post Date:
|
3/3/2005 12:47:38 PM
|
Hello, Brief, I have af ramed-based page with a flash animation as part of one of those frames content.
When I click on a button in that animation, I want a new "Pop-up-type" of window to open. Everything is working fine eXCEPT that when I close that new window and get back to my frame-baes page, I have nothing in the frame where animation used to be but only have the following wriiten on the bogus page
[object]
Here's the code in the button calling the pop-up:
************************************************************* on (release) { stop();
getURL("javascript:window.open('media/people.html','People','width=800,height=600,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=yes');"); }
************************************************************* Any help is always appreciated, Thanks to all,
nancy
|
|
Reply By:
|
nancy
|
Reply Date:
|
3/15/2005 3:30:42 PM
|
Nevermind, it was simply to re-order these in the scene panel, Please disregard. Thanks anyway.
|
|
Reply By:
|
yvetjie
|
Reply Date:
|
4/14/2005 8:31:31 AM
|
Hi Nancy,
Hoe did you get it right to get the [object] away on the on(release){ getURL("javascript:window.open('support.htm','URL','width=600,height=600,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no');");}
?
I am getting the same problem.
Yvette
|
|
Reply By:
|
nancy
|
Reply Date:
|
4/14/2005 8:37:34 AM
|
Hi Yvette, I don't understand your question. Please explain what you would like to do and the problem you're experiencing. It might not be the same as the problem I was having, so please elaborate. Thanks,
nancy
|
|
Reply By:
|
yvetjie
|
Reply Date:
|
4/14/2005 8:43:31 AM
|
Here it is - sorry:
When I use the flash button with the javascript pop-up code - the pop up window comes up perfectly but the htm page in the background dissappears and all that is displayed on it is: [object]. Then, when I close the pop-up window I have to press the "back" button to go back to my website.
Thanx, Yvette
|
|
Reply By:
|
yvetjie
|
Reply Date:
|
4/15/2005 3:39:40 AM
|
Hi Nancy,
Are you online? Did you get my message?
Thanx, Yvette
|
|
Reply By:
|
yvetjie
|
Reply Date:
|
4/15/2005 4:41:43 AM
|
Fixed the probem - never mind.
Thanx anyway Yvette
|
|
Reply By:
|
harpua
|
Reply Date:
|
4/15/2005 9:09:08 AM
|
How did you fix it? I have been having the same problem. Mine works on Apple side but leaves the [object] on the PC side.
Here is my code: <A HREF="javascript:window.open('preview_images.asp','Portfolio','width=520,height=400,resizable=yes,scrollbars=yes,status=no,screenx=100,screeny=20'); return false">Open Link</A>
Peace Mike http://www.eclecticpixel.com http://www.homegrownmusicjam.com
|
|
Reply By:
|
nancy
|
Reply Date:
|
4/15/2005 9:26:24 AM
|
Hello, while it has been awhile I have been back into that file, I did notice one difference between the code listed above and mine:
on (release) { stop();
I have "stop()" before calling the Pop-up. I hope this helps, nancy
|
|
Reply By:
|
vladko
|
Reply Date:
|
6/4/2005 7:52:08 AM
|
The reason [object] appears is that the window.open function return a result to the browser. You do not want that in this case - you just want the javascript to run and open a new window. So, you must specify that the function should be void (i.e. does not return a result):
getURL("javascript:void window.open('mywindow.html')");
And voilla!
Vla
|