search for: childelements

Displaying 3 results from an estimated 3 matches for "childelements".

Did you mean: child_element
2008 Jan 09
4
Using Prototype - Getting Javascript Error - "Object doesn't support this property or method"
I have the following javascript being called on my site and I am getting a Javascript error - "Object doesn''t support this property or method". The error is invoked on the line that has - "listItems = $ ("vidList").childElements("li");". The purpose of the Javascript is two fold: ''swapVideo'' to change the Youtube video and ''assignB'' to change the bullet for the <li> from grey to yellow (yellowdot). This needs to be invoked when the corresponding link to the list ite...
2007 Jun 28
2
img element inside div not accessible with $$() or getElementsBySelector
...;img id="image" src="blah.jpg"> <div id="bar" </div> - Using $$(''#foo img'') returns an empty array - Using $(''foo'').getElementsBySelector(''img'') gets me an empty array - Using $(''foo'').childElements() gets me an array with ''blah'' inside... but not the img. - Using $(''image'') works. To me, it looks like img doesn''t count as an element of any kind. But I don''t see how that''s possible, and from the docs it doesn''t look like...
2008 May 19
0
up/down/delete functions for list items, problem with bound parameters
...return upLink; }).bind(pos); div.appendChild(upf(div.id)); }, upArticle: function(pos) { var before = this.FCArray[pos-1]; this.FCArray.splice(pos-1,1); this.FCArray.splice(pos,0,before) var div = $(''selected'').childElements()[pos]; div.id = pos-1; var divBefore = div.previous().insert({before: div}); divBefore.id = pos; } )} The user selects from some articles, which populates a ''selected'' list. Each of these gets an up/down/delete function. So, again, the problem is that the POS arg...