JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 2nd, 2005, 03:10 AM
hmc hmc is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 2 hmc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m
Reputation Power: 0
need help to extract javascript from site.

There is a site where I`m trying to get it URL - 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"
URL
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]<FORM METHOD="POST" ENCTYPE="multipart/form-data" action="uploader.php">
<INPUT TYPE="file" NAME="file">
<input type="submit" name="submit" value="upload">
</form>[/html]

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 URL based to my upload page.

Reply With Quote
  #2  
Old November 2nd, 2005, 06:31 AM
MichaelSoft MichaelSoft is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Location: The Netherlands
Posts: 121 MichaelSoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 20 sec
Reputation Power: 4
Hi HMC, welcome to the forum.

You cannot show a page while uploading form-data, because the moment the user presses the 'submit' button the browser starts uploading the data.
However, you could add a little JavaScript and fix this.

Make two DIVs:
1. containing the form with all fields, display normally
2. containing the progressbar, display as hidden (none).

Then in the <form tag, add a JS function like
<form onsubmit='ShowBar(); return true;'>

The function should hide the form DIV (first), and show the progressbar DIV.

It is easilly developed by keeping the second DIV visible: you can check the progressbar without uploading a file...

Reply With Quote
  #3  
Old November 5th, 2005, 07:00 AM
hmc hmc is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 2 hmc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m
Reputation Power: 0
MichaelSoft, I will pay to if you can insert it to my current form.
please contact me by email.

Reply With Quote
  #4  
Old November 7th, 2005, 09:08 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
Michaelsoft just explained the answer to you...
You'd be wasting your money to not do it yourself.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > need help to extract javascript from site.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT