search for: parentnode

Displaying 20 results from an estimated 72 matches for "parentnode".

2006 Apr 27
14
cleanWhitespace and parentNode
Hey cats, I seem to have ran into a problem in IE trying to use parentNode with the cleanWhitespace method. doing something like: var div = $(''mydiv''); Element.cleanWhitespace(div); works really great, but try doing: var div = $(''mydiv''); Element.cleanWhitespace(div.parentNode); or var div = $(''mydiv''); div = div...
2006 Feb 07
1
onHover: can u explain me this function ?
In Sortables, we have a function onHover: onHover: function(element, dropon, overlap) { if(overlap>0.5) { Sortable.mark(dropon, ''before''); if(dropon.previousSibling != element) { var oldParentNode = element.parentNode; element.style.visibility = "hidden"; // fix gecko rendering dropon.parentNode.insertBefore(element, dropon); if(dropon.parentNode!=oldParentNode) Sortable.options(oldParentNode).onChange(element); Sortable.options(dropo...
2005 Sep 18
3
Attaching effects during onload
...lt; filters.length; i++) { var filter = filters[i]; var trigger = filter.getElementsByTagName(''a'')[0]; //trigger.onclick = function() { new Effect.SlideUp (filter); } trigger.onclick = function() { filter = this.parentNode.parentNode.parentNode; Effect.SlideUp(filter); } } } The trouble is, when the onclick handler fires, ''filter'' always refers to the last thing it was set to during doOnLoad() due to Javascript''s lexical scoping rules. I'...
2006 Feb 22
2
''this.initialize'' is null or not an object
...ing on the accordion widget and it''s actually working nice (doesn''t seem to be jumpy) now but I am receiving a javascript error in IE 6. Does anybody have any ideas why it is happening? Thanks <script language="javascript"> sbr_stretch(el) { thisBodyId = el.parentNode.id + "_body"; thisBody = $(thisBodyId); if (!Element.visible(thisBody)) { panels = el.parentNode.parentNode.getElementsByTagName(''div''); var elup; for (i = 0; i < panels.length; i++) { if (panels[i].className == ''panel_body'...
2007 Oct 13
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c test/trace
...;empty_element' childNodes: 0: --- -attributes: 1: entities%5Fattribute=%3C%20%3E%20%22%20%27%20%26 +attributes: 1: entities%5Fattribute=%3C%20%3E%20%22%20%27%20%26%20%C2%A0 localName: entities namespaceURI: nodeName: entities @@ -309,18 +309,18 @@ nodeType: 1 nodeValue: null prefix: parentNode: TAG(1): 'null' -firstChild: TEXT(3): '%0A%20%20%3C%20%3E%20%22%20%27%20%26%0A' -lastChild: TEXT(3): '%0A%20%20%3C%20%3E%20%22%20%27%20%26%0A' +firstChild: TEXT(3): '%0A%20%20%3C%20%3E%20%22%20%27%20%26%20%C2%A0%0A' +lastChild: TEXT(3): '%0A%20%20%3C%20%3E%20%22%...
2008 Oct 22
5
LDAP Problem
...xyz,dc=com cn: basenode description: Basenode objectClass: device objectClass: top objectClass: puppetClient puppetclass: baseapps # webserver, Hosts, xyz.com dn: cn=webserver,ou=Hosts,dc=xyz,dc=com cn: webserver description: Webserver objectClass: device objectClass: top objectClass: puppetClient parentnode: basenode puppetclass: apache puppetclass: squid puppetclass: named # www1.testing.com, Hosts, xyz.com dn: cn=www1.testing.com,ou=Hosts,dc=xyz,dc=com cn: www1.testing.com description: webserving host objectClass: device objectClass: top objectClass: puppetClient objectClass: ipHost parentnode: web...
2011 Sep 23
3
ldap ENC extension to use environment parent node
Hi, We currently use ldap ENC to set server role variables and extlookup to set domain or environment variables. I have a suggestion regarding ldap use as an ENC - if a node within ldap has the environment attribute set then it should inherit/mixin (if available) from a node named after it''s environment. It could be populated with only puppetVar type attributes so that any environment
2007 Apr 04
2
Simple RJS Calls Not Working
...f=\"/recipes/6/tags/28;edit\">Edit</a></td>\n <td><a href=\"/recipes/6/tags/28\" onclick=\"if (confirm(''Are you sure?'')) { var f = document.createElement(''form''); f.style.display = ''none''; this.parentNode.appendChild(f); f.method = ''POST''; f.action = this.href;var m = document.createElement(''input''); m.setAttribute(''type'', ''hidden''); m.setAttribute(''name'', ''_method''); m.setAttribute(''...
2009 Jul 07
10
link_to, how do you combine url options and html_options?
...t link_to to generate is: <a href="/objects/new" class="css_class" id="css_id" onclick="if (confirm(''Press OK'')) { var f = document.createElement(''form''); f.style.display = ''none''; this.parentNode.appendChild(f); f.method = ''POST''; f.action = this.href; f.submit(); }; return false;">link here</a> How is this done? -- Posted via http://www.ruby-forum.com/.
2006 Jun 13
1
Element.remove parent div
...function since I''ll be removing multiple DIVs and updating the sortable order. I just can''t get some version of Element.remove to target the parent DIV. I''ve tried several versions of this but no luck. function removeParent() { var parentBlurb = document.getElementById().parentNode; Element.remove(parentBlurb); updateOrder(); } then... <div class="blurb" id="drag_1"> <a onclick="removeParent();" class="remove"></a> </div> I just can''t get this to work out. Any suggestions would be very helpful. Thanks...
2005 Sep 14
4
How to drag/drop visitable anchors ?
Hi ! I have the following: <li id="photo_<%= @photo.id %>" class="photo"> <%= link_to(image_tag(url_for_file_column(:photo, :picture)), {:action => ''photo'', :id => @photo}, {:title => @photo.description}) %> </li> <script type="text/javascript" language="JavaScript"><!--
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
...%2Fwww%2Ew3%2Eorg%2FTR%2Fxhtml11%2FDTD%2Fxhtml11%2Edtd%22%3E +ignoreWhite: true +loaded: true +status: 0 +xmlDecl: <?xml version="1.0" encoding="UTF-8"?> +--- +attributes: 0: +localName: null +namespaceURI: null +nodeName: null +nodeType: 1 +nodeValue: null +prefix: null +parentNode: undefined +firstChild: TAG(1): 'html' +lastChild: TAG(1): 'html' +nextSibling: undefined +previousSibling: undefined +childNodes: 1: TAG(1): 'html' +--- +attributes: 1: xmlns=http%3A%2F%2Fwww%2Ew3%2Eorg%2F1999%2Fxhtml +localName: html +namespaceURI: http://www.w3.org/1999/x...
2006 Mar 29
3
droppables
I am not sure how many of you are using draggables/droppables but I thought I would do some experimentation and try and learn how to use them on my own. Well, I have draggables, and I have droppables. I do have one question for now. The droppable onDrop event seems to pass in 2 objects, the dropped object, and the container the object was dropped on. My question is this, can I figure
2006 Feb 23
25
reloading fragments of pages
...onseText; *if* (result!='''') { $(this.last_portlet_id).innerHTML = result; *var* newdiv = document.createElement("div"); newdiv.innerHTML = result; newdiv.id = this.last_portlet_id; olddiv = $(this.last_portlet_id); parent = olddiv.parentNode; olddiv.parentNode.replaceChild(newdiv, olddiv); } }, refreshPortlet: *function*(portlet_id) { *var* params = ''portlet_id='' + portlet_id; url = ''viewPortlet''; *var* refreshPortletCompletedBn = this.refreshPortletCompleted.bind(this);...
2005 Oct 25
24
InPlaceEditor scrolls to top in Firefox?
When I click an InPlaceEditor field in Firefox 1.0.7, the page scrolls up to the top. That''s disconcerting, and often ends up with the editable field out of the viewable pane. I can duplicate this on both Mac and PC. Is there a way to prevent this? Even the demo at http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor does this. Jay Levitt
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
....element)) deepest = drops[i]; - + return deepest; }, isContained: function(element, drop) { var containmentNode; if(drop.tree) { - containmentNode = element.treeNode; + containmentNode = element.treeNode; } else { containmentNode = element.parentNode; } return drop._containers.detect(function(c) { return containmentNode == c }); }, - + isAffected: function(point, element, drop) { return ( (drop.element!=element) && ((!drop._containers) || this.isContained(element, drop)) && ((...
2006 Dec 13
4
Effect.Opacity on Firefox Mac Dims text
...s basically does this: var loading = document.createElement(''div''); loading.id = ''loading_image''; $(loading).addClassName(''thumb_loading''); $(''container'').appendChild(loading); Position.clone($(''myThumbnail'').parentNode,$(''loading_image'')); new Effect.Opacity($(''loading_image''),{duration: .2, to: .7}); As long as the loading image is displayed (not just while it''s actively changing opacity) All the text on the page in FIrefox Mac dims slightly. The images are left alon...
2008 Apr 16
3
non-bubbling mouseover/mouseout
First, I have only played with Prototype for about a month, so I don''t know it well. Second, I am more of a server-side programmer than a client-side programmer. In my page, I have a div that appears as a result of a link mouseover event. This div is nested within another div that houses everything (id = ''menuContainer''). I want the resulting div (which is a submenu)
2007 Jun 24
0
Browser-level "Loading" Cursors for AJAX
I''ve only tested this in Firefox so far, but it seems handy. One more way to let people know that stuff is going on behind the scenes. var SomeAjax = new Ajax.Request("/some/address", { onCreate: function() { document.body.parentNode.style.cursor = "progress" }, onComplete: function() { document.body.parentNode.style.cursor = "default" } }) -- -=jack[turner-fBgUz5AM8P2sTnJN9+BGXg@public.gmane.org & thoughtbucket.tumblr.com] --~--~---------~--~----~------------~-------~--~----~ You received this me...
2006 Jun 26
1
Parent/Child Tags
IS there a way to determine that the parent or child tags are for a given element? _____________________ Thanks, Keith Davis - MCSA, A+, N+ P.R.I.D.E. - Director of Computer Services www.pridedallas.com Work (214) 351-6600 ext. 119 Mobile (214) 906-5183 _______________________________________________ Rails-spinoffs mailing list