Fork me on GitHub
Subscribe 3

Ticket #316 (fixed bug)

ONLOAD Javascript error

  • Created: 2011-02-23 20:23:39
  • Reported by: ridgerunner
  • Assigned to: Reines
  • Milestone: 1.4.5
  • Component: code
  • Priority: normal

A recent change has introduced the following Javascript error on page loading:

JavaScript - http://localhost/forums/fluxbb_dev/viewtopic.php?id=1
Event thread: load
Uncaught exception: TypeError: Cannot convert 'document.getElementById('post')' to object
Error thrown at line 1, column 0 in <anonymous function>(event):
    document.getElementById('post').elements['req_message'].focus()
called from line 271, column 12 in <anonymous function: window.onload>() in http://localhost/forums/fluxbb_dev/bin/DynamicRegexHighlighter.js:
    oldf();

Note that you will only see the error if you have script error notifications turned ON (they are typically turned OFF by default with most browsers.)

History

ridgerunner 2011-02-23 20:24:19

  • Description changed. (Diff)

Reines 2011-02-23 20:37:48

Commit bf73f8e to fluxbb master

Fixing the focus element ID in viewtopic. #316.

Reines 2011-02-23 20:39:13

  • Owner set to Reines.
  • Priority changed from high to normal.
  • Status changed from open to fixed.

Cheers, fixed.

quy 2011-02-23 20:59:23

Fixed again. Removed focus element to quickpost to prevent going to the bottom of the page upon page loading.