Solved

loading variables from flash to asp

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Flex: Positioning RadioButtons x position according to the selected button in ButtonBar 3 452
free flash maker 5 216
Adobe flash player fails to install 12 311
File drag and drop 6 145
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. …
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.

789 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