Giving browser a "jolt"

S

Simon Wigzell

I have a web page that sends it's form results to another page through asp.
When that page is finished processing it changes some values in the main
page. This can take a few seconds depending on system usage. I have a "wait"
cursor come up in the main form but it isn't always apparent when the
calculation is finished. I would like the results page to call a javascript
function in the main page that will "jog" the page within the browser, that
is move it up say 10 pixels and then move it down again 10 pixels so that
there is a visual clue that the calculation is finished. Can I use the
"scrollto" function? I've used it before to scroll to an absolute number of
pixels from the top of the page but can I use it to e.g.

scrollto(0,[whereever we are now - 10]);
scrollto(0,[whereever we are now + 10]);

What would be the syntax for that? Any other way to do it?
 
F

Fabian

Simon Wigzell hu kiteb:
I have a web page that sends it's form results to another page
through asp. When that page is finished processing it changes some
values in the main page. This can take a few seconds depending on
system usage. I have a "wait" cursor come up in the main form but it
isn't always apparent when the calculation is finished. I would like
the results page to call a javascript function in the main page that
will "jog" the page within the browser, that is move it up say 10
pixels and then move it down again 10 pixels so that there is a
visual clue that the calculation is finished.

Just an interface issue. Wouldn't it be more efficient to have a text
message appear instead? This could be initially hidden with the
visibility attribute, and set to display inline when the calculation is
finished. Many people, faced with a computer doing something that does
not take place instantaneously, will NOT watch the screen constantly.
Having a lasting text message avoids this problem.

Plus, text is intuitively more meaningful than the screen jolting. My
first thought would be a computer glitch if that happened.
 
P

Peter van Merkerk

I have a web page that sends it's form results to another page through
asp.
When that page is finished processing it changes some values in the main
page. This can take a few seconds depending on system usage. I have a "wait"
cursor come up in the main form but it isn't always apparent when the
calculation is finished. I would like the results page to call a javascript
function in the main page that will "jog" the page within the browser, that
is move it up say 10 pixels and then move it down again 10 pixels so that
there is a visual clue that the calculation is finished. Can I use the
"scrollto" function? I've used it before to scroll to an absolute number of
pixels from the top of the page but can I use it to e.g.

scrollto(0,[whereever we are now - 10]);
scrollto(0,[whereever we are now + 10]);

What would be the syntax for that? Any other way to do it?

window.moveBy(x,y) does the trick:
http://www.dse.nl/~merkerk/electronica/video_stab/index.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top