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

    BUG: WebDialog conditional comments

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 295 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.
    • AdamBA Offline
      AdamB
      last edited by

      Just found a bug in SketchUp WebDialog handling

      Because Internet Explorer historically had many quirks, MS added a special feature called "Conditional comments" that allowed web pages to handle things differently for different versions of IE...

      Well LightUp does some pretty spiffy CSS for IES light browsers etc so had to handle users with IE6, IE7, IE8, IE9 and now IE10.

      What this means in practice is code like this:

      <!--[if IE 7]> do some special stuff just to handle IE7 wierdness <[endif]-->

      Rather annoyingly, if you have IE9 installed, looks like SketchUp somehow thinks its running IE7.

      Drop this unzip this test plugin in your Plugin folder, start Sketchup and run "WDTest" from the Plugins menu.

      Adam


      wdtest.rb.zip

      Developer of LightUp Click for website

      1 Reply Last reply Reply Quote 0
      • A Offline
        Aerilius
        last edited by

        In embedded browsers, IE seems to default to IE7 mode:
        http://forums.sketchucation.com/viewtopic.php?f=180&t=27594&p=239229#p239145

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          @adamb said:

          Rather annoyingly, if you have IE9 installed, looks like SketchUp somehow thinks its running IE7.

          It doesn't think - it does. Embedded web controls are handled differently. You must force it to use a different version.

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

          1 Reply Last reply Reply Quote 0
          • AdamBA Offline
            AdamB
            last edited by

            @thomthom said:

            @adamb said:

            Rather annoyingly, if you have IE9 installed, looks like SketchUp somehow thinks its running IE7.

            It doesn't think - it does. Embedded web controls are handled differently. You must force it to use a different version.

            The thing that threw me was that SU and IE8 installed correctly reports IE8, as does IE7 and IE6 with the same html. IE9 does not.

            But given the conditional comments are being dropped by MS for IE10, and frankly anyone still use IE6 or IE7 is living on borrowed time, I've ripped out all the conditional stuff.

            thanks for the all the info though.

            Developer of LightUp Click for website

            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