Connecting Tech Pros Worldwide Help | Site Map

Giving browser a "jolt"

  #1  
Old July 20th, 2005, 01:04 PM
Simon Wigzell
Guest
 
Posts: 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?


  #2  
Old July 20th, 2005, 01:04 PM
Fabian
Guest
 
Posts: n/a

re: Giving browser a "jolt"


Simon Wigzell hu kiteb:
[color=blue]
> 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.[/color]

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

  #3  
Old July 20th, 2005, 01:05 PM
Peter van Merkerk
Guest
 
Posts: n/a

re: Giving browser a "jolt"


> I have a web page that sends it's form results to another page through
asp.[color=blue]
> 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[/color]
"wait"[color=blue]
> 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[/color]
javascript[color=blue]
> function in the main page that will "jog" the page within the browser,[/color]
that[color=blue]
> 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[/color]
of[color=blue]
> 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?[/color]

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


Closed Thread