autorefreh vb

Author Message
suvi

  • Total Posts : 5
  • Scores: 0
  • Reward points : 0
  • Joined: 10/16/2007
  • Status: offline
autorefreh vb Tuesday, October 16, 2007 8:43 PM (permalink)
0
Original message moved by dm_4ever
Reason : Moving To Appropriate Forum
hi

I want to autorefresh a webpage when it is idle
can we integrate vbscript + Ajax
Plz guide
 
#1
    TNO

    • Total Posts : 2094
    • Scores: 36
    • Reward points : 0
    • Joined: 12/18/2004
    • Location: Earth
    • Status: offline
    RE: autorefreh vb Thursday, October 18, 2007 4:56 PM (permalink)
    0
    We're going to need more info thea that.
     
    #1- What do you mean by idle? The user not moving the mouse or hitting any keys? Or an idle connection with the server?
    #2- Generally speaking people use AJAX so they don't have to refresh the page. Please clarify what you mean.
     
    But yes you can integrate AJAX and VBScript pretty easily.
    To iterate is human, to recurse divine. -- L. Peter Deutsch
     
    #2
      suvi

      • Total Posts : 5
      • Scores: 0
      • Reward points : 0
      • Joined: 10/16/2007
      • Status: offline
      RE: autorefreh vb Thursday, October 18, 2007 7:07 PM (permalink)
      0
       
      Connection with server is ok but i can't see any progress until i move the mouse or refresh the page.
      This happens only sometimes and I am not able to find the reason


       
      #3
        TNO

        • Total Posts : 2094
        • Scores: 36
        • Reward points : 0
        • Joined: 12/18/2004
        • Location: Earth
        • Status: offline
        RE: autorefreh vb Monday, October 22, 2007 10:19 AM (permalink)
        0
        What do you have so far? Doesnt sound as much an AJAX issue at the moment.
        To iterate is human, to recurse divine. -- L. Peter Deutsch
         
        #4
          suvi

          • Total Posts : 5
          • Scores: 0
          • Reward points : 0
          • Joined: 10/16/2007
          • Status: offline
          RE: autorefreh vb Monday, October 22, 2007 5:55 PM (permalink)
          0
          I want  the page to be automatically refreshed when problem occurs. so I thought of using Ajax
           
          #5
            TNO

            • Total Posts : 2094
            • Scores: 36
            • Reward points : 0
            • Joined: 12/18/2004
            • Location: Earth
            • Status: offline
            RE: autorefreh vb Monday, October 22, 2007 6:27 PM (permalink)
            0
            Window.Reload can be used to refresh a webpage. I'm not sure here you're getting AJAX out of all this without more information.

            In JavaScript:
             try {
             execute this block
             } catch (error) {
             execute this block if error (in this case window.reload())
             }
             


            in vbs:
             On Error Resume Next 
             Window.Reload
             Err.Clear   ' Clear the error.
             



            Is this perhaps an issue with you not setting the async property properly. The page will lock out all script interaction until it receives server info if this is set incorrectly.
            To iterate is human, to recurse divine. -- L. Peter Deutsch
             
            #6
              suvi

              • Total Posts : 5
              • Scores: 0
              • Reward points : 0
              • Joined: 10/16/2007
              • Status: offline
              RE: autorefreh vb Tuesday, October 23, 2007 11:31 PM (permalink)
              0
              I used procedure webbrowser_downloadcomplete() and my problem is sorted out

               
              #7

                Online Bookmarks Sharing: Share/Bookmark

                Jump to:

                Current active users

                There are 0 members and 1 guests.

                Icon Legend and Permission

                • New Messages
                • No New Messages
                • Hot Topic w/ New Messages
                • Hot Topic w/o New Messages
                • Locked w/ New Messages
                • Locked w/o New Messages
                • Read Message
                • Post New Thread
                • Reply to message
                • Post New Poll
                • Submit Vote
                • Post reward post
                • Delete my own posts
                • Delete my own threads
                • Rate post

                2000-2012 ASPPlayground.NET Forum Version 3.9