[Javascript] Remote Scripting

BEKIM BACAJ Trojani2000 at hotmail.com
Thu Jun 28 05:56:46 CDT 2001


It is working on my browser, IE 5.5 but I know it works in IE5.0 also, even if it's not defined in CSS at all.
But why are you using document.all type of thing. It calls all the document objects and counts them, than it finds the referenced object and at the end it calls the specified object for handle. It slows down you're script functions, depending on the size and the number of you're document objects a lot.
It would be nice to have the cursor wait displayed everywhere in the page during the dataB data download. It would also be preferable to disable all the links and other functions in the page during this data travel, but also ESC button function to cancel data reading by client at any time.

document.body.style.cursor='wait'  
document.body.style.cursor='default'

would be more lighter, or in case you like to have the cursor wait state only over the element that retrieves data access it directly by its ID:
theobject.style.cursor=...   

The main problem remains, in how to get the cursor back to default after the data read is completed. You have to find the way to keep track of the data complete, so you know when to switch to default.

Regards
P.S. I'd like to see some of you're code

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Well, finally got the cursor='wait'  working, by calling a one-off timeout
and then going on with
the remote script.

I noticed also, don't know if it was my programming, but I couldn't change
the cursor type if it
was only defined in the CSS. I had to define it in script before I could
change it in script.
ie

<script>
document.all['remotenav'].style.cursor='default'
function mytest()
{
document.all['remotenav'].style.cursor='wait'
}
<script>

Andrew Gibson



_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascriptGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010628/3f38c9fe/attachment.htm>


More information about the Javascript mailing list