PDA

View Full Version : Opening windows and passing variables.


chrishosch
04-23-2003, 11:08 PM
Hello,

I'm trying to create a log in with flash, passing username and password variables to a cgi-bin from withing flash. I'm also trying to get the browser to open a new window when the submit button is hit. Everything works fine when I pass the variables normally as follows:

on (release) {
getURL("http://www.holmenpromotions.com/cgi-bin/LogOn.cgi", _blank, "POST");
}

But, it doesn't pass the variables when I add the javascript function as follows:

on (release) {
getURL("javascript: newwindow('http://www.holmenpromotions.com/cgi-bin/LogOn.cgi')", _blank, "POST");
}

Here is the javascript I am using:

function newwindow(){
window.open("http://www.holmenpromotions.com/cgi-bin/LogOn.cgi","","status=1,menubar=1,resizable=1,toolbar=1,scrollbar s=1,directories=1")
}

jaybee
04-24-2003, 12:57 PM
leave out the target window argument if you are using javascript.