passing variables into functions

J

Jay - Z

I am stuck with the onMouseOver method.

Dim desc
desc = rs.Fields.Item("PDescription")
Response.Write("<td align='center' cellpadding=5><a
href='taketraining.asp pid=" & rs.Fields.Item("PID") & "'
onMouseOver=activateE1(desc)>" & rs.Fields.Item("PName") & "</td>")

(rs - RecordSet)

Your help is appreciated...
 
I

Ivo

I am stuck with the onMouseOver method.

Dim desc
desc = rs.Fields.Item("PDescription")
Response.Write("<td align='center' cellpadding=5><a
href='taketraining.asp pid=" & rs.Fields.Item("PID") & "'
onMouseOver=activateE1(desc)>" & rs.Fields.Item("PName") & "</td>")

(rs - RecordSet)

Your help is appreciated...

This is not javascript. It looks however like you are writing the string
"desc" instead of the value of the value of the variable desc. Try

.... & " onmouseover='activateE1( \' " & desc & " \' )'>" & ...

Note the double, single and escaped single quotes.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top