Results 1 to 2 of 2

Thread: Tabbed notebook style in webpage

  1. #1
    Barbarossa's Avatar mostly harmless
    Join Date
    Jun 2002
    Location
    Over here!
    Posts
    15,180
    Has anyone got any tips for how to do this?

    I think I can do it with iframes, but my requirement is complicated because the tabs contain form elements that I need to reference from the parent, and I think that could get kind of messy because i'd have to define separate forms in each iframe page, etc. groam.

    I think there's a way to use CSS styles so that I can hide/display different parts of the page, controlled by javascript, but I need to dynamically set the classes of things, and I don't really know how to do that either.

    Any suggestions?

  2. Internet, Programming and Graphics   -   #2
    Barbarossa's Avatar mostly harmless
    Join Date
    Jun 2002
    Location
    Over here!
    Posts
    15,180
    Did it the second way. Took longer than I thought, but it works a treat. The trick is to loop through the elements setting the classnames dynamically, based on the currently active tab.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •