Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Javascript / Client Side Development

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

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc