Giving browser a "jolt"

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Simon Wigzell

    Giving browser a "jolt"

    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?


  • Fabian

    #2
    Re: Giving browser a "jolt&quot ;

    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!
    AGAM69 menghadirkan inspirasi desain kreatif, solusi digital, pengembangan teknologi, serta inovasi modern untuk kebutuhan bisnis dan profesional.


    Comment

    • Peter van Merkerk

      #3
      Re: Giving browser a "jolt&quot ;

      > 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:


      --
      Peter van Merkerk
      peter.van.merke rk(at)dse.nl


      Comment

      Working...