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 4 of 4
  1. #1
    New Coder
    Join Date
    Jul 2004
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    showing a progress bar when my php script is working in background

    Hi

    I wanna show a progress bar with message when my php script is working in background to the user who has submitted the form.

    my output is inside a table, and it would show the progress bar with message till the complete table is loaded .

    How can I do this?

    thanks.

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you can't with PHP.

    well, you could if your script runs on a server that allows you to send the buffers content to the client before scriptexecution + if the user uses a browser that displays content before the page is completely loaded.
    Especially this last condition is something you can't control. A good browser, wount display any cell of a table untill the table is completely loaded, so nothing would show in your case.
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #3
    Regular Coder
    Join Date
    Oct 2003
    Posts
    603
    Thanks
    2
    Thanked 1 Time in 1 Post

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Sheffield, UK
    Posts
    552
    Thanks
    0
    Thanked 0 Times in 0 Posts
    in theory you could output a little bit of javascript after every few table rows that would update a progress counter at the top.

    A good browser, wount display any cell of a table untill the table is completely loaded, so nothing would show in your case.
    So whats the point of table-layout: fixed; then?
    "To be successful in IT you don't need to know everything - just where to find it in under 30 seconds"

    (Me Me Me Me Me Me Me Me Me)


  •  

    Posting Permissions

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