Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submit and Download file

Status
Not open for further replies.

MadBnz

Technical User
Jan 30, 2002
18
NZ
Hello, I want to be able to have the user click on a Submit button and download a file with one click. The form contains the Current Time and UserID and the file is based upon a passed variable AN. There are 2 buttons basically an Accept

<input type=&quot;submit&quot; value=&quot;Accept&quot; name=&quot;submit&quot; onClick=&quot;file://E:/ads/<%= Request(&quot;AN&quot;) %>&quot;>


and Decline

<input type=&quot;button&quot; value=&quot;Decline&quot; name=&quot;Back&quot; onClick=&quot;history.go(-1)&quot;>


The Decline works, but the acecept will not... Any Ideas?
 
because when u give paths within javascript coding it takes the client system path and not PATH OF THE SERVER. therefore it will search if the file exists in the clients &quot;E:\.....&quot;.

therefore it wont work. on the submit button submit it to a page where a forced download can be given...

Known is handfull, Unknown is worldfull
 
The Files do exist on the clients E:\ which is a networked drive on another server. - the problem is that the submit does not open the file on the client end.
 
well i havent finished yet. if it doesnt open atleast an error dign will apper(near the Done in the status bar). it might say &quot;access denied&quot; error. this is a security issue. IE does not allow javascript that can open files in the client end...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top