displaying a loading message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • codeseeker1
    New Member
    • Jan 2009
    • 14

    displaying a loading message

    hi,
    iam including a php page containing db insertion and xml creation in another page.but until the included page fully processed,page diaplaying contens is fully blank.any idea of giving a loading message till included page fully processed? page is included at top of page
    Code:
    <?php
    session_start();
    if(!isset($_SESSION['userid']))
    {?>
    <script type="text/javascript">window.location='index.php'</script>
    <?php
    } 
    ?>
    <?php
    include("prq_calculation.php"); 
    ?>
    thanks in sdvance
  • stepterr
    New Member
    • Nov 2007
    • 157

    #2
    You have a couple options.
    1.) meta refresh
    2.) using javascript with onload (here's an example of that)
    3.) or submit the page to an intermediate page first that has your message on it.

    there are other options but those are the three I've done depending on the situation.

    Comment

    Working...