Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

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

0
LeanMoreTryMore
Asked:
LeanMoreTryMore
  • 2
  • 2
1 Solution
 
jrramCommented:
Try this:

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

<img src="Image/view_image.gif" onClick="OpenDialogue('<%= QuestionsReq("new_heading_flag") %>')">
0
 
Ryan ChongCommented:
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>
0
 
axrialCommented:
ryancys,

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>


axrial
0
 
Ryan ChongCommented:
oops, just typo ;-)
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now