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

Experimental webdialog prototype

Scheduled Pinned Locked Moved Developers' Forum
9 Posts 3 Posters 1.8k Views 3 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.
  • C Offline
    chrisglasier
    last edited by chrisglasier 10 Oct 2009, 01:06

    Since more people are seeing the wider potential of webdialogs, I offer this set of files to help those just starting.

    Prototype.zip - to be superceded by cheat-sheet

    Modules could be added by others in this thread but that would require some organisation. And first I would like to see if this is found to be useful.

    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
    • D Offline
      DIEGO-RODRIGUEZ
      last edited by 10 Oct 2009, 14:43

      there is any tutorial, how asignar a function of ruby to html?
      As passing a dialog box plugins with Ruby, a dialog box html?

      another question, sketchup supports a dialogue box in flash?

      1 Reply Last reply Reply Quote 0
      • C Offline
        chrisglasier
        last edited by 12 Oct 2009, 00:35

        Please see this post about keeping plugin support folders in the ../plugin folder.

        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
        • C Offline
          chrisglasier
          last edited by 12 Oct 2009, 01:05

          @chrisglasier said:

          Modules could be added by others in this thread ...

          For example:

          Insert at end of Machine.js

          
          
          function holderDown(evt){
          //evt is available if need to find attributes or properties of element
          	txt = "Changed by mousedown event"
          	document.getElementById ("Holder").innerHTML = txt 
          	}
          

          Note: the module description is individual post caption.

          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
          • C Offline
            chrisglasier
            last edited by 12 Oct 2009, 01:30

            @unknownuser said:

            there is any tutorial, how asignar a function of ruby to html?
            As passing a dialog box plugins with Ruby, a dialog box html?

            Have a look at Sharing data between Sketchup Ruby and HTML. I think you will find the answer there and if so, either ask a more specific question or try out possible solutions in the prototype and offer a successful one as an example as in the post above. The caption might be "@dlg.execute_script"?

            @unknownuser said:

            another question, sketchup supports a dialogue box in flash?

            What I understand is you can embed flash in an html file and such a file can be in a webdialog.

            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
            • C Offline
              chrisglasier
              last edited by 19 Oct 2009, 04:33

              This idea will now be incorporated into the API machine/ruby web console combo being developed by Jim and I from Alex's Cheat sheet topic. Thanks to Alex for supplying the list. Any comments and suggestions will be welcomed there.

              Thanks

              Chris

              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
              • T Offline
                tomasz
                last edited by 30 Oct 2009, 10:50

                Chris,
                I receive an error when clicking the text.

                I guess that "holderDown(event)" is simply missing in JS.

                Could you add a method to Ruby to alter the text on the click?
                def change_text
                @dlg.set_value("Holder","Altered text: #{1 + rand(6)}"
                end

                Thanks

                Tomasz


                wd_error.jpg

                Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

                1 Reply Last reply Reply Quote 0
                • C Offline
                  chrisglasier
                  last edited by 30 Oct 2009, 11:03

                  @unknownuser said:

                  Chris,
                  I receive an error when clicking the text.

                  Tomasz

                  I see you are now based in Poland. I hope all goes well for you there.

                  As I said that idea really got overtaken by the cheat-sheet biz, for which we have infinitely better code checking! We hope to have a device to insert snippets to help build web dialogs and test them in Jim's WebConsole plugin (adapted). I just thought you might be interested in something similar for html and javascript.

                  So if you don't mind I'll delete the files in this topic to save face!

                  Best regards

                  Chris

                  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
                  • T Offline
                    tomasz
                    last edited by 30 Oct 2009, 11:12

                    @chrisglasier said:

                    So if you don't mind I'll delete the files in this topic to save face!

                    I don't mind 😄 and I am looking forward to the new device.

                    Author of [Thea Render for SketchUp](http://www.thearender.com/sketchup)

                    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