Skip to Content
author's profile photo
Former Member

HTMLB <TabStrip> reload

Hello,

I am using the HTMLB tabstrip tag in a jsp file. I would like to implement a functionality whereby when a user clicks on a tab, it doesnt reload the contents in the tab. Right now, when i put the onselect code in the tabstrip, it surely reloads the page again. And if i dont put the onselect code then i cant switch to another tab. Catch 22.

Is there a way to avoid this reload but instead just display the clicked tab contents as it was before the user switched over.

Thanks,

Sunil

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Mar 09, 2004 at 02:42 PM

    There doesn't seem to be a javascript event handler on it so I don't think it is possible in any easy way.

    A possible (and horribly complex) is to

    1. find the id of the element

    2. in a javascript method that runs after the page is loaded travers the DOM tree and set a onClick event on the element which you found the id for in 1. This onClick event calls a js method which returns false (which I think cancels out any HTML "events" on the same click( such as reloading))

    Otherwise you need to write a new tabstrib element.

    Add comment
    10|10000 characters needed characters exceeded