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!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    Js / DOM / HTML questions

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 2 Posters 128 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.
    • Dan RathbunD Offline
      Dan Rathbun
      last edited by

      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
      • thomthomT Offline
        thomthom
        last edited by

        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
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by

          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
          • thomthomT Offline
            thomthom
            last edited by

            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
            • Dan RathbunD Offline
              Dan Rathbun
              last edited by

              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
              • Dan RathbunD Offline
                Dan Rathbun
                last edited by

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

                Advertisement