Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2003
    Location
    Sat at desk in a dull office
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Force on-screen update.

    How do you force the browser window to update it's display in Javascript? OR
    What is the equivlent of Visual Basic's Doevents?
    This is not the same as asp's response.flush.... it's on the clients browser.

    History:I am saving data from via javascript, and asp. The data is entered in standard textboxes, the save 'button' is pressed, which runs a routine to collate the data and open another window with parameters that asp on that page use to save.
    There is also a DIV on the first page that is displayed so the the user can see when data is being saved. Within the javascript save function this div has an image that has it's width resized (progress bar styley) as things proceed.
    All works well except the on screen display of the progress bar. This will only display the image as it is on inital load. If I stick an alert box in after each row the progress bar works fine. I suspect that the users wouldn't be too excited about having to click OK for each row though!
    So how to force the image display/div to be updated?

    Cheers....

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Not quite sure ... it sounds like you want an animated progress bar you can update through script?

    DD has just the thing - http://www.dynamicdrive.com/dynamici...mlprogress.htm - does that help you?
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #3
    New to the CF scene
    Join Date
    Apr 2003
    Location
    Sat at desk in a dull office
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs down Nice try....

    Thanks, but that (as groovy as it is) is no good. It's time dependant rather than dependant on the number of records. ..and it too has the same problem.

    It will do nothing unless I force a screen refresh with alert boxes...

    Any other ideas?

    Cheers,


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •