Link to home
Start Free TrialLog in
Avatar of LeanMoreTryMore
LeanMoreTryMore

asked on

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

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"))%>')">

Avatar of jrram
jrram
Flag of United States of America image

Try this:

<img src="Image/view_image.gif" onClick="OpenDialogue('<%=(QuestionsReq("new_heading_flag") %>')">
Oops, typo...try this...

<img src="Image/view_image.gif" onClick="OpenDialogue('<%= QuestionsReq("new_heading_flag") %>')">
Avatar of 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>
ASKER CERTIFIED SOLUTION
Avatar of axrial
axrial
Flag of Maldives image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
oops, just typo ;-)