Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Remote Scripting


  • From: javascript@xxxxxxxxxx (BEKIM BACAJ)
  • Subject: [Javascript] Remote Scripting
  • Date: Thu, 28 Jun 2001 12:56:46 +0200

------=_NextPart_001_0001_01C0FFD1.C9B36980
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

It is working on my browser, IE 5.5 but I know it works in IE5.0 also, ev=
en if it's not defined in CSS at all.
But why are you using document.all type of thing. It calls all the docume=
nt objects and counts them, than it finds the referenced object and at th=
e end it calls the specified object for handle. It slows down you're scri=
pt functions, depending on the size and the number of you're document obj=
ects 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 a=
ll 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=3D'wait' =20
document.body.style.cursor=3D'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=3D...  =20

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=3D'wait'  working, by calling a one-off time=
out
and then going on with
the remote script.

I noticed also, don't know if it was my programming, but I couldn't chang=
e
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=3D'default'
function mytest()
{
document.all['remotenav'].style.cursor=3D'wait'
}
<script>

Andrew Gibson



_______________________________________________
Javascript mailing list
Javascript@xxxxxxxxxx
http://www.LaTech.edu/mailman/listinfo/javascriptGet more from the Web.  =
FREE MSN Explorer download : http://explorer.msn.com

------=_NextPart_001_0001_01C0FFD1.C9B36980
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML><BODY STYLE=3D"font:10pt verdana; border:none;"><DIV>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.</DIV> <DIV>But why are you using document.all typ=
e of thing. It calls all the document objects and counts them, than it fi=
nds the referenced object and at the end it calls the specified object fo=
r handle. It slows down you're script functions, depending on the size an=
d the number of you're document objects a lot.</DIV> <DIV>It would be nic=
e to have the cursor wait displayed everywhere in the page during the dat=
aB data download. It would also be preferable to disable all the links an=
d other functions in the page during this data travel, but also ESC butto=
n function to cancel data reading by client at any time.</DIV> <DIV>&nbsp=
;</DIV> <DIV><STRONG>document.body.style.cursor=3D'wait' </STRONG></DIV> =
<DIV><STRONG>document.body.style.cursor=3D'default'</STRONG></DIV> <DIV>&=
nbsp;</DIV> <DIV>would be more lighter, or in case you like to have the c=
ursor wait state only over the element that retrieves data access it dire=
ctly by its ID:</DIV> <DIV>theobject.style.cursor=3D...&nbsp;&nbsp;</DIV>=
 <DIV>&nbsp;</DIV> <DIV>The main problem remains, in how to get the curso=
r 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 def=
ault.</DIV> <DIV>&nbsp;</DIV> <DIV>Regards</DIV> <DIV>P.S. I'd like to se=
e some of you're code</DIV> <DIV>&nbsp;</DIV> <DIV>~~~~~~~~~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</DIV> <DIV>~~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</DIV> <DIV>~~~~~~~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~</DIV> <DIV><BR>Well, finally got the cursor=3D=
'wait'&nbsp; working, by calling a one-off timeout<BR>and then going on w=
ith<BR>the remote script.<BR><BR>I noticed also, don't know if it was my =
programming, but I couldn't change<BR>the cursor type if it<BR>was only d=
efined in the CSS. I had to define it in script before I could<BR>change =
it in script.<BR>ie<BR><BR>&lt;script&gt;<BR>document.all['remotenav'].st=
yle.cursor=3D'default'<BR>function mytest()<BR>{<BR>document.all['remoten=
av'].style.cursor=3D'wait'<BR>}<BR>&lt;script&gt;<BR><BR>Andrew Gibson<BR=
><BR><BR><BR>_______________________________________________<BR>Javascrip=
t mailing list<BR>Javascript@xxxxxxxxxx<BR>http://www.LaTech.edu/mailman/=
listinfo/javascript<BR></DIV></BODY></HTML><br clear=3Dall><hr>Get more f=
rom the Web.  FREE MSN Explorer download : <a href=3D'http://explorer.msn=
.com'>http://explorer.msn.com</a><br></p>

------=_NextPart_001_0001_01C0FFD1.C9B36980--