Netgate SG-1000 microFirewall

Author Topic: Webpage Script Error  (Read 1540 times)

0 Members and 1 Guest are viewing this topic.

Offline NOYB

  • Hero Member
  • *****
  • Posts: 1703
  • Karma: +158/-273
    • View Profile
Webpage Script Error
« on: July 26, 2016, 05:27:05 am »
 
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
 

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 21566
  • Karma: +1471/-26
    • View Profile
Re: Webpage Script Error
« Reply #1 on: July 26, 2016, 09:13:22 am »
Which page exactly? Which browser?

I don't see anything in a JS console in FF 47 on Mint.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline JorgeOliveira

  • Full Member
  • ***
  • Posts: 153
  • Karma: +24/-1
  • May the Triforce be with you...
    • View Profile
Re: Webpage Script Error
« Reply #2 on: July 26, 2016, 11:36:35 am »
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
Code: [Select]
oTextHandle.caretPos = document.selection.createRange().duplicate();
My views have absolutely no warranty express or implied. Always do your own research.

Offline NOYB

  • Hero Member
  • *****
  • Posts: 1703
  • Karma: +158/-273
    • View Profile
Re: Webpage Script Error
« Reply #3 on: July 26, 2016, 12:27:57 pm »
 
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.
 
« Last Edit: July 26, 2016, 12:37:34 pm by NOYB »

Offline jdillard

  • Administrator
  • Sr. Member
  • *****
  • Posts: 534
  • Karma: +124/-1
  • Web Dude
    • View Profile
    • Personal Website
Re: Webpage Script Error
« Reply #4 on: August 01, 2016, 05:20:40 pm »
Should be fixed now.

From Jorge's link:

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

Offline NOYB

  • Hero Member
  • *****
  • Posts: 1703
  • Karma: +158/-273
    • View Profile
Re: Webpage Script Error
« Reply #5 on: August 01, 2016, 08:29:06 pm »
 
Yup.  Appears to be fixed.  Thanks.
 

Offline NOYB

  • Hero Member
  • *****
  • Posts: 1703
  • Karma: +158/-273
    • View Profile
Re: Webpage Script Error
« Reply #6 on: August 01, 2016, 08:46:13 pm »
 
Well, let's play whack a mole shall we.
 
Clicking an emoticons creates an error too, after typing in the message text area.
 
Code: [Select]
Line: 355
Error: Unable to get property 'charAt' of undefined or null reference