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

applying a download link to a table row

Status
Not open for further replies.

FesterSXS

Programmer
Feb 4, 2002
2,196
GB
I have a link that I would like to apply to an entire table row

At the moment I am using this (simplified for this example):

Code:
<A HREF=&quot;images/dwg/boiler.dwg&quot; onClick=&quot;alert('Right-click and select Save Target As... to download this DWG file'); return false;&quot; TITLE=&quot;Right-click and select 'Save Target As...' to download this DWG file&quot;><TR ID=dwg1><TD><IMG SRC=&quot;images/dwgdownload.gif&quot;></TD><TD><P CLASS=option>download dwg</P></TD></TR></A>

Now this is working fine although the right-click will only let me 'Save Target As...' when the right-click is donw over the 'dwgdownload.gif' image, not the rest of the table row.

I would like this right-click option to be available over the entire row. Is there a simple change I need to make or am I going about this the wrong way??

Thanks in advance

Tony
reddot.gif WIDTH=400 HEIGHT=2 VSPACE=3

 
Hi,

I am a little confused here.

I can right click on both parts and then select &quot;save as&quot; so I dont see what you getting at, could you rephrase the question?

Cheers

James
 
what browser are you using?? I am using IE5.01 and it doesnt work on that. I assumed it would be a problem with my code but you are saying that it works on your browser.

If I right-click over the text 'download dwg' then I do not get the 'Save Target As...' option in the contect menu that appears.

:(
Tony
reddot.gif WIDTH=400 HEIGHT=2 VSPACE=3

 
Hi,

I am using IE 5.5 with SP2 installed. However, I get the same problem that you do in Netscape 6.1

I would just leave the title or ALT tag in there because everytime u click, you will get that problem.

Cheers

James
 
Hi,
Or, what you could do is use dhmtl to create a layer which becomes visible with your message when you rollover it.

Cheers

James
 
Hi,

Remove the
Code:
onClick=&quot;alert('Right-click and select Save Target As... to download this DWG file'); return false;&quot;

This then allows me to right click and choose save as in NS 6.1

If you want to apply the entire row to right click, I have never been able to do this as the A HREF element requires another HTML element to be there, and not just the table cell or row itself.

Sorry

James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top