sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    WebDialog - how to make tabs?

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 5 Posters 907 Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      NewOne
      last edited by

      Hy, I'm trying to add tabs in a webdialog and in each tab I want different content, but I'm not sure yet that different content will be a different file, or same file, but different div.
      I managed to make some tabs in css, but I have no idea how to implement this in webdialog because wd are a little more trickier than ordinary html pages.
      If JS is a better choice to make tabs, I'll stick on that, if you guys will teach me how to do it.

      I've attached here the files...


      Tabs.zip

      1 Reply Last reply Reply Quote 0
      • tbdT Offline
        tbd
        last edited by

        did you tried http://www.barelyfitz.com/projects/tabber/ ? from description looks easy to setup - didn't try it yet.

        SketchUp Ruby Consultant | Podium 1.x developer
        http://plugins.ro

        1 Reply Last reply Reply Quote 0
        • chrisglasierC Offline
          chrisglasier
          last edited by

          @dialog.set_file("D:/Tabs/tabs.html")

          Most plugin people keep the supporting folder (Tabs in this case) as a ../Plugins subdirectory. This means the zip can be extracted in one go.

          Also, as its best to keep the same file names, different versions or backups can be kept as uniquely named zip files and can be extracted to overwrite the current set (which of course should be zipped before being overwritten).

          With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jim
            last edited by

            I'm not sure you can do it without using javascript. But, it's really not difficult to do.

            For a single page design, you could have a div for each tab. Then use javascript to switch the css class of the divs on click. You might have a css "visible" class and a "hidden" class.

            document.getElementById("divId").className = "hidden";
            

            Hi

            1 Reply Last reply Reply Quote 0
            • N Offline
              NewOne
              last edited by

              @jim said:

              I'm not sure you can do it without using javascript. But, it's really not difficult to do.

              For a single page design, you could have a div for each tab. Then use javascript to switch the css class of the divs on click. You might have a css "visible" class and a "hidden" class.

              document.getElementById("divId").className = "hidden";
              

              And for a multipage design, could this be implemented?

              1 Reply Last reply Reply Quote 0
              • J Offline
                Jim
                last edited by

                This example page shows everything on a single page, and is better written than I could do for a quick demo. View the source.

                http://toshine.net/tabs/index.html

                Save the source and try it - it is a drop-in replacement for your tabs.html file.

                Hi

                1 Reply Last reply Reply Quote 0
                • D Offline
                  DIEGO-RODRIGUEZ
                  last edited by

                  I found a page. That has some very interesting things in html.
                  http://www.dhtmlgoodies.com/index.html?page=dhtml-suite
                  greetings

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement