Click to See Complete Forum and Search --> : question about a cursor in vbscript
pelegk1
07-22-2003, 08:35 AM
i have a vbscript function inside an asp page
the function run's on the client side
i want in the midle of the code to change the cursor to an hour glass cursor!
is it possible?
then how?
thanks in advance
Peleg
pelegk1
07-23-2003, 06:01 AM
this is the code :
Document.Body.Style.Cursor = "wait"
fso.CopyFolder strSourceDir & "*.*", strDestDir & strDirName '& "\" & lFile.Name
For Each lFile in lFileList
fso.CopyFile strSourceDir & lFile.Name, strDestDir & strDirName & "\" & lFile.Name
if err.number <> 0 then
ErrFound = true
wscript.echo "Error Found - Not Enough Files"
end if
Next
Set objFolder = fso.GetFolder(strDestDir & strDirName)
sFolderSize2 = objFolder.Size/(1024^2)
sFileCount2=objFolder.Files.Count
what happens after i change the cursor i make copy from cd to HD!
the problem is that the cursor dont change to the "wait" cursor
and in the time of the copy its like all the broswer is "frosen" until the copy is done!
is there a way the make the cursor change before the copy starts so the user wil understand that something is done and he mustwait?
thanks in advance
Peleg
pelegk1
07-23-2003, 08:07 AM
and used the setInterval() function
pelegk1
07-24-2003, 12:28 AM
i femiliar with this problem from director (a macromedia develop tool)
pelegk1
07-24-2003, 09:06 AM
cursor isn't it for all the page and it's objectss?
and not just a certain object?