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)
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
|
|
|
|
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)
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
|
|
|
|
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)
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
|
|
|
|
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)
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
|
|
|
|
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)
I want the page to be automatically refreshed when problem occurs. so I thought of using Ajax
|
|
|
|
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)
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
|
|
|
|
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)
I used procedure webbrowser_downloadcomplete() and my problem is sorted out
|
|
|
|