By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,610 Members | 1,923 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,610 IT Pros & Developers. It's quick & easy.

Giving browser a "jolt"

P: n/a
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?
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #2

P: n/a
> 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/electroni...tab/index.html

--
Peter van Merkerk
peter.van.merkerk(at)dse.nl
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.