NYCPHP Meetup

NYPHP.org

[nycphp-talk] Waiting for query redirect...

Mark Armendariz nyphp at enobrev.com
Thu Oct 30 21:09:38 EST 2003


AS a follow up, expedia.com seems to use the hide the loading div method:

Here's a snippet:

<!-- srvpush2 18:05:48(:991) -->
	
	<SCRIPT>getObj('PT').innerHTML="Expedia.com is searching for cars.
Please wait.";
	document.title="Expedia.com is searching for cars. Please
wait.";</SCRIPT>
	
<!-- abcd --><!-- srvpush3 18:05:49(:491) -->
	
	<SCRIPT>getObj('PT').innerHTML="Expedia.com is searching for cars.
Please wait.";
	document.title="Expedia.com is searching for cars. Please
wait.";</SCRIPT>
	
<!-- abcd --><!-- srvpush4 18:05:51(:835) -->

	<SCRIPT>getObj('PT').innerHTML="Expedia.com is searching for cars.
Please wait.";
	document.title="Expedia.com is searching for cars. Please
wait.";</SCRIPT>
	
<!-- abcd --><!-- srvpush5 18:05:52(:335) -->

	<SCRIPT>getObj('PT').innerHTML="Expedia.com is searching for cars.
Please wait.";
	document.title="Expedia.com is searching for cars. Please
wait.";</SCRIPT>
	
<!-- abcd -->

<!-- srvpush 18:06:02(:491) -->

And the result code is displayed here.

Thanks again for all the suggestions!!

Mark

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Mark Armendariz
Sent: Thursday, October 30, 2003 6:46 PM
To: 'NYPHP Talk'
Subject: RE: [nycphp-talk] Waiting for query redirect...

Great suggestions!! Thanks!!

I had actaully checked them out, and they were redirects.  I figured they
might run the query and save the results locally, then once saved, perform
the redirect, but wasn't sure how they notified the page of the redirect.  I
suppose they could do something similar to what's mentioned as a cached
page, and once the page has been saved, output a javascript redirect to it. 

And now that I look at it, here's the url params:
ViewFlightSearchResults?cache=1067557412820&requestId=117

Which says to me that it's most likely exactly that, just s cached page (or
set of pages) of sorts.

Thank you all!!!

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Analysis & Solutions
Sent: Thursday, October 30, 2003 6:13 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Waiting for query redirect...

Hey Folks:

On Thu, Oct 30, 2003 at 04:44:28PM -0500, D C Krook wrote:
> 
> To redirect after page loads:
> - As the last line of the body in your document (and thus the last to 
> load), use <script>location.href='confirmation.html'</script>

And make sure to have a <noscript> in there for folks without JavaScript,
providing them a link to the confimation page.

Or, I guess you can simply continue on the same page and eventually feed the
response below the waiting message.

Or, perhaps, you can place the results in another <div> which you can use
style sheets to have it placed opaquely over the waiting message.  I haven't
tried this, just a hypothesis.

To really figure out Orbitz, et al, do it, look at their HTML.

See you,

--Dan

-- 
     FREE scripts that make web and database programming easier
           http://www.analysisandsolutions.com/software/
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7th Ave #4AJ, Brooklyn NY    v: 718-854-0335   f: 718-854-0409
_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk



_______________________________________________
talk mailing list
talk at lists.nyphp.org
http://lists.nyphp.org/mailman/listinfo/talk






More information about the talk mailing list