• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

hyperlink to table row

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Eric,

I did look at your web log and found a facinating script, you wrote



I have one question on that. Your help is greatly appreciated

Now if i want to open the link in another frame say 'frm1'
how do i change

rows[i].onklick = new Function("document.location.href='" + link[0].href + "'"); ??

Thanks

PS: changed to onklick,onnouseover etc because javaranch doesn't let me post
if they are in their correct spelling
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
rows[i].onclick = new Function("parent.frm1.location.href='" + link[0].href + "'");

Eric

(Note: replace the o with o and it will look right.)
[ February 15, 2006: Message edited by: Eric Pascarello ]
 
Antonio Giovanni
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a bunch
 
Antonio Giovanni
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Eric,

One more question,.. in your ConvertRowsToLinksfunction,
how to check if a row is clicked or not ?? because in another JSP i have a hyperlink where upon click i change the back-ground color to yellow by executing a script... (my last post did not have onclick event..)






The above onclick event is not running, i guess because ConvertRowsToLinks
has another onclick event, which is done on page loading

How do i combine this logic in your ConvertRowsToLinksfunction ??
I guess for this to be done, in your code i should know a way to check if the row is clicked or not. How do i do this??

Thanks a lot for your help Appreciate..

PS: Also what are some good java-script/CSS books in your opinion..
I am not that good with javascript, i just know java
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic