hi , i have a compatibility problem with Mochikit and Internet
Exploer. This script create dinamycally a text input and button for
uploading files. It works with Mozilla but not with IE. If anybody can
tell me why it would be great!! The script is:
function createNext(node){
parent = node.parentNode;
childs = MochiKit.DOM.getElementsByTagAndClassName("input", null ,
parent=parent)
lastChild = getLastChild(childs)
if(lastChild==node){
MochiKit.DOM.appendChildNodes(parent, MochiKit.DOM.createDOM('br'))
MochiKit.DOM.appendChildNodes(parent, MochiKit.DOM.createDOM('br'))
newNode = lastChild.cloneNode(true)
//newNode = updateNodeAttributes(newNode, {'value' : '' })
newNode.value = ''
newNode = MochiKit.DOM.appendChildNodes(parent, newNode)
}
}
function getLastChild(elementsList){
return elementsList[elementsList.length-1]
}
thanks anyway ;)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---