By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,144 Members | 880 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,144 IT Pros & Developers. It's quick & easy.

dojo: make a table row into a link

100+
P: 129
Hai friends,
If anyone knows dojo please suggest me, that is there any widget or shortcut to make a table row as a link ,
I used <tr onclick="alert('clicked')"> it is working but the cursor will appearing as text cursor not as link cursor(hand symbol), if i want to do so i have to use anchor tag in html but it is not works for a row.
So, give me a suggestion that technique will be successful in dojo with an example if possible.
Jan 19 '08 #1
Share this Question
Share on Google+
4 Replies


100+
P: 129
Hai friends,
How to make a table row as a link.
I used <tr onclick="alert('clicked')"> it is working but the cursor will appearing as text cursor not as link cursor(hand symbol), if i want to do so i have to use anchor tag in html but it is not works for a row.
So, give me a suggestion that technique will be successful with an example if possible.
Jan 19 '08 #2

drhowarddrfine
Expert 5K+
P: 7,435
This is not possible. <a> is an inline element and cannot be applied to a block level one. Besides, it's a 'sub-element' of <table>.
Jan 19 '08 #3

gits
Expert Mod 5K+
P: 5,333
try to set a style for your row:

[HTML]<tr style="cursor: pointer;">[/HTML]
kind regards
Jan 19 '08 #4

gits
Expert Mod 5K+
P: 5,333
hi ...

may be the following could be a workaround:

[HTML]<tr onclick="alert('clicked');" style="cursor: pointer;">[/HTML]
kind regards
Jan 20 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.