Re: Onclick malfunction with a variable hyperlink?

From: Bob Lehmann (nospam_at_dontbotherme.zzz)
Date: 02/04/05


Date: Thu, 3 Feb 2005 18:01:48 -0700


> 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

"Micromanaged" <Micromanaged@helpmeplease.net> wrote in message
news:O1cPbskCFHA.208@TK2MSFTNGP12.phx.gbl...
>
>
> 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">
> D and B Report
> </p>
> <p align="center" class="text1">
> Experian Report 1
> </p>
> <p align="center" class="text1">
> Experian Report 2
> </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?
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!