Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Sending data opens new window

Guest
Aug 22, 2007 Aug 22, 2007
Ok , since like 90% of people are using IE6 this is annoying. I have data that needs to be sent to an ASP page after the movie has finished. No problems there it runs, posts the data the asp gets the data everyone is happy. However when Flash POSTS the form data it opens a new window, or at least it tries to. It keeps getting blocked by the built in pop-up blocker in IE6 and IE7, tests also indicate that the AOL, Google, and Yahoo toolbars also block it.

So I want to open the page it is posting the data to in the same window as the flash but when I tell it to open _self, _parent, or even _top it still opens in a new window. Is there something I am missing.

this is the line that sends the data.

test_results.send("testresults.aspx","POST",_self);\

any help would be appreciated
TOPICS
ActionScript
886
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 22, 2007 Aug 22, 2007
If you look at Help for the LoadVars class' send method you'll find this:

A successful send() method call will always open a new browser window or
replace content in an existing window or frame. If you would rather send
information to a server and continue playing your SWF file without opening a
new window or replacing content in a window or frame, then you should use
LoadVars.sendAndLoad().


--
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 22, 2007 Aug 22, 2007
Sweet I must have missed that, thanks
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 22, 2007 Aug 22, 2007
Arg, that causes the browser to lock up now.

Using the code below I get my results posted no problem. save the one where it opens a new window and the pop-up blocker tries to kill it thus defeating the purpose.

I tried to use LoadVars.sendAndLoad but it makes the browser chug to a halt and then the entire computer needs to be rebooted.

Am I using this wrong maybe I read the help file, searched the forums but nothing quite what I am looking for.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 22, 2007 Aug 22, 2007
"A successful send() method call will always open a new browser window or
replace content in an existing window or frame."

The latter is what I want to do. I dont want the swf to continue playing and I dont want a new window to open.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 22, 2007 Aug 22, 2007
did you use 3 parameters in your sendAndLoad() method? if so, post all the code relevant to your sending and receiving lv.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 22, 2007 Aug 22, 2007
I think that may be where i am missing something

I am not entirely sure what the targetObject parameter should be. when I looked it up in the Help file it said it should be _root or _parent but that still doesnt get the data through.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 22, 2007 Aug 22, 2007
that's a problem. try:

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 22, 2007 Aug 22, 2007
Ok I changed that last line, but now it is not posting. it just ends and sits there on the last frame.

any ideas on what could cause this?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 22, 2007 Aug 22, 2007
what do you mean by it's not posting? and why would your swf do anything after sendAndLoad() is executed?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 22, 2007 Aug 22, 2007
Never mind , the error was on the asp page. It was sending the data, the page was just not getting it.

Thanks to everyone it is working now yay
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 22, 2007 Aug 22, 2007
you're welcome.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 20, 2007 Sep 20, 2007
I want to do same sort of thing, only open in new window and show answers in new window with 3 dynamic text boxes.
How would I do that?

thanks
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 20, 2007 Sep 20, 2007
use the localconnection class if you're opening the new window from flash.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 20, 2007 Sep 20, 2007
LATEST
Thank you so much. where do I find info on localconnection class. Don't know that.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines