sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Showing a web site in a Web Dialog

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 345 Views 2 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.
    • fredo6F Offline
      fredo6
      last edited by

      I am curious to know if anyone has already set an external URL in a Web dialog.
      When I try the following code, I get an HTML error page:

      
      w = UI;;WebDialog.new
      w.set_url "http://www.google.com"
      w.show
      
      

      The doc mentions a method allow_actions_from_host (hostname) to manage secure sites, but it does not work either, if I use it in the code:

      
      w = UI;;WebDialog.new
      w.allow_actions_from_host "google.com"
      w.set_url "http://www.google.com"
      w.show
      
      

      Thanks in advance

      Fredo

      1 Reply Last reply Reply Quote 0
      • M Offline
        morisdov
        last edited by

        w = UI;;WebDialog.new
        w.set_url "http://www.google.com"
        w.show
        

        Works just fine on Windows XP+IE6 - both from Ruby script file and ruby console.
        Verify you dont have another issue.


        new.rb

        1 Reply Last reply Reply Quote 0
        • fredo6F Offline
          fredo6
          last edited by

          Morisdov,

          You are right. I tried from another computer and it works fine.
          Must be the firewall I have on my laptop.

          Thanks

          Fredo

          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