On 7/14/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> 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);


If you post the source code of 'handleServerFeedback' and
'handleServerError'
then it will be easier to find the problem, since it probably has to do with
something on those functions.

First thought that comes to mind is maybe you are setting the first
responseText
to some global variable and then not resetting it to the current value.

Alex

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