Groups | Blog | Home
all groups > flash actionscript > march 2004 >

flash actionscript : pop up and post


myckelh
3/30/2004 10:42:23 PM
this is what I use to pop up a window...

on(release){
getURL("javascript:openNewWindow('urlAddress.ASP',
'thewin','height=400,width=400,
toolbar=no,scrollbars=yes')")
}

but when I add the post action it doesent work!!!!
on(release){
getURL("javascript:openNewWindow('urlAddress.ASP','this','POST'
'thewin','height=400,width=400,
toolbar=no,scrollbars=yes')")
}

whats the easiest way to post to an ASP page and controll the window
parameters.


Dinghus
3/30/2004 10:48:01 PM
Trunkator
5/24/2004 9:51:33 PM
Dinghus, the following is part of Flash Help and shows that "POST" can be used
with "getURL". However, I have tried to use "POST" with "getURL(javascript:"
but I never managed to make it work... The question is: Can "POST" be used with
"getURL(javascript:"? Anyone has a suggestion?


getURL()
Availability
Flash 2. The GET and POST options are only available to Flash Player 4 and
later versions of the player.

Usage
getURL(url [, window [, "variables"]])

Parameters
url The URL from which to obtain the document.

window An optional parameter specifying the window or HTML frame that the
document should load into. You can enter the name of a specific window or
choose from the following reserved target names:

_self specifies the current frame in the current window.
_blank specifies a new window.
_parent specifies the parent of the current frame.
_top specifies the top-level frame in the current window.
variables A GET or POST method for sending variables. If there are no
variables, omit this parameter. The GET method appends the variables to the end
of the URL, and is used for small numbers of variables. The POST method sends
the variables in a separate HTTP header and is used for sending long strings of
variables.

AddThis Social Bookmark Button