• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Browser called from SU and html code

Scheduled Pinned Locked Moved Developers' Forum
11 Posts 5 Posters 465 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.
  • P Offline
    ppoublan
    last edited by 1 Jun 2013, 14:36

    Dear all,
    I'm trying to build new User Input module for a pluggin. Exchange of datas between Sektchup and the webdialog are ok. But When I try to add some HTML 5 code to create better input, I'm surprised to see that the code is not displayed the same way if called from SU or just opening the HTML file with a browser.
    Here is an example (at left from a browser), at right from SU where the slider disapear:
    capture01.JPG
    I initialy thought it was due to obsolete versions, so I tried from Windows 8 Pro and Sketchup 2013. Same problem.
    What is the browser and version called by SU when WebDialog is created ? Can it be changed ? What version of HTML is supported ?
    Yours
    Pascal

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 1 Jun 2013, 19:08

      SketchUp webdialogs uses the HTML engine of the host OS. Under Windows this is Explorer, under OSX this is WebKit. What they support depend on what version you have installed.

      Note that IE inside an embedded control such as a WebDialog is much more conservative in it's pick of render mode. In order to trigger the latest you need to insert a META tag. See the Lost Manual for more info: https://github.com/thomthom/sketchup-webdialogs-the-lost-manual/wiki/Doctype---Quirks-vs-Standard-vs-Superstandard

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

      1 Reply Last reply Reply Quote 0
      • R Offline
        renderiza
        last edited by 1 Jun 2013, 19:52

        Hi,

        If I remember correctly HTML 5 is not compatible yet with SketchUP web-dialog...I wish it was though. 😒

        Cheers!

        [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

        1 Reply Last reply Reply Quote 0
        • P Offline
          ppoublan
          last edited by 1 Jun 2013, 19:57

          Thanks a lot Thom, the meta http-equiv at least corrected the thing on my PC.
          Do not know if it will work on all configurations but with this line :
          <meta http-equiv="X-UA-Compatible" content="IE=10">
          I'm able to use input of type range.
          Pascal

          1 Reply Last reply Reply Quote 0
          • T Offline
            thomthom
            last edited by 1 Jun 2013, 20:09

            @renderiza said:

            If I remember correctly HTML 5 is not compatible yet with SketchUP web-dialog...I wish it was though.

            It is if you have an IE version installed that support HTML5 - meaning IE10. Works great then!

            @ppoublan said:

            <meta http-equiv="X-UA-Compatible" content="IE=10">

            That would be a safe one if you test on IE10 and want to ensure it's always using IE10.

            If you want it to behave like in the web browser where it always uses the latest engine available:
            <meta http-equiv="X-UA-Compatible" content="IE=edge">

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

            1 Reply Last reply Reply Quote 0
            • T Offline
              thomthom
              last edited by 1 Jun 2013, 20:10

              @ppoublan said:

              Do not know if it will work on all configurations but with this line :
              <meta http-equiv="X-UA-Compatible" content="IE=10">

              It will work on all systems that have IE10 or newer installed.

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

              1 Reply Last reply Reply Quote 0
              • D Offline
                Dan Rathbun
                last edited by 1 Jun 2013, 20:42

                ... but not on XP that cannot have IE10 installed ?

                I'm not here much anymore.

                1 Reply Last reply Reply Quote 0
                • R Offline
                  renderiza
                  last edited by 1 Jun 2013, 21:38

                  I am really confused here! πŸŽ‰

                  I have internet explorer 10 to navigate the internet but when I use an html 5 tag on my web-dialog for Sketchup it says "Your browser does not support it".

                  Does SketchUp have separate version of internet explorer?

                  If so can you update that version and how?

                  Thanks!

                  [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    jiminy-billy-bob
                    last edited by 1 Jun 2013, 22:46

                    @renderiza said:

                    I have internet explorer 10 to navigate the internet but when I use an html 5 tag on my web-dialog for Sketchup it says "Your browser does not support it".

                    Even while using <meta http-equiv="X-UA-Compatible" content="IE=10"> ?

                    25% off Skatter for SketchUcation Premium Members

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      renderiza
                      last edited by 2 Jun 2013, 00:00

                      Wow! 😍

                      I was not familiar with that meta tag...I am so happy because now I can expand my webdialogs features! πŸ‘

                      Thanks!

                      [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        jiminy-billy-bob
                        last edited by 2 Jun 2013, 09:55

                        But remember :

                        @thomthom said:

                        It will work on all systems that have IE10 or newer installed.

                        25% off Skatter for SketchUcation Premium Members

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

                        Advertisement