Moodle

Javascript bug when adding label using IE6.0

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.8, 1.9
  • Fix Version/s: None
  • Component/s: Forms Library, Resource
  • Labels:
    None
  • Environment:
    Internet Explorer 6.0, Windows
  • Affected Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE

Description

When adding a label to a course in IE6, I get a Javascript error:

"Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."

It doesn't seem to occur in Firefox 2 or IE7.

The problem seems to be that, for labels, the first field on the page is the textarea of the HTML editor, and for some reason this won't accept the focus. I am not sure why, so I've not been able to fix it.

Issue Links

Activity

Hide
Dan Marsden added a comment -

attaching Piers patch for this issue - see MDL-9077 for more context.

Piers Harding - 23/Jul/08 08:42 AM
After correcting the reference field JS validation problem, I stumbled upon another to do with validation (client, and server) of textarea fields that have an html editor attached. When the validation fails it attempts to set the focus() on the textarea which has been masked by the iframe of the html editor.
The attached patch checks to see if an element is a textarea, and whether the user has htmleditor enabled - if so it bypasses the focus() call.

This issue affects all forms that use the htmleditor.

Cheers,
Piers Harding.

Show
Dan Marsden added a comment - attaching Piers patch for this issue - see MDL-9077 for more context. Piers Harding - 23/Jul/08 08:42 AM After correcting the reference field JS validation problem, I stumbled upon another to do with validation (client, and server) of textarea fields that have an html editor attached. When the validation fails it attempts to set the focus() on the textarea which has been masked by the iframe of the html editor. The attached patch checks to see if an element is a textarea, and whether the user has htmleditor enabled - if so it bypasses the focus() call. This issue affects all forms that use the htmleditor. Cheers, Piers Harding.
Hide
Robin Britt added a comment -

I'm brand new to Moodle and to this forum, so forgive me if I'm in the wrong place. This appears to be the error that started happening for me today (despite having added labels on previous days). It occurs in IE 8.0.6.001 and in Firefox 3.0.14. We are running Moodle 1.9.

Thanks!
Robin

Show
Robin Britt added a comment - I'm brand new to Moodle and to this forum, so forgive me if I'm in the wrong place. This appears to be the error that started happening for me today (despite having added labels on previous days). It occurs in IE 8.0.6.001 and in Firefox 3.0.14. We are running Moodle 1.9. Thanks! Robin
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: