Receiving INPUT TEXT, making Forms from scratch.


hi all...

 

i trying design text form scratch, how can access input text property of text box ?

 

i want this:

-place text object on stage

-have receive input text (entered user.)

-be able access input text in action panel can use additional php stuff send email or etc..

 

i not want use rectangular input box...i wanna create totally ridicules lets say....(somebody called software edge , raised expectations guess )

hi i'm new edge, i've managed send data input fields using append/ajax method...

 

//append input box <div> in symbol...

//i have made symbol called "contact_screen" on stage , contains input boxes (rectangle <div> called "inputemail)

var inputemail = sym.getsymbol("contact_screen").$("inputemail");

 

 

//append input field box. note value called text content later

$("<input type='text' value='' id='inputemaili' size='80'>").appendto(inputemail);

//set css want input field

sym.getsymbol("contact_screen").$("#inputemaili").css({"height":"29", "width":"492px", "font-family":"annie use telescope, cursive", "font-size":"24px"});

// same other input fields

 

 

//then apply button click function

var comp = sym.getcomposition().getstage().getsymbol("contact_screen");

//gets values

var name = comp.$("#inputnamei").attr("value");

var email = comp.$("#inputemaili").attr("value");

var message = comp.$("#inputmessagei").attr("value");

//sets values "data"

var data = "name="+name+"&email="+email+"&message=" + message;

 

 

 

 

$.ajax({

     type: "post",

     url: "email/contact.php",

     //gets data values

     data: data,

     success: function(phpreturnresult){

     alert('thank you.'+'\r\n'+'your message has been sent successfully!');

     //this resets values after sent

     comp.$("#inputnamei").val("");

     comp.$("#inputemaili").val("");

     comp.$("#inputmessagei").val("your message has been sent.");

     sym.$("feedbacktxt").text("");

     },

     error: function(errormessage) {

          alert('sorry message failed send: ' + errormessage);

     }

});



More discussions in Edge Animate CC


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account