• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Showing a web site in a Web Dialog

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 2 Posters 328 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.
  • F Offline
    fredo6
    last edited by 25 Jul 2008, 15:19

    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 25 Jul 2008, 16:44

      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
      • F Offline
        fredo6
        last edited by 25 Jul 2008, 17:57

        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
        1 / 1
        • First post
          3/3
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement