on 09-11-2007 7:16 AM
Hi Experts,
I have a tableview with some editable fields. On selecting a row, by default the focus should be set to the third cell.
I have tried out many javscript codes like
document.getElementById."tv_"row"_3".focus();. but this is not working. Its throwing a javascript error saying "document.get.ElementById."tv_"row"_3" is null or not an object".
I have even tried with document.form."tv_"row"_3".focus(); but this is also throwing the same error.
The same code is working in a different context but here its throwing error. Can you please suggest?
Thanks and Regards,
Sneha.
Hi Sneha,
There were two blogs by Raja T. on using Auto-tabs....This uses the focus method of javaScript....
Maybe you'll be able to draw a few ideas out of this.....
1) <a href="/people/raja.thangamani/blog/2007/02/07/accomplishment-of-tab-and-auto-tab-in-bsp-part-i of Tab and Auto-Tab in BSP: Part-I</a>
2) <a href="/people/raja.thangamani/blog/2007/02/08/accomplishment-of-tab-and-auto-tab-in-bsp-part-ii of Tab and Auto-Tab in BSP: Part-II</a>
Hope this helps.
<b><i>Do reward each useful answer..!</i></b>
Thanks,
Tatvagna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
document.getElementById."tv_"row"_3".focus();. is wrong
document.getElementById('tv_1_3').focus(); is the correct js syntax
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.