sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Malformed webdialogs passed to Ruby

    scheduled pinned locked moved SketchUp Bug Reporting
    sketchup
    2 Posts 2 Posters 554 Views 2 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • M Offline
      MartinRinehart
      last edited by

      If you call Ruby from the <head> of your webdialog HTML (or a .js file loaded in the <head>), the webdialog object object passed from JS to Ruby is incapable of execute_script(). No error is triggered. The execute_script() method just doesn't run.

      Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

      one-reply-to-this-post last-reply-time reply quote 0
      • thomthomT Offline
        thomthom
        last edited by

        Is the callback attached to any events?
        If not - it might be because the full HTML document isn't loaded...

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        one-reply-to-this-post last-reply-time 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