HTTP Request from JavaScript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #16
    Originally posted by pankajit09
    Actually I want to freeze the background while the Ajax is going on and also showing a GIF image(progress) .

    How to do that ?
    With a synchronous request, the browser will freeze, so your animated image will show, but it may not be animated! Show the image before you make the request and possibly some text to explain what's happening. I think a non-Ajax solution makes more sense here, but that's just my opinion.

    Comment

    • pankajit09
      Contributor
      • Dec 2006
      • 296

      #17
      Originally posted by acoder
      With a synchronous request, the browser will freeze, so your animated image will show, but it may not be animated! Show the image before you make the request and possibly some text to explain what's happening. I think a non-Ajax solution makes more sense here, but that's just my opinion.

      I am saving the data present in cells of a spreadsheet so I think non Ajax is not good.
      What do you think ?

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #18
        Originally posted by pankajit09
        I am saving the data present in cells of a spreadsheet so I think non Ajax is not good.
        What do you think ?
        The only reason why I think it's better not to use 'Ajax' here is that you're planning to use a synchronous request. This freezes the browser until a response is received which goes against the whole concept of Ajax. Why not use an asynchronous request? Does it take a long time for the server-side script to be processed?

        Comment

        Working...