Onclick malfunction with a variable hyperlink?

M

Micromanaged

I have files that are created with a dynamic name that I want to have
hyperlinks created. Things work when I have a static name, but give me
the 404 when I throw in the dynamic stuff.

Here's the Onclick code:

<a name="dnbreports"></a>
<p align="center" class="text1">
<a href="#dnbreports" onclick="openWin_onClick1()">Submitted Transaction
Details </a>
</p>
<p align="center" class="text1">
<a href="#dnbreports" onclick="openWin_onClick2()">D and B Report </a>
</p>
<p align="center" class="text1">
<a href="#dnbreports" onclick="openWin_onClick3()">Experian Report 1</a>
</p>
<p align="center" class="text1">
<a href="#dnbreports" onclick="openWin_onClick4()">Experian Report 2</a>
</p>

The onclick calls the functions:


function openWin_onClick1()
open "ReportFiles/" & filename & "tranxn_report.rtf", "tranxn",
"width=660,height=550, menubar, scrollbars=yes, resizable,"
end function

function openWin_onClick2()
open "ReportFiles/" & filename & "dnb_report.rtf", "dnb",
"width=660,height=550, menubar, scrollbars=yes, resizable,"
end function

function openWin_onClick3()
open "ReportFiles/" & filename & "xpn_report1.rtf", "xpn", "width=670,
height=550, menubar, scrollbars=yes, resizable,"
end function

function openWin_onClick4()
open "ReportFiles/xpn_report2.rtf", "xpn2", "width=670, height=550,
menubar, scrollbars=yes, resizable,"
end function


What in the world am I missing or messed up on?
 
B

Bob Lehmann

What in the world am I missing or messed up on?
This is an ASP group, not client-side programming group. Try one of the
client-side scripting groups.

PS - Change this (& filename &) to this (<%=filename%>).

Bob Lehmann
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top