I have a bit of code on one page to make an entire table cell a
clickable area to open a PDF in a new window. It works perfectly,
unless you click the actual physical link. If someone clicks the link,
it opens the link twice in two new windows. Inside the usual document
ready, I have:

$('#factsheets td').click(function() {
        $(this).find('a').each(function(){
                window.open(this.href);
                return false;
        });
});

And a snippet of code from the document:

<table id="factsheets">
<tr>
        <td rowspan="3" id="factsheetpreview"><img src="/includes/images/
placeholder_preview.gif" width="306" height="396" /></td>
        <td class="listcell"><a href="/index.cfm/event/getFactSheet/
whichfactsheet/41/" rel="/dropinn/thumbnails/factsheet_41.jpg">SRAC
0230<br />Alligator Production: An Introduction</a></td>
</tr>
</table>

How can I fix it so that clicking on the link is considered just a
single click instead of two, so that only one window opens?

~~ Summer

Reply via email to