Onclick malfunction with a variable hyperlink?

Discussion in 'ASP General' started by Micromanaged, Feb 3, 2005.

  1. Micromanaged

    Micromanaged Guest

    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!
     
    Micromanaged, Feb 3, 2005
    #1
    1. Advertising

  2. Micromanaged

    Bob Lehmann Guest

    > 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" <> wrote in message
    news:...
    >
    >
    > 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!
     
    Bob Lehmann, Feb 4, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt MC
    Replies:
    6
    Views:
    575
    Adrienne
    Apr 3, 2005
  2. Replies:
    9
    Views:
    568
    Andreas Leitgeb
    Feb 9, 2007
  3. pek
    Replies:
    13
    Views:
    535
  4. Al Jones

    session variable - malfunction??

    Al Jones, Sep 7, 2004, in forum: ASP General
    Replies:
    7
    Views:
    187
    Patrice
    Sep 8, 2004
  5. superN00b

    RubyGems Malfunction

    superN00b, Mar 6, 2006, in forum: Ruby
    Replies:
    2
    Views:
    95
    superN00b
    Mar 6, 2006
Loading...

Share This Page