XMLHttpResponse is not showing any response....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dasty
    Recognized Expert New Member
    • Nov 2007
    • 101

    #31
    replace lines 42-70 with this code:

    [CODE=javascript]
    var response_receiv ed = false;

    function confirm_delete( )
    {
    if (response_recei ved) return true;
    var agre=confirm('a re you sure you want to delete the data???') ;
    if(!agre) return false;
    confirm_use();
    return false;
    }
    function confirm_send(us tr)
    {
    var http = getHTTPObject() ;
    http.open('GET' , ustr, true);
    alert(ustr);
    http.onreadysta techange = function()
    {
    if (http.readyStat e==4)
    {
    alert('Ready donut');
    alert(http.resp onseText);
    // validate response here and check if you want to send the form
    if (true) // if so
    {
    response_receiv ed = true;
    comptform.submi t();
    }
    }
    }
    http.send(null) ;
    }[/CODE]

    This is solution for Option 2 described in my post above (because I dont like synch ajax calls :)

    Comment

    • rpnew
      New Member
      • Aug 2007
      • 189

      #32
      hey friends....

      Thank you very much.... It seems working again.......
      If something goes wrong i'll get back to you ......

      Regards,
      RP

      Comment

      Working...