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

Js / DOM / HTML questions

Scheduled Pinned Locked Moved Developers' Forum
6 Posts 2 Posters 98 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.
  • D Offline
    Dan Rathbun
    last edited by 8 Jul 2012, 23:54

    This is probably aimed at ThomThom:

    Does MSIE 8, support DOM Level 3 ?

    What I'm I'm wondering is if I can do this, for cross-platform:

    %(#8000BF)[document.head]

    EDIT: %(#BF4000)["document.head is null or not an object"]

    instead of:

    %(#8000BF)[document.getElementsByTagName('head')[0]]

    .. and the other question is:

    Do both Safari (latest ver,) and MSIE 8 support the %(#8000BF)[insertBefore] method (which I'd like to use, instead of the %(#8000BF)[appendChild] method.)

    I'm not here much anymore.

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 9 Jul 2012, 10:17

      hm... I do not remember. I've been using jQuery for the last few years now. It's taken care of most my DOM cross platform worries. I now deal pretty much exclusively with the jQuery API and I just get things done instead of messing about with the awkward DOM API.

      Probably not quite the answer you where looking for, but really, using a framework for dealing with the DOM is a completely different world and it'll save your hairs from going grey.

      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 9 Jul 2012, 13:53

        I know this.. you've said it before.
        This is different... I'm injecting a line (A SINGLE LINE,) of html from the Ruby side

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 9 Jul 2012, 14:33

          I see.

          Quirks mode is really nice for looking up compatibility:
          http://www.quirksmode.org/dom/w3c_core.html#t92

          I often just google the keyword followed by "quirksmode" and the top result is usually from quirksmode.org .

          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 9 Jul 2012, 15:21

            Holy WoW! That's a great site !

            I've been hoping for something like that for Ruby, so we can see when methods are valid.

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • D Offline
              Dan Rathbun
              last edited by 9 Jul 2012, 15:40

              @dan rathbun said:

              What I'm I'm wondering is if I can do this, for cross-platform:

              %(#8000BF)[document.head]

              OK I understand now (those new MSDN pages are so confusing!)

              %(#8000BF)[document.head] is part of HTML 5.

              http://stackoverflow.com/questions/7557868/document-head-document-body-to-attach-scripts
              and
              http://www.whatwg.org/specs/web-apps/current-work/multipage/dom.html#dom-document-head

              I'm not here much anymore.

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

              Advertisement