Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > passing variables into functions

Reply
Thread Tools

passing variables into functions

 
 
Jay - Z
Guest
Posts: n/a
 
      09-29-2004
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...
 
Reply With Quote
 
 
 
 
Ivo
Guest
Posts: n/a
 
      09-29-2004
"Jay - Z" wrote
> 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.
--
Ivo


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Put variables into member variables or function variables? tjumail@gmail.com C++ 9 03-23-2008 04:03 PM
Using explicitly sized variables in functions as auto variables or parameters Adel C Programming 3 03-17-2005 04:36 AM
Passing member functions to C functions? Steven T. Hatton C++ 7 10-07-2004 02:12 AM
please help me in distinguish redefining functions, overloading functions and overriding functions. Xiangliang Meng C++ 1 06-21-2004 03:11 AM
Help! Passing Templates functions to template functions ILLOGIC C++ 1 06-01-2004 10:51 PM



Advertisments