similar to: XML parser fixed

Displaying 20 results from an estimated 200 matches similar to: "XML parser fixed"

2006 Mar 17
6
Updated the xml code to be more object-oriented
I changed the code to be more prototype-esque, and created a class called XMLDoc. I may add more functionality to it later, hence the more generic name, but you do something like this to convert XML to a hash: XMLDoc = Class.create(); Object.extend(XMLDoc.prototype, { initialize: function (xmlDoc) { this.element = xmlDoc; }, asHash: function () { if (! this._xmlHash) {
2006 Jun 29
0
Sortables question
Hello, I am new to Scriptaculous, and was recently brought into a project using it to create an email Newsletter builder. The idea is that the user will have lists of elements that he can add to the email page by dragging the element he wants to add from an "available sections" container, to a "loaded sections" container. Dragging from the loaded to available will
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: {
2006 Mar 03
3
xml handling
Hello there, im having a problem with the xml handling, i want to get and xml node and put things in an input text but im a little lost, im using this code, but isn''t work, what am i doing wrong? --------------------- <a href="#" onclick="getXML()">Get XML</a> <input type="text" value="nothing here" id="respuesta" />
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()) {
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
libswfdec/swfdec_html_parser.c | 24 +++++++++++++++++- libswfdec/swfdec_text_field.c | 2 + libswfdec/swfdec_text_field_movie.c | 9 ++---- libswfdec/swfdec_text_field_movie_as.c | 3 ++ libswfdec/swfdec_xml.c | 5 +++ test/trace/xml-escape-5.swf |binary test/trace/xml-escape-6.swf |binary test/trace/xml-escape-6.swf.trace
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
Note that this does not fix gettext for app, that will be done separately in another patch as F10/F11 require different setups for that. In the meantime gettext works if manually changed in environment.rb to gettext_rails instead of gettext/rails Signed-off-by: Jason Guiditta <jason.guiditt at gmail.com> --- src/app/controllers/application.rb | 200 --------
2006 Feb 07
2
Question about Classes.
I have the attached class that I''m writing. The problem that I''m running into is that I can not access the options from the createArray function which get called after the ajax request gets done. I want to move the values of the xml file to an array and story it in the options variable. Can someone explain what I''m doing wrong? var LeaderInfo = Class.create();
2007 Nov 02
0
2 commits - libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c
libswfdec/swfdec_xml.c | 10 ++++++---- libswfdec/swfdec_xml_node.c | 7 ++++--- 2 files changed, 10 insertions(+), 7 deletions(-) New commits: commit 8890bee87d10d7ee5f6f42e7b594644dc0484ab3 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Fri Nov 2 12:31:13 2007 +0200 Fix couple of errors I just made, they broke XML support diff --git a/libswfdec/swfdec_xml.c
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
libswfdec/swfdec_as_array.c | 88 +- libswfdec/swfdec_xml.c | 17 libswfdec/swfdec_xml_node.c | 23 test/trace/Makefile.am | 28 test/trace/array-no-object-5.swf |binary test/trace/array-no-object-5.swf.trace | 14 test/trace/array-no-object-6.swf |binary test/trace/array-no-object-6.swf.trace | 14
2006 May 30
0
problem with effect toggle - please help
Hello, I''m having the following code below - when I click on the button in order to toggle a div, it is working when the div is visible - after it is toggled once, the beforeStart stuff isn''t executed anymore! interestingly, when I change this Effect.toggle(this.bContentWrap, ''blind'', { to this: Effect.toggle(this.bContentWrap, ''slide'',
2008 Jan 19
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_sprite_movie_as.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/image test/swfdec_test.c test/swfdec_test_image.c test/trace
libswfdec/swfdec_as_strings.c | 2 libswfdec/swfdec_sprite_movie_as.c | 22 ++-- libswfdec/swfdec_xml.c | 117 ++++++++++++++++------- libswfdec/swfdec_xml.h | 8 - libswfdec/swfdec_xml_node.c | 32 +++--- libswfdec/swfdec_xml_node.h | 2
2005 Nov 07
2
question about Effect.Highlight and IE 5.5
I''ve recently begun testing some of the scriptaculous functionality in IE 5.5, since my company wants me to support as many browsers as possible. When I do an Effect.Highlight on a <tr>, it doesn''t quite work right. I''ve figured out a few things, but I''m not sure whether you want to change them or not. Here''s what I know: In
2006 Mar 29
0
auto_complete_on_select don''t work correctly
Hi, i hope that''s the correct place for this question. I must update two input text from autocomplete. The list is, for exemple: <ul> <li> <span class="comune_name">pippo</span> <span class="lat" style="display:none">1.2</span> <span class="long" style="display:none">3.0</span>
2006 Mar 01
3
RE: manipulate <td>''s and their contentbygrabbingtheir classNames
Ahh... Haven''t run up against that yet. Although I also completely disregard Gecko/Safari and other totally crappy, useless, browsers :-). </cynicism> -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Gregory Hill Sent:
2006 Mar 01
2
RE: manipulate <td>''s and their content bygrabbingtheir classNames
> Or... > > var myTDs = new Array(); > $A($("main").childNodes).each(function(tr) > { > $A(tr.childNodes).each(function(td) > { > myTDs.push(td); > }); > }); You''ll probably want to make sure the tr elements are TR tags and the same for the td''s, as empty text nodes are inserted randomly by the gecko engine (and maybe others). Greg
2006 Mar 01
0
RE: manipulate <td>''s and their content by grabbingtheir classNames
Or... var myTDs = new Array(); $A($("main").childNodes).each(function(tr) { $A(tr.childNodes).each(function(td) { myTDs.push(td); }); }); -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of troels knak-nielsen Sent: Wednesday, March
2008 May 19
6
obtaining table cell text data
I''m writing some code to subset a table based on the contents of particular columns. My event handler starts off like this: subsetChange: function(e) { var subset = $F(''subsetSelector''); var rows = $$(''.content-row''); rows.each(function(row) { var value = row.down(''.Platform_Category'').childNodes[0].data;
2007 Nov 02
0
5 commits - libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c
libswfdec/swfdec_text_field.c | 2 +- libswfdec/swfdec_text_field_movie.c | 9 ++------- libswfdec/swfdec_text_field_movie_as.c | 29 +++++++++++++++++++++-------- libswfdec/swfdec_xml.c | 16 ++++++++++++++++ libswfdec/swfdec_xml_node.c | 17 ++++++++++++++--- 5 files changed, 54 insertions(+), 19 deletions(-) New commits: commit
2005 Oct 04
2
sorting error "Error: item.id has no properties"
I''ve got some sorting working now, but when the page loads and when I drag, I keep getting this error: "Error: item.id has no properties" My <ul> and <li> elements all have ids. Do child elements all need ids? Here''s the code from dragdrop.js where the error is being thrown ( a few lines from the bottom of the file, line 501--HEAD version) serialize: