Solved

loading variables from flash to asp

Posted on 2003-11-30
3
271 Views
Last Modified: 2010-04-03
Hi
I have a textbox, which contains a password,
I want to load it to an asp page using post method
how do I use the LoadVariables method?
and how do I get the content in the asp page?
thank

0
Comment
Question by:zolpo
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
OBCT earned 50 total points
ID: 9844997
Try this bit of code. It more or less copy's what's in the textbox then posts it to your asp page.
It works on every language weather its php, asp, xml etc so in the future you can use the same command except you'll need to change the variables to suit your needs.

myText = new LoadVars();
myText.txt_1 = txt_1.text;       // txt_1 is the instance name of your textbox
myText.load("http://www.yourwebsite.com/scripts/yourpage.asp", ,"POST");
myText.onLoad = function(success) {
     if (success) {
          txt_1.text = "Your password has successfuly been sent.";
     } else {
          txt_1.text = "An error has occured."
     }
}

If you need anymore help, feel free to ask.

Cheers

-OBCT
0
 
LVL 1

Author Comment

by:zolpo
ID: 9845098
Thanks  a lot!
0
 
LVL 9

Expert Comment

by:OBCT
ID: 9845114
No problem :)

Cheers!

-OBCT
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now