Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default transition screens

    When you use Orbitz or Hotwire, and you execute a search, a nice screen with
    adverts pops up while the search is conducted, and then you are taken to the
    results page.

    How would you do that in PHP and ASP? I need both as I want to use it in
    two projects.

    thanks a lot,
    Z


    OneSolution Guest

  2. Similar Questions and Discussions

    1. Screens. Where best to put actionScript
      Hello I'm having a play with screens both form and slide based and so far these are my concerns 1. There is very little documentation around...
    2. Screens HELP
      I don't know what is wrong I have a few screens. On one of them I have a button to which I add a behavour to hide this same screen. It doesn't...
    3. Loading Screens
      Does Any One No How To Create Loading Screens The Bit That Goes Before The Movie. I Dont No How To Do It Can Any Body Help.
    4. Screens for a picture
      I work at a print shop and I was wondering if anybody has ever heard of screening a picture? It is were you lay dots over the screen and I understand...
    5. screens
      Cees wrote: Don't worry about it. In my experience the X Window System installed by Woody does that about half the time. That's one reason...
  3. #2

    Default Re: transition screens

    "OneSolution" <onesolution@sbcglobal.net> wrote in message news:<cU50d.18109$v13.7818@newssvr24.news.prodigy. com>...
    > When you use Orbitz or Hotwire, and you execute a search, a nice screen with
    > adverts pops up while the search is conducted, and then you are taken to the
    > results page.
    >
    > How would you do that in PHP and ASP? I need both as I want to use it in
    > two projects.
    >
    > thanks a lot,
    > Z
    Use META HTTP-EQUIV=Refresh to do it. No PHP needed unless you wanted
    to get fancier.

    Ben
    [url]http://www.daq5studios.com[/url]
    duz Guest

  4. #3

    Default Re: transition screens

    Hi Guys,

    I'm not sure if that'll do the trick. Let me elaborate.

    A search may take up to 1 minute to run, which is a really long time and I
    am working on reducing it. But for now, I have to deal with it.

    So while my client is waiting for the search to complete, I want a
    percentage ticker or some animation to indicate to the client that the
    system hasn't hung, and in fact is searching.

    So if you look on hotwire, or priceline, or any other site, while their
    search is being conducted, they display an animation screen saying,
    "Searching ... ", and that page refreshes quite constantly.

    As soon as the search has finished, it shows the results.

    If I used a META refresh tag, then each time the page re-loads, the search
    will restart. That's quite useless. I want the search to start, and
    continue while the displayed page indicates that the search is in process.

    If I used Java, I could spawn a thread and run the search on that thread
    while the main thread uses a keep-alive request to talk to the browser, and
    when the search thread has completed, display the results.

    In ASP and PHP, how would I do something similar?

    I am currently exploring (in ASP) the server.transfer method. Here's the
    way I figure it.

    When the user clicks on the search button, I show them a page with some
    animated GIF to keep their attention. In the mean time, I do a backend
    server.transfer to an ASP script that executes the search. Since the search
    is time consuming, I do the response.buffer=true. This way, the user's
    browser window will show the last page displayed until the new page is good
    and ready to be displayed. The last page displayed is the one with the
    stupid animated GIF saying "searching ... ". So when the ASP that is doing
    the search is done, it'll show the results.

    Whaddaya think? Is there a better way to do it?

    Thanks,
    Z


    "OneSolution" <onesolution@sbcglobal.net> wrote in message
    news:cU50d.18109$v13.7818@newssvr24.news.prodigy.c om...
    > When you use Orbitz or Hotwire, and you execute a search, a nice screen
    > with adverts pops up while the search is conducted, and then you are taken
    > to the results page.
    >
    > How would you do that in PHP and ASP? I need both as I want to use it in
    > two projects.
    >
    > thanks a lot,
    > Z
    >

    OneSolution Guest

  5. #4

    Default Re: transition screens

    Yea, in MySQL, the LIMIT keyword is great. That's what I plan on doing
    there. In the ASP side of it, especially with Access, it really sucks.
    Unfortunately, I have to build my prototype in Access to demonstrate the
    functionality.


    <Michael Vilain <vilain@spamcop.net>> wrote in message
    news:vilain-2F9F4A.00501513092004@comcast.dca.giganews.com...
    > In article <2A31d.19327$bP2.5562@newssvr24.news.prodigy.com >,
    > "OneSolution" <onesolution@sbcglobal.net> wrote:
    >
    >> Hi Guys,
    >>
    >> I'm not sure if that'll do the trick. Let me elaborate.
    >>
    >> A search may take up to 1 minute to run, which is a really long time and
    >> I
    >> am working on reducing it. But for now, I have to deal with it.
    >>
    >> So while my client is waiting for the search to complete, I want a
    >> percentage ticker or some animation to indicate to the client that the
    >> system hasn't hung, and in fact is searching.
    >>
    >> So if you look on hotwire, or priceline, or any other site, while their
    >> search is being conducted, they display an animation screen saying,
    >> "Searching ... ", and that page refreshes quite constantly.
    >>
    >> As soon as the search has finished, it shows the results.
    >>
    >> If I used a META refresh tag, then each time the page re-loads, the
    >> search
    >> will restart. That's quite useless. I want the search to start, and
    >> continue while the displayed page indicates that the search is in
    >> process.
    >>
    >> If I used Java, I could spawn a thread and run the search on that thread
    >> while the main thread uses a keep-alive request to talk to the browser,
    >> and
    >> when the search thread has completed, display the results.
    >>
    >> In ASP and PHP, how would I do something similar?
    >>
    >> I am currently exploring (in ASP) the server.transfer method. Here's the
    >> way I figure it.
    >>
    >> When the user clicks on the search button, I show them a page with some
    >> animated GIF to keep their attention. In the mean time, I do a backend
    >> server.transfer to an ASP script that executes the search. Since the
    >> search
    >> is time consuming, I do the response.buffer=true. This way, the user's
    >> browser window will show the last page displayed until the new page is
    >> good
    >> and ready to be displayed. The last page displayed is the one with the
    >> stupid animated GIF saying "searching ... ". So when the ASP that is
    >> doing
    >> the search is done, it'll show the results.
    >>
    >> Whaddaya think? Is there a better way to do it?
    >
    > The browser needs to be doing the animation while the server is busy
    > doing the database load. So your form collects the information and
    > sends a page to the browser. That page runs a Javascript animation or
    > Java applet or displays an animated GIF for a "please wait" message.
    > When the query completes, it sends it's output to the browser.
    >
    > The key problem is that the web server makes the request of the database
    > via php. There's no progress information communicated back from MySQL
    > to Apache, so there's no way to report it to the client browser. So,
    > unless you want to 'do your own thing' and not bother with Apache, php,
    > or MySQL, you're out of luck with this approach.
    >
    > I doubt you could do anything like a progress bar that's in any way
    > meaningful as you have no way to obtain true progress information from
    > the server while the search is going on. You could write your own Java
    > servlet that does the lookup and reports % complete to a corresponding
    > Java applet that you download to the browser. But this sidesteps PHP
    > and web pages for your own home-grown stuff. Seems like a very large
    > investment for very little return.
    >
    > I'd work on fixing the query to return less results using LIMIT or
    > fixing the tables being queried so that they don't do full table scans
    > (e.g. add indexes on fields being queried).
    >
    > --
    > DeeDee, don't press that button! DeeDee! NO! Dee...
    >
    >
    >

    OneSolution Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139