Connecting Tech Pros Worldwide Help | Site Map

Uploading File Facility

 
LinkBack Thread Tools Search this Thread
  #1  
Old May 16th, 2007, 12:25 PM
Akash
Guest
 
Posts: n/a
Default Uploading File Facility

Hi,

This is my first post in the firm. I require a help.

If you have seen the same in the Compose section of GMAIL for
attatching files.

There is a link "Attatch A File"

as soon as u click on that link it open the browse window to select
the file. As soon as u select a file and click on open the Path gets
displayed with another link down to it is "Attach another file"

right now what i am using is:

<script language = javascript>

var upload_number = 2;
function addFileInput() {
var d = document.createElement("div");
var file = document.createElement("input");
file.setAttribute("type", "file");
file.setAttribute("name", "attachment"+upload_number);
d.appendChild(file);
document.getElementById("moreUploads").appendChild (d);
upload_number++;
}
</script>
<head>
<title></title>
</head>
<body>
<input type="file" name="attachment" id="attachment"
onchange="document.getElementById('moreUploadsLink ').style.display =
'block';" />
<div id="moreUploads"></div>
<div id="moreUploadsLink" style="display:none;"><a
href="javascript:addFileInput();">Attach another File</a></div>
</body>

I dont want a Browse Button as well as Upload button as It covers a
lot of space.

how to do that.

Awaiting for a positive resolution frm ur side.

Thanks

Akash


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.