Javascript Onclick function won't work

J

jdub

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||'");');
 
E

Evertjan.

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!
 
K

kaeli

[email protected] enlightened said:
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
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top