You're screwed.  It won't work the way you want to.

        Here's what you can *try*, though:

                1) pre-open a window in the background. Name it "foo"
                or whatever in the window.open() call.

                2) send your variables to the form with a target of
                "foo"

        myVars = new LoadVars();
        myVars.bar = "baz";
        myVars.ack = "teh sux";

        on(release) {
          getURL("javascript:window.open(......)");
          myVars.send("http://where.your.form/is/at.cgi";, "foo", "GET");
        }

        That *may* work but I don't gaurantee it.



On Thu, 11 Sep 2003, Paul Giese wrote:

> Hiya,
>
> I've started using flash and have come across a situation that I am having
> trouble tackling.  wondering if anyone has any pointers to the following
> situation.
>
> I'm trying to return results from a form in flash to a html pop-up window
> that doesn't have the menubar, location bar, and the other standard JS
> stuff.  The way I have it now the submit btn calls the function submin()
> which is below.
>
> I can get the popup window to work with a getURL("javascript:flashPop('
> ... ');"); for btns calling static content but not with the send()
>
> I have tried popping the window up with a onPress() and giving it the same
> name specified in the submit() but it doesn't work in IE...still pops up
> the results in a full sized window.  I've also tried putting the
> javascript: stuff in the send but that doesn't work either.
>
> Any thoughts?
>
> thanks,
>
> --giese
>
>
> // ----locator form scripts --
> submitURL = "/locator/results/popup";
> zip.restrict = "0-9";
>
> function onSubmit() {
>       // Create a new LoadVars instance for the form data
>       locatorData = new LoadVars();
>       // Initialize formData variables:
>       locatorData.link = "";
>       locatorData.zip = "";
>       locatorData.city = "";
>       locatorData.state = "";
>       stateIndex = "";
>       // Gather the information into a LoadVars instance.
>       locatorData.link = "findDuvel";
>       locatorData.zip = zip.text;
>       locatorData.city = city.text;
>       locatorData.state = state.getValue();
>       locatorData.stateIndex = state.getSelectedIndex();
>       // Submit the data
>       if (zip.length>4) {
>               locatorData.send(submitURL, "findDuvel", "POST");
>       } else {
>               gotoAndStop("findError");
>       }
> }
>
>
> _______________________________________________
> Bits mailing list
> [EMAIL PROTECTED]
> http://www.sugoi.org/mailman/listinfo/bits
>


_____________________________________________b r a n d o n  h a r r i s___
[EMAIL PROTECTED]                                          www.gaijin.com
_______________________________________________
Bits mailing list
[EMAIL PROTECTED]
http://www.sugoi.org/mailman/listinfo/bits

Reply via email to