Navigation

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

    Webpage Script Error

    Forum Feedback
    4
    7
    1839
    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
      • jimp
        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.

        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(v=vs.85).aspx

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

          oTextHandle.caretPos = document.selection.createRange().duplicate();
          
          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
            • jdillard
              jdillard Administrator 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

                  Products

                  • Platform Overview
                  • TNSR
                  • pfSense
                  • Appliances

                  Services

                  • Training
                  • Professional Services

                  Support

                  • Subscription Plans
                  • Contact Support
                  • Product Lifecycle
                  • Documentation

                  News

                  • Media Coverage
                  • Press
                  • Events

                  Resources

                  • Blog
                  • FAQ
                  • Find a Partner
                  • Resource Library
                  • Security Information

                  Company

                  • About Us
                  • Careers
                  • Partners
                  • Contact Us
                  • Legal
                  Our Mission

                  We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

                  Subscribe to our Newsletter

                  Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

                  © 2020 Rubicon Communications, LLC | Privacy Policy