yegorpb
06-06-2005, 02:03 AM
Im having a script coded (in php), and one of its sections allows users to submit large video files. I was thinking it might be nice to include some sort of a progress bar so people can see that its doing something.
I stumbled upon this:
http://hotscripts.com/Detailed/25027.html
But its far too bulky, since it opens in a new window, and much more complicated than it needs to be. Does anyone know an alternative solution?
Burhan
06-06-2005, 02:05 AM
Try HTML_Progress over at PEAR.
zackeriu55
06-06-2005, 02:36 AM
I thought smarty had a way of doing progress bars as well?
Koobi
06-06-2005, 04:08 AM
What about the XMLHTTP Request Object?
...it is client side technology though :/
sasha
06-06-2005, 07:41 AM
Originally posted by yegorpb
Im having a script coded (in php), and one of its sections allows users to submit large video files. I was thinking it might be nice to include some sort of a progress bar so people can see that its doing something.
I stumbled upon this:
http://hotscripts.com/Detailed/25027.html
But its far too bulky, since it opens in a new window, and much more complicated than it needs to be. Does anyone know an alternative solution?
Mega Upload is just a proof of concept and shows the best way to do upload progress bar with PHP. It does not have to be bulky as it seems, you could rewrite some of the perl code to PHP (except the part that receives the file) and you could open it in inline frame rather then popup if you really want to.
yegorpb
06-06-2005, 07:53 AM
The thing about that script, is that it only uploads to the server its hosted on. MY uploader uploads files to another server, which makes things very difficult.
orbitz
06-06-2005, 10:19 AM
use javascript then - it is not a real progress bar. just some bar indicating it's still sending your file. There is no way to have a real proress bar if you want to upload to another server where the script is on other server.
yegorpb
06-06-2005, 03:46 PM
Thats what I was thinking.
Koobi
06-07-2005, 07:08 AM
Once again, won't the XMLHTTP Request Object, more or less, sort this problem out for you?
yegorpb
06-07-2005, 09:08 AM
I don't believe im familiar with that...
Carl V
06-08-2005, 02:31 PM
Originally posted by yegorpb
I don't believe im familiar with that...
I would post some links to some excellent tutorials for AJAX, but I cannot (for some really odd reason).
Do a google search for "ajax tutorial xml"
And click on link 2B. (XML.com: Very Dynamic Web Interfaces)
Koobi
06-09-2005, 03:31 PM
A google search would be where I would get my links from but here's a particularly favourite link of mine:
http://www.fiftyfoureleven.com/resources/programming/xmlhttprequest/examples
UberTec
06-10-2005, 07:11 AM
If you want to transfer variables and such to and from Javascript and PHP, you can use Aardvark which is a lightweight Ajax engine for doing exactly that.. http://sourceforge.net/projects/aardvark
Koobi
06-11-2005, 11:50 AM
Originally posted by flush()
If you want to transfer variables and such to and from Javascript and PHP, you can use Aardvark which is a lightweight Ajax engine for doing exactly that.. http://sourceforge.net/projects/aardvark
I've heard JSON is pretty good at that too:
http://www.crockford.com/JSON/index.html