Hi!
I'm getting a report of an error and before I can get to a Windows machine
with IE 6 (or 7, the error happens on both) I'd like to know if there's
something too "wrong" with my code. If somebody can help me I'd be very
thankful.
The error is:
Line: 61
Char: 17
Error: 'label.getAttribute(...)' is null or not an object
Code: 0
URL: (my system's URL on their intranet)
The code around this error is:
50 ol = document.getElementById(ol_id);
51 AppendableFormFieldList.updateVars(ol);
52 list_items = AppendableFormFieldList.getChildNodesByAttribute(ol,
'tagname', 'LI');
53 li_clone = AppendableFormFieldList.li_template.cloneNode(true);
54 // Fix the labels.
55 labels = li_clone.getElementsByTagName('LABEL');
56 for (node_id in labels) {
57 label = labels[node_id];
58 // Why am I having to check for the node type?
59 if (label.nodeType == 1) {
60 label.setAttribute('for', label.getAttribute('for').replace(
61 '_0_', '_' + AppendableFormFieldList.li_count + '_'));
62 }
63 }
(This is from a widget that was published at the TurboGears mailing list.)
Thanks in advance,
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---