
|
If you were logged in you would be able to see more operations.
|
|
|
Moodle
Created: 27/May/08 08:39 PM
Updated: 23/Jul/08 09:23 AM
|
|
| Component/s: |
Resource,
Forms Library
|
| Affects Version/s: |
1.8,
1.9
|
| Fix Version/s: |
None
|
|
|
File Attachments:
|
1.
htmleditor.patch (1 kb)
|
|
Environment:
|
Internet Explorer 6.0, Windows
|
|
Issue Links:
|
Relates
|
|
This issue has a non-specific relationship to:
|
|
|
|
|
|
|
|
|
|
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.
|
|
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. |
Show » |
|
MDL-9077for 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.