Jump to content

Not entering a function...


Obi1-Cannabis

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... :)

Link to comment
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);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...