Groups | Blog | Home
all groups > flash actionscript > may 2004 >

flash actionscript : sending email without new window..


dops79
5/8/2004 5:52:13 PM
hi, i'm sure that not possible sending emails without server side script and
relative component. Well, my web site is all created with flash, and now i've
created an form mail (in flash) and send email with asp. This is the code:

mail= new LoadVars();
//variabili post
mail.nome=this.cnome.nome.text
mail.cognome=this.ccognome.cognome.text
mail.ragionecosiale=this.crsoc.rsoc.text
mail.indirizzo=this.cind.ind.text
mail.citta=this.ccitta.citta.text
mail.telefono=this.ctel.telefono.text
mail.email=this.cemail.email.text
mail.oggetto=this.cogg.ogg.text
mail.info=this.ctesto.testo.text
mail.send("mail.asp","","post")


simple i use the LoadVars object, and all is ok... but my big problem is the
new window (mail.asp) that apear
I can't execute the asp script in background? i don't want see thi new
window.. and don't want charge the mail.asp file in the same window where i've
charged the swf file..
please help.. ;)
Jack.
5/8/2004 6:27:02 PM
create a dummy, and use sendAndLoad

mail= new LoadVars();
dummy = new LoadVars();
.......
mail.sendAndLoad("mail.asp",dummy,"POST");

hth
dops79
5/8/2004 6:29:28 PM
AddThis Social Bookmark Button