Re: AJAX -- communication timing issue?



"rvandervort" <rvandervort@xxxxxxxxx> wrote in message
news:1130692773.824652.180410@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I'm having a real problem here.
>
> I have a JS function: getExpenseDetails() it's a asynch call to a
> php
> script behind the scenes which returns XML formatted expense
> details.
> in my onreadystate change function call, handleExpenseDetails I
> popup a
> DIV with a table of the records returned.
>
> For each record, I give the ability to mark and delete, another
> asynch
> call -- deleteExpense(). When that asynch call returns to
> handleDeleteExpense(), I call the same getExpenseDetails() to
> update
> that DIV with the new list of detail records. I check for
> readyState
> == 4 && status == 200 in the handleDeleteExpense() function, but I
> only
> ever get back a readyState value of 1 and status of 200.
>
> What could be going on here?
>

Is it possible there's a problem with your "deleteExpense" server
code?
Or show some client-side code.

Tim.




.



Relevant Pages

  • Re: AJAX -- communication timing issue?
    ... > I have a JS function: getExpenseDetails() it's a asynch call to a php ... > For each record, I give the ability to mark and delete, another asynch ... > that DIV with the new list of detail records. ... > ever get back a readyState value of 1 and status of 200. ...
    (comp.lang.javascript)
  • AJAX -- communication timing issue?
    ... getExpenseDetails() it's a asynch call to a php ... DIV with a table of the records returned. ... For each record, I give the ability to mark and delete, another asynch ... ever get back a readyState value of 1 and status of 200. ...
    (comp.lang.javascript)