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 5 of 5
  1. #1
    Regular Coder
    Join Date
    Nov 2005
    Posts
    148
    Thanks
    1
    Thanked 0 Times in 0 Posts

    loading time problem!

    this my coding:
    echo"<script>win = window.open(\"index.php\",\"abc\",\"resizable = 0, menubar = 0, scrollbars = 1, status = 0, toolbar = 0\");</script>";
    include_once('scheduling_timetable.php');

    i would llike the first window to open and display to user first and then just run the second one, isnt possible to done that??

  • #2
    Senior Coder
    Join Date
    Apr 2005
    Location
    Colorado, United States
    Posts
    1,208
    Thanks
    0
    Thanked 0 Times in 0 Posts
    All PHP is run first unless you flush the output buffer. Even then, it sometimes waits. If you want to load the timetable first, perhaps load it into a hidden div and use a javascript call after the popup window opens to show it? I would recommend sticking to tried and true methods though, and not rely on javascript.
    "$question = ( to() ) ? be() : ~be();"

  • #3
    Regular Coder
    Join Date
    Nov 2005
    Posts
    148
    Thanks
    1
    Thanked 0 Times in 0 Posts
    i had try the flush function but not more different that before, and i had set the output_buffering in php.ini to off alre then isnt the flush method not function in my server?

    the result that i get when i run the upper code is it will prompt out a new window first but didnot any content on it and the new window will display when the second row of coding was finish run it.
    isnt possible to make the first window display without care whether the second code was finish run or not?

  • #4
    Senior Coder
    Join Date
    Apr 2005
    Location
    Colorado, United States
    Posts
    1,208
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you don't care which one is loaded or not, your current code should work just fine.
    "$question = ( to() ) ? be() : ~be();"

  • #5
    Regular Coder
    Join Date
    Nov 2005
    Posts
    148
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Velox Letum
    If you don't care which one is loaded or not, your current code should work just fine.
    ya, my current code was work fine, but i just want show out the loading msg to the user when the second pages was in loading. isnt possble to do for it?


  •  

    Posting Permissions

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