Skip to Content
author's profile photo Former Member
Former Member

HTMLB <TabStrip> reload


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.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.