View Full Version : javascript form in flash tutorial
magic_fingers
09-14-2006, 09:20 AM
been looking all over the net now for a tutorial that'd explain exactly how to create a form in flash and then submit it using javascript to a mail address sepecified in the javascript. i know this can be done in php and ASP, but it's really complex to those that dont have a good enough knowlage of the php or ASP scripting languages.
CyanBlue
09-14-2006, 04:59 PM
Howdy and Welcome... :)
Um... Can you send an email with the JavaScript??? I thought you cannot, but I am no expert on JS...
magic_fingers
09-15-2006, 08:11 AM
ye, from wat i found on the net, the code makes sence and all the thing to really get it to work or find another way to do wat i want.
code that i got off the net looked something like this:
//First create the Mail() object and set in on a variable
var easymail=new Mail();
//Set the server type, so the script can know which page to call, the asp or php, if you are using a PHP server
//replace the "ASP_SERVER" wit // h "PHP_SERVER", by default the // server is set to PHP_SERVER
//NOTE: If you choose ASP_SERVER you must have CDONTS component installed
//in your server in order to send the em // ails
easymail.ServerType=ASP_SERVER;
//Now set the address to which the email will be sended
easymail.To="email@goesHere.com";
//Now set the address of the one that sends the email
easymail.ReplyTo="me@email.com";
//Now set the subject of the email
easymail.Subject="Here goes the subject of the email";
//Set the message of the email
easymail.Message = "message "
//Send the email
easymail.Send();
so now...the big problem here is, it dont work, and theres no way i'm able to trace the info stored in the variables so i can see if the data is really stored in them!? you see where my problem is? it shouldn't be that hard, but i dont have experience with javascript and flash integration! so a tutorial form sum1 that knows wats going on would be awsome to help get the thing to work and explain step by step how and why that did it.
CyanBlue
09-15-2006, 07:00 PM
I am not familiar with that code, but it still is saying ASP or PHP, so I am assuming that it is using such backend not JavaScript...
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.