Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1463 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

need help to extract a javascript feature from site.

Thread title: need help to extract a javascript feature from site.
Closed Thread    
    Thread tools Search this thread Display Modes  
11-02-2005, 10:00 AM
#1
hmc is offline hmc
Status: I'm new around here
Join date: Nov 2005
Location:
Expertise:
Software:
 
Posts: 7
iTrader: 0 / 0%
 

hmc is on a distinguished road

  Old  need help to extract a javascript feature from site.

There is a site where I`m trying to get it http://www.megaupload.com - just try to upload a simple txt file to see this this "upload process bar".

I`m trying to extract a javascript which showing this "upload process bar" while you upload a file to site/server.But it`s wount to work for me.

There is a another example of similar "upload process bar"
http://jspupload.sourceforge.net
but I dunno how to make it run in my upload form.

form I use:
(its a simple 2 php & html files):

html file(upload.html):

HTML Code:
<FORM METHOD="POST" ENCTYPE="multipart/form-data" action="uploader.php">
<INPUT TYPE="file" NAME="file">
<input type="submit" name="submit" value="upload">
</form>
php file(uploader.php):

PHP Code:
<?php
if($file_name !="")
{
copy ("$file""/html/upload/$file_name")
         or die(
"Could not copy file");
}
else { die(
"No file specified"); }
?>

<html>
<body><h3>File upload succeeded...</h3>
<ul>
<li>Sent: <?php echo "$file_name"?>
<li>Size:  <?php echo "$file_size"?> bytes
<li>Type: <?php echo "$file_type"?>
</ul>
<a href="<?php echo "$file_name?>">
                                        Click here to view file</a>
</body></html>
Guys, please help to insert megaupload based "upload bar" javascript or http://jspupload.sourceforge.net based to my upload page.

11-02-2005, 05:26 PM
#2
<Isurfr> is offline <Isurfr>
Status: Member
Join date: Aug 2005
Location: w3c
Expertise:
Software:
 
Posts: 193
iTrader: 0 / 0%
 

<Isurfr> is on a distinguished road

  Old

Here go a couple of examples on the progress upload bar.
Try looking for scripts at:


There are a number of ways to do this. Look for something
that makes sense for you to understand.


PHP
Javascript
ASP

Pure HTML Progress Bar Upload
http://www.websupergoo.com/helpuploa...ressupload.htm

Creating a Progress Bar for use in ASP ....
http://www.webconcerns.co.uk/javascr...rogressbar.asp

Progress Bar for File Uploads
http://www.lighttpd.net/documentatio...ml#description
_|

12-06-2005, 02:40 AM
#3
echoSwe is offline echoSwe
Status: Member
Join date: Jul 2005
Location:
Expertise:
Software:
 
Posts: 185
iTrader: 0 / 0%
 

echoSwe is on a distinguished road

  Old

You could use AJAX to communicate with the server, and then tell how far the upload is gone.

12-06-2005, 03:05 PM
#4
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

Just a quick pointer to save you wasting your time. PHP does not allow reporting on the progress of uploaded files by default - you'd need to patch it first if your server allows.

12-07-2005, 05:59 AM
#5
echoSwe is offline echoSwe
Status: Member
Join date: Jul 2005
Location:
Expertise:
Software:
 
Posts: 185
iTrader: 0 / 0%
 

echoSwe is on a distinguished road

  Old

12-07-2005, 06:16 PM
#6
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

In the past I've used Mega Upload which at it's core has a very simple perl (CGI) script for the uploading. With that perl script you can use basic PHP to provide fully-functioning upload progress information. I've even tied it in with AJAX (buzzzzzword of the day award!) before and in all honesty for anyone 'into' PHP and JavaScript coding it's a simple job.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed