Hello,
I'm using Prototype's 'DOM walking' functionality (Element.up(),
Element.down()). It works fine in Firefox, but not in IE.
I'm using Firefox 2.0 for development, and just tested my script
within IE5, IE5.5, and IE6, all failing with the same message ("this
object doesn't support this method.").
Source code example:
HTML:
<tr id='row1'><td>test</td></tr>
JavaScript:
var td = $('row1').down(); //works in Firefox, not in IE
//current workaround for IE, but unhandy:
var td = getChildNode($('row1');
function getChildNode(node) {
if(node.firstChild.nodeType == 3) //textNode
return node.childNodes[1];
else
return node.firstChild;
}
Any help?
Regards,
Felix
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---