Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Webpage Script Error

    Scheduled Pinned Locked Moved Forum Feedback
    7 Posts 4 Posters 7.0k Views
    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.
    • N
      NOYB
      last edited by

      Script error when click in the message topic edit/input area to type message.

      Line: 334
      Error: Unable to get property 'createRange' of undefined or null reference

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Which page exactly? Which browser?

        I don't see anything in a JS console in FF 47 on Mint.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • J
          JorgeOliveira
          last edited by

          He's most likely using Internet Explorer:
          https://msdn.microsoft.com/library/ms535869%28v=vs.85%29.aspx

          See:
          https://forum.pfsense.org/Themes/default/scripts/script.js?fin20

          oTextHandle.caretPos = document.selection.createRange().duplicate();
          

          My views have absolutely no warranty express or implied. Always do your own research.

          1 Reply Last reply Reply Quote 0
          • N
            NOYB
            last edited by

            IE 11 Windows 8.1

            When creating a new message to post in the forums.  Click inside the text entry box/area (where I am right now typing this message).

            See attachments for IE script debugging settings and how to reproduce error.

            ![IE Script Debugging.jpg](/public/imported_attachments/1/IE Script Debugging.jpg)
            ![IE Script Debugging.jpg_thumb](/public/imported_attachments/1/IE Script Debugging.jpg_thumb)
            ![Forum Script Error.jpg](/public/imported_attachments/1/Forum Script Error.jpg)
            ![Forum Script Error.jpg_thumb](/public/imported_attachments/1/Forum Script Error.jpg_thumb)

            1 Reply Last reply Reply Quote 0
            • jdillardJ
              jdillard
              last edited by

              Should be fixed now.

              From Jorge's link:

              [selection is no longer supported. Starting with Internet Explorer 11, use getSelection. For info, see Compatibility changes.]

              1 Reply Last reply Reply Quote 0
              • N
                NOYB
                last edited by

                Yup.  Appears to be fixed.  Thanks.

                1 Reply Last reply Reply Quote 0
                • N
                  NOYB
                  last edited by

                  Well, let's play whack a mole shall we.

                  Clicking an emoticons creates an error too, after typing in the message text area.

                  
                  Line: 355
                  Error: Unable to get property 'charAt' of undefined or null reference
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.