Click here to Skip to main content
16,011,868 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: ADO recordset error: "Operation is not allowed when the object is closed. " Pin
devvvy31-Jan-03 12:22
devvvy31-Jan-03 12:22 
QuestionMy Newest Website - Testers? Pin
Davy Mitchell30-Jan-03 21:06
Davy Mitchell30-Jan-03 21:06 
QuestionWait( ) function for VBScript? Pin
devvvy30-Jan-03 19:11
devvvy30-Jan-03 19:11 
AnswerRe: Wait( ) function for VBScript? Pin
Torsten Mauz31-Jan-03 2:47
Torsten Mauz31-Jan-03 2:47 
GeneralRe: Wait( ) function for VBScript? Pin
devvvy31-Jan-03 9:42
devvvy31-Jan-03 9:42 
GeneralObject.Sleep Pin
devvvy31-Jan-03 12:25
devvvy31-Jan-03 12:25 
GeneralRe: Object.Sleep Pin
Torsten Mauz31-Jan-03 15:53
Torsten Mauz31-Jan-03 15:53 
GeneralRe: Object.Sleep Pin
devvvy31-Jan-03 17:33
devvvy31-Jan-03 17:33 
Basically, I just need to add a time delay at one point in my script before executing the rest:

<% Response.Write "A message takes TIME to read %> I NEED TO HAVE THIS MSG STAY ON SCREEN FOR 1000 milli-sec.

Sleep(1000)

<%
ExecuteTheRest()
%>

That's all I want to do. And the following is the actual code:


<title>.....

...

Sub Login()
document.redirect_login_form.submit
End Sub

...

... some hidden variables here...

...
...
...
...
<%
Response.Write "CAN YOU SEE THIS MESSAGE?"
Response.Flush()
%>



<% If (bExistingLogin="1" Or bSuspended="1" Or bEMailPrevReg="1") Then %>

window.history.go(-1)

<% Else %>

Login()

<% End If %>




SYMTOMS:
Client side error: "object required WScript..." and I have no idea why...

So, I tried:
Object.Sleep 50000 (I think I remember seeing this somewhere...)
window.Sleep 50000 (Yes, "window" does not support this method)

Reference (WScript):
1. http://www.tek-tips.com/gviewthread.cfm/lev2/4/lev3/32/pid/329/qid/395765
2. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthappactivate.asp
3. http://www.aspalliance.com/steven.swafford/articles/defrag.aspx


I have also tried using setTimeout in place of Sleep... Got an error message saying "cannot use parentheses when calling a sub"


Sub WasteTime()

End Sub

window.setTimeout("WasteTime()",30000)


I tried too many things... I cant remember if there's an client side error..but I think the page got redirected as if setTimeout did NOT have any effect of the execution of my ASP page.

Help!

norm
GeneralRe: Object.Sleep Pin
Torsten Mauz31-Jan-03 23:39
Torsten Mauz31-Jan-03 23:39 
Generalhere's a simple solution to the problem Pin
devvvy2-Feb-03 20:18
devvvy2-Feb-03 20:18 
Generalscript block and Server.Transfer Pin
devvvy30-Jan-03 17:06
devvvy30-Jan-03 17:06 
GeneralRe: script block and Server.Transfer Pin
devvvy30-Jan-03 17:10
devvvy30-Jan-03 17:10 
GeneralRe: script block and Server.Transfer Pin
Paul Watson30-Jan-03 22:46
sitebuilderPaul Watson30-Jan-03 22:46 
GeneralRe: script block and Server.Transfer Pin
devvvy30-Jan-03 22:47
devvvy30-Jan-03 22:47 
GeneralASP .NET Web Hosting Pin
perlmunger30-Jan-03 6:56
perlmunger30-Jan-03 6:56 
GeneralRe: ASP .NET Web Hosting Pin
Paul Riley30-Jan-03 7:03
Paul Riley30-Jan-03 7:03 
GeneralRe: ASP .NET Web Hosting Pin
perlmunger30-Jan-03 7:35
perlmunger30-Jan-03 7:35 
GeneralRe: ASP .NET Web Hosting Pin
Paul Riley30-Jan-03 7:35
Paul Riley30-Jan-03 7:35 
GeneralRe: ASP .NET Web Hosting Pin
perlmunger30-Jan-03 7:49
perlmunger30-Jan-03 7:49 
GeneralAdd - Remove between two HTML List Boxes Pin
jerry0davis30-Jan-03 5:59
jerry0davis30-Jan-03 5:59 
GeneralRe: Add - Remove between two HTML List Boxes Pin
DFU2330-Jan-03 6:51
DFU2330-Jan-03 6:51 
GeneralRe: Add - Remove between two HTML List Boxes Pin
Torsten Mauz30-Jan-03 8:00
Torsten Mauz30-Jan-03 8:00 
GeneralRe: Add - Remove between two HTML List Boxes Pin
jerry0davis30-Jan-03 21:50
jerry0davis30-Jan-03 21:50 
GeneralRe: Add - Remove between two HTML List Boxes Pin
jerry0davis30-Jan-03 21:47
jerry0davis30-Jan-03 21:47 
GeneralSearch facility for website Pin
Member 20664930-Jan-03 3:21
Member 20664930-Jan-03 3:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.