|
-
Banned
[RESOLVED] Customised Window
I am using this in my flash to open a new customised window:
PHP Code:
on(release){
getURL("JavaScript:window.open('pf.html','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1015,height=640,left=0,top=0');");
}
The problem i face is, when this new window opens the current window goes blank and my entire flash file is lost. So i will have to click BACK button in my windows to reload my old swf. How to avoid this? Is it possible to open my customised new window without affecting the previous one?
-
Give it a name ?
window.open('pf.html','newWindow','toolbar=no...et c.)
Also, the params toolbar etc.. are false by default, so you don't need to enter them unless you want one to be set to true. For example:
resizable=1
It's possible you'll get more help in the HTML/CSS/Javascript forum, since this is not an actionscript problem.
gparis
-
Banned
thanks, i wil try that out
-
Banned
I tried that, but the result is the same 
I "did" post this in HTML/CSS/Javascript forum, but no replies.
-
Banned
-
maybe void the javascript:
PHP Code:
getURL("javascript:void(window.open('pf.html', 'newwin', 'width=1015,height=640,top=0,left=0, scrollbars=1,resizable=0'))");
Just guessing that with a height of 640 px you may need to enable scrollbars, if you have a no resize..
gparis
-
http://www.in3d.eu
Hi,
gparis is right..
Try also something like this:
PHP Code:
var Url="http://www.google.com" // The Url
var Name="myWin"
var Features="width=640,height=480,menubar=1,toolbar=0"
getURL( "javascript:myWin=window.open('"+Url+"','"+Name+"','"+Features+"'); myWin.focus()")
You get also the most reliable results, if try your file (or code) in an online (or local running) server...
Kostas
Last edited by Kostas Zotos; 06-28-2008 at 01:08 PM.
-
Banned
"void" made it work. THANKS Gp
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|