Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Onclick malfunction with a variable hyperlink?

Reply
Thread Tools

Onclick malfunction with a variable hyperlink?

 
 
Micromanaged
Guest
Posts: n/a
 
      02-03-2005


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?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Bob Lehmann
Guest
Posts: n/a
 
      02-04-2005
> 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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
>
> 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?
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Overriding an onclick with another onclick tomlong@gmail.com Javascript 4 01-26-2006 09:26 PM
What Is Your Major Malfunction!!!! NYC XYZ Firefox 13 11-01-2005 09:28 PM
button.onclick = new Function("func2()") + button.onclick foldface@yahoo.co.uk Javascript 2 09-26-2005 08:13 AM
session variable - malfunction?? Al Jones ASP General 7 09-08-2004 01:47 PM
document.onclick=doIt() same as document.onclick=doIt ? bob Javascript 3 08-21-2003 12:14 PM



Advertisments