passing variables into functions

Discussion in 'Javascript' started by Jay - Z, Sep 29, 2004.

  1. Jay - Z

    Jay - Z Guest

    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...
     
    Jay - Z, Sep 29, 2004
    #1
    1. Advertising

  2. Jay - Z

    Ivo Guest

    "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
     
    Ivo, Sep 29, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ILLOGIC
    Replies:
    1
    Views:
    379
    Rob Williscroft
    Jun 1, 2004
  2. Xiangliang Meng
    Replies:
    1
    Views:
    1,652
    Victor Bazarov
    Jun 21, 2004
  3. Steven T. Hatton

    Passing member functions to C functions?

    Steven T. Hatton, Oct 4, 2004, in forum: C++
    Replies:
    7
    Views:
    1,329
    David Hilsee
    Oct 7, 2004
  4. Yodai

    passing variables through functions...

    Yodai, Jan 15, 2004, in forum: C Programming
    Replies:
    13
    Views:
    600
  5. Replies:
    9
    Views:
    997
Loading...

Share This Page