jo.nova Posted July 13, 2006 Share Posted July 13, 2006 From what I've read, I've gathered that doing a progress bar purely with PHP is pretty much impossible.I'd like my form (which is used for submitting print-jobs to our print-shop's workflow) to display an interim message or image between the time that the Submit button is hit and the time that the confirmation message is displayed. Since some large files take a while to upload, right now the customer just sees the form they filled out while their file uploads, with no indication that anything is happening.Is it possible to do something like: While (form data is uploading) {display message}; ???Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/14529-how-to-display-an-activity-indicator-during-post/ Share on other sites More sharing options...
dptr1988 Posted July 13, 2006 Share Posted July 13, 2006 I don't think it's possible with a server-side script. You could try a client-side script like JavaScript. Quote Link to comment https://forums.phpfreaks.com/topic/14529-how-to-display-an-activity-indicator-during-post/#findComment-57592 Share on other sites More sharing options...
jo.nova Posted July 13, 2006 Author Share Posted July 13, 2006 Yeah, I kinda figured that. Any suggestions? Quote Link to comment https://forums.phpfreaks.com/topic/14529-how-to-display-an-activity-indicator-during-post/#findComment-57593 Share on other sites More sharing options...
jo.nova Posted July 13, 2006 Author Share Posted July 13, 2006 I found a sweet article on this topic at:http://www.gen-x-design.com/archives/ajax-activity-indicators-make-them-global-and-unobtrusive/1/Seems to be just what I'm looking for. Now I've gotta figure the damn thing out! Quote Link to comment https://forums.phpfreaks.com/topic/14529-how-to-display-an-activity-indicator-during-post/#findComment-57601 Share on other sites More sharing options...
GingerRobot Posted July 13, 2006 Share Posted July 13, 2006 yeah, i was going to say that you shoud look towards ajax for this, ive been trying to find out more about it and it seems ideal for this this sort of thing. Quote Link to comment https://forums.phpfreaks.com/topic/14529-how-to-display-an-activity-indicator-during-post/#findComment-57602 Share on other sites More sharing options...
pixy Posted July 13, 2006 Share Posted July 13, 2006 I was going to suggest doing it in flash since it supports PHP scripting in it and such... Quote Link to comment https://forums.phpfreaks.com/topic/14529-how-to-display-an-activity-indicator-during-post/#findComment-57603 Share on other sites More sharing options...
ShogunWarrior Posted July 13, 2006 Share Posted July 13, 2006 Try these:http://www.raditha.com/php/progress.phporhttp://pdoru.from.ro/orhttp://www.devpro.it/upload_progress/ Quote Link to comment https://forums.phpfreaks.com/topic/14529-how-to-display-an-activity-indicator-during-post/#findComment-57604 Share on other sites More sharing options...
jo.nova Posted July 13, 2006 Author Share Posted July 13, 2006 ::Chuckles:: :DShogun, I looked at every one of those yesterday! They're cool, but not what I'm looking for. Thanks, though!pixy, I'd love to do it in Flash.....except I am completely bewildered by action scripts at this point. Isn't everbody? ;D Wish I DID know flash, though. Maybe someday I'll dig in. Quote Link to comment https://forums.phpfreaks.com/topic/14529-how-to-display-an-activity-indicator-during-post/#findComment-57612 Share on other sites More sharing options...
pixy Posted July 13, 2006 Share Posted July 13, 2006 www.pixel2life.com has loads of VERY helpful flash tutorials. Thats where I learn everything from. :D Quote Link to comment https://forums.phpfreaks.com/topic/14529-how-to-display-an-activity-indicator-during-post/#findComment-57617 Share on other sites More sharing options...
akitchin Posted July 13, 2006 Share Posted July 13, 2006 i think you'd be well off looking into AJAX for this, since it's fairly simple to implement if you have the patience to understand the basis behind AJAX. furthermore, after getting a basic grounding in AJAX, an entire world of options opens up.try following the introductory tutorial at [url=http://www.ajaxfreaks.com]www.ajaxfreaks.com[/url] (pardon the blatant in-promotion), and then have a look on google for "AJAX". apple.com in particular has a decent run-down of it. it helps to know a little bit about javascript.it's simple - run the form's POST request to your file upload script, and while the server is processing it, display an "uploading.." message or image into a previously hidden DIV. get a good grasp on the basics and you'll find it's fairly easy from there. Quote Link to comment https://forums.phpfreaks.com/topic/14529-how-to-display-an-activity-indicator-during-post/#findComment-57627 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.