On-click - pass-in variable is extracted from the database

Posted on 2005-04-12
Last Modified: 2006-11-18
I used to use the following way to invoke the open the htm document. (ReviewNotes.htm)

<img src="Image/view_image.gif" onClick="OpenDialogue('ReviewNotes.htm')">

But now the file name, ReviewNotes.htm, is extracted from the database and I tried the following, but it does not work. Please advise

<img src="Image/view_image.gif" onClick="OpenDialogue('<%=((QuestionsReq("new_heading_flag"))%>')">

Question by:LeanMoreTryMore
    LVL 13

    Expert Comment

    Try this:

    <img src="Image/view_image.gif" onClick="OpenDialogue('<%=(QuestionsReq("new_heading_flag") %>')">
    LVL 13

    Expert Comment

    Oops, typo...try this...

    <img src="Image/view_image.gif" onClick="OpenDialogue('<%= QuestionsReq("new_heading_flag") %>')">
    LVL 48

    Expert Comment

    by:Ryan Chong
    if you want to have a mouse pointer, try:

    <a hre="#" onclick="OpenDialogue('<%=QuestionsReq("new_heading_flag")%>'); return false"><img src="Image/view_image.gif"></a>
    LVL 2

    Accepted Solution


    u forgot the "f" in the <a href ....

    should have been

    <a href="#" onclick="OpenDialogue('<%=QuestionsReq("new_heading_flag")%>'); return false"><img src="Image/view_image.gif"></a>

    LVL 48

    Expert Comment

    by:Ryan Chong
    oops, just typo ;-)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now