Web Analytics Made Easy -
StatCounter ajax progress display? - CodingForum

Announcement

Collapse
No announcement yet.

ajax progress display?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ajax progress display?

    I'm fetching some search text results on the sever with my ajax form - is there a way to show progress of the search rather than wait until the search is completed and then returning the results?

    I'd like to be able to return each hit (find results) back to the form as it happens so the user can see something is happening. Is there a state that I can test for to do this?

    Thanks...
    RalphF
    Business Text Messaging Services
    https://www.MobileTextingService.com

  • #2
    Look here:

    http://www.codingforum.net/showthread.php?t=162558

    From just a few days ago.

    Using a GUID to identify the client to the two AJAX pages seems like the best idea.
    Be yourself. No one else is as qualified.

    Comment


    • #3
      I see...interesting idea...I'll work on it.

      Thanks...
      RalphF
      Business Text Messaging Services
      https://www.MobileTextingService.com

      Comment


      • #4
        This is my ajax function code.

        Where would I insert my secondary ajax 'progress' call within this primary ajax call?

        PHP Code:
        function test_ajax_call()
        {
            var 
        argument "test";
            var 
        url "AjaxClickServer.php";
            var 
        params "arg=" agrument;
            
        http.open("POST"urltrue);
            
        http.setRequestHeader("Content-type""application/x-www-form-urlencoded");
            
        http.setRequestHeader("Content-length"params.length);
            
        http.setRequestHeader("Connection""close");
            
        http.onreadystatechange = function()
                 {
                   if (
        http.readyState == 4//Finished loading the response
                      
        {
                        if (
        http.status == 200)
                           {
                             var 
        response http.responseText;
                           }
                        else
                           {
                             
        alert("Ajax error: " http.statusText);
                           }
                      }
                 }
            
        http.send(params);

        RalphF
        Business Text Messaging Services
        https://www.MobileTextingService.com

        Comment

        Working...
        X