I seem to be having a problem with req.responseText not changing when
a new one comes from the server.  For example, I am using
req.responseText to get form validation feedback based on server side
coding.  When the server has no problems the server output is
whitespace, when it doesn't like form fields it sends back a JSON
coded string with the error information.

Everything works great on the first POST.  Following posts do exactly
what they are supposed to on the server side, but the req.responseText
doesn't refresh.  Do I need to clear it or something? This is really a
problem since the page keeps showing errors when the server is only
sending whitespace back!

Here's my POST code, the querystring is coded (correctly) above it:

var d_setup = new getXMLHttpRequest();
d_setup.open( "POST", url, true);
d_setup.setRequestHeader('Content-Type', 'application/x-www-form-
urlencoded');
var d = sendXMLHttpRequest( d_setup, d_querystring);
d.addCallbacks(handleServerFeedback,handleServerError);

Thanks for responses ahead of time.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to