search for: haschildnod

Displaying 10 results from an estimated 10 matches for "haschildnod".

Did you mean: haschildnodes
2006 Mar 31
2
RE: drag and drop sorting with an empty lis
I ran into this issue too. My solution was to add an "onUpdate" function to the sortable that tests the container to see if it''s got any children or not: function is_empty(container) { if ($(container).hasChildNodes()) { Element.removeClassName($(container),''empty''); } else if (!$(container).hasChildNodes()) { Element.addClassName($(container),''empty''); } } I was using this for 2 sortable (UL) lists - my class for the "empty" sortable just padded the conta...
2006 Mar 17
6
Updated the xml code to be more object-oriented
...mlDoc; }, asHash: function () { if (! this._xmlHash) { this._xmlHash = this._nodeToHash(this.element); } return this._xmlHash; }, _nodeToHash: function (node) { Element.cleanWhitespace(node); if ((node.attributes && node.attributes.length > 0) || (node.hasChildNodes() && node.childNodes[0].nodeType == 1)) { var localHash = {}; if (node.attributes && node.attributes.length >= 1) { $A(node.attributes).each(function (attr) { localHash[attr.nodeName] = [attr.nodeValue]; }); } $A(node.childNodes).each(function (node)...
2006 Mar 23
4
XML parser fixed
...mplete(this.XMLParsed); } }, _nodeToHash: function (node) { Element.cleanWhitespace(node); // // remove comments, firefox fix node = this._removeComments(node); if ((node.attributes && node.attributes.length > 0) || (node.hasChildNodes() && (node.childNodes[0].nodeType == 1 || node.childNodes[0].nodeType == 7))) { var localHash = {}; if (node.attributes && node.attributes.length >= 1) { $A(node.attributes).each(function (attr) { localHash[attr.nodeN...
2006 Jun 29
0
Sortables question
...ainment:sections, only:''templateSelectItem'', onChange:function(drg){g_draggedElement = drg.id;}, onUpdate:function(drp) { var bDroppedHere = false; //console.log(drp.hasChildNodes()); for(var i=0;i<drp.childNodes.length;i++) if(drp.childNodes[i].id == g_draggedElement) bDroppedHere = true; if(bDroppedHere) { var...
2006 Mar 17
10
good javascript xml parser
Anyone know of a javascript function that will take an xml document and turn it into an associative array? Basically it would take something like this: <body> <item> <id>1</id> <name>Bob</name> </item> <item> <id>2</id> <name>John</name> </item> </body> And turn it into something like this: {
2011 Mar 04
0
Wine release 1.3.15
...tification. msxml3: Remove useless parts of schema cleanup helper. msxml3: Use helper to consistently dump variant parameters. msxml4: Add version info. msxml3: Remove forward to removeChild() method for nodes. msxml3: Remove appendChild() forward. msxml3: Remove hasChildNodes() forward. msxml3: Remove get_ownerDocument() forward. msxml3: Remove get_text() forward. msxml3: Remove selectNodes() forward. msxml3: Remove selectSingleNode() forward. msxml3: Remove transformNode() forward. msxml3: Get rid of not longer used internal IXMLDO...
2008 Jun 27
0
Wine release 1.1.0
...ment2::put_tabIndex implementation. mshtml: Added support to accessing child nodes by index in IHTMLDOMChildrenCollection. mshtml: Fixed argument checking in IHTMLDOMChildrenCollection::item. mshtml: Added IHTMLDOMNode::removeChild implementation. mshtml: Added IHTMLDOMNode::hasChildNodes implementation. mshtml: Added IHTMLSelectElement::put_value implementation. mshtml: Return NULL instead of empty string in IHTMLSelectElement::get_value. mshtml: Added IHTMLSelectElement::put_onchange implementation. mshtml: Added IHTMLElement::get_title implementation....
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...ent.isParent = function(child, element) { if (!child.parentNode || child == element) return false; if (child.parentNode == element) return true; return Element.isParent(child.parentNode, element); -} +}; Element.findChildren = function(element, only, recursive, tagName) { if(!element.hasChildNodes()) return null; @@ -965,8 +966,8 @@ Element.findChildren = function(element, only, recursive, tagName) { }); return (elements.length>0 ? elements.flatten() : []); -} +}; Element.offsetSize = function (element, type) { return element['offset' + ((type=='vertical' |...
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
...se], + ["_global.XMLNode.prototype", "cloneNode", false], + ["_global.XMLNode.prototype", "getNamespaceForPrefix", false], + ["_global.XMLNode.prototype", "getPrefixForNamespace", false], + ["_global.XMLNode.prototype", "hasChildNodes", false], + ["_global.XMLNode.prototype", "insertBefore", false], + ["_global.XMLNode.prototype", "removeNode", false], + ["_global.XMLNode.prototype", "toString", false], + ["_global", "ASSetNative", false],...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server