Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Reset problem with File Upload


Reset problem with File Upload

Reply
  #1 (permalink)  
Old 06-09-04, 11:22 AM
mashah mashah is offline
New Member
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Reset problem with File Upload

Hi
I am trying to use file upload in HTMl.
<input type="file" name="uploadedFile" value="" >

And i have a reset button
<a href="javascript:clear(this.document.FileUpload.up loadedFile)"><img src="/pics/reset.jpg" border="0"></a><br>

I wanna clear the file upload field with reset button.
I used foll js
function clear(field)
{
alert('here');
field.value = "";
document.FileUpload.uploadedFile.outerHTML = '<input type="file" name="uploadedFile" value="" >' ;
}

It works fine with IE but not with Netscape.
Any clues.

Thanks
Maulik
Reply With Quote
Reply

Bookmarks


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

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel document containing records, need to save as a text file to upload to mysql bearslife PHP 1 06-05-04 03:24 AM
Image Upload, File Type Check, File Size Check CarBoffin PHP 3 04-13-04 02:26 PM
Upload Script Problem!!! seanknighton Perl 0 03-21-04 09:54 PM
New Web Host, New Problem! justchat PHP 2 09-29-03 02:39 PM
Upload file type and size limiter! Arctic ASP 1 08-02-03 07:06 PM


All times are GMT -5. The time now is 09:26 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.