|
-
Hi everyone. I am trying to create a Flash pop-up window of a specific size. The window needs to appear after a "submit" button is hit on a form.
Here is the code I have for my HTML:
<SCRIPT LANGUAGE="JavaScript">
<!--
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = ((screen.height - 50)- h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl +',resizeable=no,locationbar=no,menubar=no,scrollb ars=no,status=no,toolbar=no' win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
// -->
</SCRIPT>
Here is my code for my flash button:
====
on (release) {
getURL ("javascript:NewWindow('write_to_file.php','Vortus ','350','230','yes')", "_blank", "POST");
}
--------
I did discover that the window size works if you remove "_blank" and replace it with "".
on (release) {
getURL ("javascript:NewWindow('write_to_file.php','Vortus ','350','230','yes')", "", "POST");
}
The problem is my PHP script needs _blank to have the variable values sent across.
Is this a bug in Flash, or is there a work-around?
--charles
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
|