search for: firstchild

Displaying 20 results from an estimated 33 matches for "firstchild".

2006 Jan 13
5
Effect together with ...firstChild - can''t get it to work
Hi, I am relatively new to Rails and I can''t get the following to work: what I am trying to do is to make the first item of a list to flash: var item = $(''items'').firstChild; new Effect.Highlight(item); I get the this Javascript error message: this._base has no child (effects.js, line 445) But I am able to do this without any problems: var item = $(''items''); new Effect.Highlight(item); (now the whole list flashes) My list looks like that: <ul id...
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
...--- -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%20%27%20%26%20%C2%A0%0A' nextSi...
2005 Dec 28
1
Problem with IE
...taculous and prototype with IE please i''ll be grateful +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Droppables.add(''formulario'', { accept:''elementos'', onDrop:function(element){ var izq = 0; var top = 0; var id_elemento = $(element).firstChild.id + ''_'' + i; var dimensions = Element.getDimensions(element.firstChild); var width = dimensions.width + 30 + ''px''; var height = dimensions.height; nodoNuevo = Builder.node($(element).firstChild.nodeName, {id:id_elemento});...
2006 Feb 07
2
Question about Classes.
...); for(j=0;j<ei[0].childNodes.length;j++) { if (ei[0].childNodes[j].nodeType != 1) continue try { //this.sdEventInfo[ei[0].childNodes[j].nodeName] = ei[0].childNodes[j].firstChild.nodeValue; //this.options.sdEventInfo.push(ei[0].childNodes[j].firstChild.nodeValue ); var theData = ei[0].childNodes[j].firstChild.nodeValue; } catch (e) { var...
2007 Jun 26
5
Migration of Effect from 1.4.0 to 1.5.1
Hi, Is there migration for custom Effect between prototype/scriptaculous 1.4 and 1.5 ? Kevin Davis send me it''s cool Poof Effect but it seems to be tooooo fast in last version of scriptaculous. I think it comes from the code ? But I don''t know the best way to correct that ? Here is a copy/past of his mail for anybody interested in his Effect: > > Hey there, sorry for
2006 Jun 16
2
Javascript error?
...id'') &lt; 0){ this.action += ''?upload_id=1''; }this.target = ''UploadTarget1'';$(''UploadStatus1'').innerHTML=''Upload starting...''; if($(''UploadProgressBar1'')){$(''UploadProgressBar1'').firstChild.firstChild.style.width=''0%''}; new Effect.Appear(''status''); if (document.uploadStatus1) { document.uploadStatus1.stop(); }document.uploadStatus1 = new Ajax.PeriodicalUpdater(''UploadStatus1'',''/album/upload_status?upload_id=1'', Ob...
2006 Jan 23
6
Performance Issues with Autocompleter
...this part is in my opinion not that scalable and may need improvement. <code snip> updateChoices: function(choices) { if(!this.changed && this.hasFocus) { this.update.innerHTML = choices; Element.cleanWhitespace(this.update); Element.cleanWhitespace(this.update.firstChild); if(this.update.firstChild && this.update.firstChild.childNodes) { this.entryCount = this.update.firstChild.childNodes.length; for (var i = 0; i < this.entryCount; i++) { var entry = this.getEntry(i); entry.autocompleteIndex = i;...
2005 Jul 28
2
autocomplete: how to access a child element of <li>
...autocomplete response, i.e: <div class ="autocomplete"> <ul> <li><a href ="overtherainbow.html">somewhere</a></li> </ul> </div> i thought i could do something like el = Event.findElement(event, ''LI''); href = el.firstChild.getAttribute(''href''); but that''s not it... if anybody can awake me from my dogmatic slumber, i will greatly appreciate it... all best, tench
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
...gt;</root> +<a />,<b />,c,<d /> +<a />,<b />,c,<d />,fake +<b />,c,<d /> +<b />,c,<d />,<fake /> +<b />,c,<d />,<e /> +fake,c,<d />,<e /> +<b />,c,<d />,<f />,<e /> +parent +firstchild +lastchild +nextsibling +previoussibling +true +parent +firstchild +lastchild +nextsibling +previoussibling +true +null +null +null +null +null +false +null +null +null +null +null +false + + +<a />,<b />,c,<d /> +<a />,<b />,c,<d /> +a:b +a +b +c:d +c +d +c:d +c...
2006 Jun 12
0
validates_associated -- explicitly setting collection?
Hi, I have a class (say Parent) that has many of two other classes, say FirstChild and SecondChild. These could look like this: class Parent < ActiveRecord::Base has_many :first_children, :dependent => true has_many :first_children, :dependent => true validates_associated :first_children validates_associated :second_children end class FirstChild < ActiveReco...
2006 Jun 23
4
Creating a scrolling effect with slider
...current examples: http://knowmad.com/~ian/scroller/scroller_slide.html http://knowmad.com/~ian/scroller/scroller_blind.html I was originally wanting to use slide, but It spits out errors in firebug: effects.js (line 736) <view-source:http://knowmad.com/%7Eian/scroller/effects.js>$(element.firstChild).getStyle is not a function Thanks, Ian
2008 Mar 25
2
responseXML not working on XML file
...ultSet=simcall'', onSuccess:parseResponse, onFailure:function(xhrResponse){alert(''nope'');} }); } var parseResponse= function(xhrResponse){ var response=xhrResponse.responseXML; var paramList= response.getElementByTagName(''lastname''); alert(paramList[0].firstChild.nodeValue); } <?xml version="1.0" encoding="iso-8859-1"?> <employees> <employee id="123456"> <lastname>Smith</lastname> <firstname>Edward</firstname> <phone>(415) 333-0235 </phone> <username>esmit...
2005 Sep 27
8
prototype.js
Hi *, We don''t know if you guys are the right audience, but we got a problem with prototype.js we need to solve. Essentially, it is a compatibility bug with the IE. We wrote a component so it updates itself periodically using AJAX. we used the prototype.js to accomplish this (using the periodicalUpdater object). now the component works fine using firefox or opera, but NOT with IE. the
2006 Feb 23
6
prototype ajax + xml response
Hi, I am looking for a solution to use ajax.request object. Return response text will be in xml format and I like to know how to parse that xml information, so that I can put those info into the "span" or "div" tags of my html page. Is there any easy way to parse that xml info using prototype library? Thanks, kevin. -- Posted via http://www.ruby-forum.com/.
2007 Apr 03
2
Some cryptic error in IE
...tion(transport) { var newsDoc = transport.responseXML; var newDocument = processor.transformToDocument(newsDoc); $(''_loadingId'').update(''''); $(''_content'').update(''''); $(''_content'').appendChild(newDocument.firstChild); }, onError: function(transport,exception){ alert("Error :"+exception); }, onException: function(transport,exception) { alert("Exception :"+exception); var err; for(var ex in exception) { err += "<br/>"+exception[ex]; } document.write(err); } });...
2006 Apr 12
1
Dynamically updating list
..."Sell start-up to Google") end 3)now i make two template 1)index.rhtml 2)_item.rhtml and the template code of index.rhtml is My To Do List ******************************* the code for partial template _item.rhtml is function item_added() { var item = $(''items'').firstChild; new Effect.Highlight(item); Element.hide(''busy''); $(''form-submit-button'').disabled = false; $(''item-body-field'').value = ''''; Field.focus(''item-body-field''); } function item_loading() { $(''form-submit...
2006 Jul 14
3
Rails newbie: How does the submit_tag work?
...on" /> RHTML follows: --------------------------------------------- <head><% javascript_include_tag "prototype" %></head> <SCRIPT LANGUAGE="JavaScript"> <!-- Beginning of JavaScript - function checkboxClick(element) { inputValue = element.firstChild if (inputValue.getAttribute ("value") == "off") { inputValue.setAttribute ("value", "on") element.setAttribute ("background","/images/cbChecked.png"); } else { inputValue.setAttribute ("value", "off&qu...
2006 Jul 24
15
XML Question
I''ve got an XML file which is pretty well structured. I need to retrieve specific elements from that file to fill out empty HTML elements on a page. I think what I need is xPath? Or - is that overkill? Is there some easier way to locate an XML element? What I have in mind is pulling the XML file using Ajax, then xPath to get the bits I need. Am I on the right path and does
2006 Feb 17
4
RE: Ajax.Updater and loading new javascriptfunctions.
...the dom, where url is your .js path... This makes that script file get executed immediately. var jsScript = document.createElement("script"); jsScript.setAttribute("type", "text/javascript"); jsScript.setAttribute("src", url); var node = document.body.firstChild; node = (node.nodeType == 3) ? node.nextSibling : node; document.body.insertBefore(jsScript, node); ________________________________ From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org...
2006 Nov 23
0
W3C Range specification conceptually flawed?
hi all! check this one: <html> <head> <title>Range test</title> </head> <body> <div id="myText">FooBarBaz</div> <script type="text/javascript"> myText = document.getElementById(''myText'').firstChild; var range1 = document.createRange(); range1.setStart(myText, 3); range1.setEnd(myText, 6); var range2 = document.createRange(); range2.setStart(myText, 6); range2.setEnd(myText, 9); // as you can see in Firebug console we selected ''bar'' and ''baz'...