comunication browser-server server-browser "inlive"

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

comunication browser-server server-browser "inlive"

Post by visonardo »

i has been see the classic "preloading bar". I want to know if i can do some thus with php and javascript only. understand? for example when an user upload something to the server the classic preloading bar that is made with javascript and cgi generally but i would like with php. can I (and how) do it?
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

PHP doesn't get enough information from the post request to be able to calculate it. Anyway, I used Google.com, an up and coming data mining service, and found this little hack. Uses Ajax to call a PHP script that reports the size of the file being uploaded in the temp directory.
User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

Post by visonardo »

Thank aaronhall :)
Post Reply