Forum Moderators: coopster

Message Too Old, No Replies

Php Load/Save Page

Something Pretty To Look At While You Wait

         

theriddla1019

4:40 pm on Dec 30, 2004 (gmt 0)

10+ Year Member



Im looking for some information if its possible, maybe a link or two. Im wanting to show the user a page that lets them know that their data is saving or their data is loading, while php runs its functions. Then when the information is processed then redirect them. As it works now it just takes a few seconds where is looks like the page is frozen then redirects as it should. Im not even sure that this would be done in php, but i figured yall could shove me in the right direction.

Thanx,
Adam

jatar_k

5:14 pm on Dec 30, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



why does it take so long to save? You could show a message on the page before they submit it as well. Thing is if you output anything to the browser then you can't use the header function to redirect after.

My first thought is to make it faster.

theriddla1019

5:25 pm on Dec 30, 2004 (gmt 0)

10+ Year Member



Yeah thats what I was thinking, i dunno it takes like 2 or 3 seconds, saving alot of info. Just thought it would be nice to let them know it was saving and not frozen.

jatar_k

5:27 pm on Dec 30, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



if it is only 2 or 3 seconds I think a message would suffice. If you do find a way to speed it up, even better.

Is it just an insert or are you doing a ton of work with the data?

theriddla1019

5:33 pm on Dec 30, 2004 (gmt 0)

10+ Year Member



my inspiration for this is the priceline.com site, when you search for airfare etc it showes you a moving gif while it searches. I want to do something like that. My thought was to just pass the variables to the "page" that says its saving and save it there but then it "freezes" the gif animation because technically the pages is already redirected.

theriddla1019

5:34 pm on Dec 30, 2004 (gmt 0)

10+ Year Member



the information is being manipulated, converted, put into pdf and txt format and then saved i dont think there is much else i can do to speed up the process.

jatar_k

5:35 pm on Dec 30, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I believe you can do this with javascript, not sure, I just have never done it.

<added>another thought is to do just the txt and do the pdf later, that might be a rate limiting factor.