Javascript Onclick function won't work

Discussion in 'Javascript' started by jdub, Nov 5, 2004.

  1. jdub

    jdub Guest

    I bringing up a list of movies in a separate window where each one has an
    "onclick" function which is suppose to call a procedure and pass in the
    variables and display the details of the selected record. When I click on a
    record nothing happens.

    Any help would be greatly appreciated.

    Here is the particular line of code.

    htp.tablerowopen(cattributes=>'onMouseover="this.style.cursor=''hand'';this.
    style.backgroundColor=''lightgrey''";
    onMouseout="this.style.backgroundColor=''white''";onClick="location.replace(
    ''jw.mymovies.detail_view?p_movie_id='||i.movie_id||'&p_movie_title='||i.mov
    ie_title||'&p_movie_stars1='||i.movie_stars1||'&p_movie_type='||i.movie_type
    ||'&p_media_type='||i.media_type||'");');
    jdub, Nov 5, 2004
    #1
    1. Advertising

  2. jdub

    Evertjan. Guest

    jdub wrote on 05 nov 2004 in comp.lang.javascript:

    > I bringing up a list of movies in a separate window where each one has
    > an "onclick" function which is suppose to call a procedure and pass in
    > the variables and display the details of the selected record. When I
    > click on a record nothing happens.
    >
    > Any help would be greatly appreciated.
    >
    > Here is the particular line of code.
    >
    > htp.tablerowopen(cattributes=>'onMouseover="this.style.cursor=''hand'';
    > this. style.backgroundColor=''lightgrey''";
    > onMouseout="this.style.backgroundColor=''white''";onClick="location.rep
    > lace(
    > ''jw.mymovies.detail_view?p_movie_id='||i.movie_id||'&p_movie_title='||
    > i.mov
    > ie_title||'&p_movie_stars1='||i.movie_stars1||'&p_movie_type='||i.movie
    > _type
    >||'&p_media_type='||i.media_type||'");');


    "htp.tablerowopen(cattributes=>"

    what language is that?
    Surely not javascript!


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
    Evertjan., Nov 5, 2004
    #2
    1. Advertising

  3. jdub

    kaeli Guest

    In article <hZCid.18$C%4.0@lakeread04>, enlightened
    us with...
    >
    > htp.tablerowopen(cattributes=>'onMouseover="this.style.cursor=''hand'';this.
    > style.backgroundColor=''lightgrey''";
    > onMouseout="this.style.backgroundColor=''white''";onClick="location.replace(
    > ''jw.mymovies.detail_view?p_movie_id='||i.movie_id||'&p_movie_title='||i.mov
    > ie_title||'&p_movie_stars1='||i.movie_stars1||'&p_movie_type='||i.movie_type
    > ||'&p_media_type='||i.media_type||'");');
    >


    How about posting the code the browser actually sees instead of the perl
    source? ;)

    Do a view->source in the browser and copy/paste the actual javascript that
    was written to the client. My guess is that your nested quotes are off and it
    isn't writing what you think it is.

    --
    --
    ~kaeli~
    Synonym: the word you use in place of a word you can't
    spell.
    http://www.ipwebdesign.net/wildAtHeart
    http://www.ipwebdesign.net/kaelisSpace
    kaeli, Nov 5, 2004
    #3
    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. Chad
    Replies:
    4
    Views:
    8,312
  2. bob
    Replies:
    3
    Views:
    179
  3. Replies:
    2
    Views:
    242
  4. Replies:
    4
    Views:
    168
  5. Bob
    Replies:
    5
    Views:
    253
Loading...

Share This Page