binumathewp
03-14-2007, 12:14 PM
1) Script Title: Tab Content Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
3) Describe problem:
First of all, thanks to DD for the nice scripts. I have implemented the above script and works fine in my page. But I need some additional functionality to that. Let me tell about the page (unfortunately, it is now in the Intranet).
I have an ASP/Oracle based Helpdesk application. There is a page which displays the Frequently asked Questions from the database. Previously, it was showing 1 question at a time and it took too many round trips to the server. So i have implemented the script - it shows 15 questions each in a tab with the question number as the tab title.
Now, when a particular tab is activated, I want to update the database field - number of viewers for that particular question.
i tried to implement it through javascript function which will be called automatically, but doesn't work. I tried to attach the javascript function with the onclick/href attributes of the <A tag. it is not activated.
Any ideas to do this. when i call the function, i have to pass the id of the question to be updated.
thanks in advance
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
3) Describe problem:
First of all, thanks to DD for the nice scripts. I have implemented the above script and works fine in my page. But I need some additional functionality to that. Let me tell about the page (unfortunately, it is now in the Intranet).
I have an ASP/Oracle based Helpdesk application. There is a page which displays the Frequently asked Questions from the database. Previously, it was showing 1 question at a time and it took too many round trips to the server. So i have implemented the script - it shows 15 questions each in a tab with the question number as the tab title.
Now, when a particular tab is activated, I want to update the database field - number of viewers for that particular question.
i tried to implement it through javascript function which will be called automatically, but doesn't work. I tried to attach the javascript function with the onclick/href attributes of the <A tag. it is not activated.
Any ideas to do this. when i call the function, i have to pass the id of the question to be updated.
thanks in advance