Solved

loading variables from flash to asp

Posted on 2003-11-30
3
273 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

864 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

22 Experts available now in Live!

Get 1:1 Help Now