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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OPEN FILE WITHOUT CLICKING ON URL

Status
Not open for further replies.

Rachel80

Programmer
May 25, 2000
63
GB
after uploading a word/excel/ppoint file, the next page should display the uploaded material. but there's no <a href> link to open the file! in the database, is the pathname of the file. the next page can only retrieve pathname(data) from the SQL table & display the field value, which is the pathname... so how can i open the documment file, eg. record.xls on the next page without clicking on a link?
 
If you know the pathname, you should be able to convert that into a web address and then either create a link, (or do a &lt;cflocation url=&quot;mysite.com/files/mydoc.doc&quot;&gt; to open without clicking)...<br><br>If your site is <A HREF=" TARGET="_new"> and is located on the server at C:\websites\mysite and you put the file in c:\websites\mysite\files, you can translate that as <A HREF=" TARGET="_new"> you're putting all your uploaded files into the same directory, that's easier.&nbsp;&nbsp;Just figure out the url to the path one time then point your link to <A HREF=" TARGET="_new"> me know if this helps...<br><br>DM
 
Thanks for your immediate response :)<br>sorry that i missed out this part in my question:<br>what if i want to open the uploaded file on a html file?<br>meaning that the next page is a html file, displaying the uploaded file(maybe in image format or ???). Below the file I have 'submit' buttons to confirm if I want the uploaded file... The objective is to view the uploaded file so as to decided on using it. Clicking &quot;Cancel&quot; button would delete the file while &quot;OK or Continue&quot; button would confirm the upload.
 
Well....<br><br>This is a bit out of my territory, as I've never tried embedding a word, excel, or powerpoint document <b><i>inside</i></b> an html page, but I would imagine that either using the &lt;embed&gt; tag, maybe, or using frames, with one frame containing the document and the other, the confimation form should work....???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top