Jump to content
Sign in to follow this  
Obi1-Cannabis

Not entering a function...

Recommended Posts

HeyBack with another problem :) flash+xml+php+mysql, but the problem is only between flash and the xml created by the php... flash accesses the php, it does what it is suposed to do, that is checks if the information is on the DB if it's not inserts it and creates xml code saying "inserted" if it's already there creates that code but sayin "already there", untill here everything is fine but the flash is not getting those answers back...

function responde() {  resposta=respostaXML.firstChild.childNodes[0].nodeValue;  trace("it's here");  _parent.resp.text = resposta;}		respostaXML = new XML;respostaXML.ignoreWhite = true;respostaXML.onLoad = responde;respostaXML.load("http://cgseguros/newsletter.php?&nome="+_parent.your_name+"&mail="+_parent.your_email);

...in fact it doesn't even enter the function(it's not displaying that 'trace' nor giving the value to '_parent.resp.text.can this be because the file is php but is displaying xml?EDIT:No that can't be the problem i've used it before... :)

Share this post


Link to post
Share on other sites

my bad... i was trying to put the function inside the onRelease :)but i still have a doubt, how is possible to make the text field empty after... lets say... 3 seconds?

Share this post


Link to post
Share on other sites
respostaXML = new XML;respostaXML.ignoreWhite = true;respostaXML.onLoad = function responde() {  resposta=respostaXML.firstChild.childNodes[0].nodeValue;  trace("it's here");  _parent.resp.text = resposta;};respostaXML.load("http://cgseguros/newsletter.php?&nome="+_parent.your_name+"&mail="+_parent.your_email);

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...