Displaying 20 results from an estimated 500 matches similar to: "Updated the xml code to be more object-oriented"
2006 Mar 23
4
XML parser fixed
Hi, I changed the XML parser who have been write by Greg (Gregory Hill)
and changed some things.
It did not work in IE and Safari and opera.
I fixed some bugs. Now it works fine in IE, Safari, Firefox and Opera.
/* --------------------------------------- */
XMLParser = Class.create();
Object.extend(XMLParser.prototype,
{
initialize: function (XMLFile, options)
{
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 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();
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;
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()) {
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 Apr 17
7
Serve static XML files how?
Hi,
a Javascript in one of my Rails templates needs to load a static XML
file. I tried several places to put the actual XML file, and I also
tried to make the file a rails template (tried both .rhtml and .rxml)
and access it via a controller action. None of these ways worked. Does
the lighttpd server know how to serve XML files, or do I need to
configure it first? Or, is there a good workaround?
2010 Aug 24
2
Parsing a XML file
I have one XML file with 30MB that I need to read the data.
I try this;
library(XML)
doc <- xmlDoc("Malaria_Grave.xml")
And R answers like this
*** caught segfault ***
address 0x5, cause 'memory not mapped'
Traceback:
1: .Call("RS_XML_createDocFromNode", node, PACKAGE = "XML")
2: xmlDoc("Malaria_Grave.xml")
Possible actions:
1: abort (with
2012 Jan 18
1
Compile error 1.8.8.1
Hi,
While compiling 1.8.8.1, I met the following error:
[AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o
hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o
btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o
btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o
btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o
2016 Dec 04
3
Asterisk Can't start with the default configs
Hi,
I tried to run the make progdocs, but the first time, it said, I have no
doxygen installed. So I compiled the latest release and reconfigure the
asterisk. And after it, ut sucessfully started to build the docs. But it
took a lot of time, So finally I aborted the process...
Is there a way to disable doc creating? The --disable-xmldoc is enough?
Thanks!
On Dec 2, 2016 3:36 PM, "Joshua
2010 Aug 30
4
getNodeSet - what am I doing wrong?
Hi,
Why is the following retuning a nodset of length 0:
> library(XML)
> test <- xmlTreeParse(
> "http://www.unimod.org/xml/unimod_tables.xml",useInternalNodes=TRUE)
> getNodeSet(test,"//modifications_row")
Thanks for any hint.
Joh
2012 Nov 03
3
Installation Problem with asterisk 1.6
Dear All,
I'm installing the asterisk-1.6.2.24 in Centos 5.3, whenever i'm running
following command
./configure
I got below error:
configure: *** XML documentation will not be available because the
'libxml2' development package is missing.
configure: *** Please run the 'configure' script with the
'--disable-xmldoc' parameter option
configure: *** or install the
2006 Jan 24
8
scriptaculous sortable
Hi,
maybe I am using this the wrong way but I have a list as follows
<ul id="secondlist">
<li>bla bla</li>
<li> bla bla </li>
</ul>
and then I add dynamically further <li> elements and create a Sortable
but the onUpdate only fires for <li> items that have not been created
via Javascript.
Any clues?
<script
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
2014 Aug 15
1
virt-manager and libvirt-python
Hello! I'm trying to work with virt-manager but getting SIGTRAP signal.
It is done with gdb under MinGW32 on Windows 7 64-bit. I have Python 2.7.8. 32-bit.
As I can see from backtrace ( http://pastebin.com/JhN6XgYb ), there is something wrong with libvirtmod.pyd.
Also I couldn't find how to solve " typelib for AppIndicator3" error.
So I try to debug libvirt-python. For doing
2010 Aug 10
1
DEBUG: Cannot find variable 'XXX' ??
On 1.6.2.11-rc2 I've noticed a bunch of DEBUG statements on startup,
such as:
== Registered custom function 'SIP_HEADER'
[Aug 9 07:01:23] DEBUG[17330]: xmldoc.c:1727 xmldoc_build_field: Cannot
find variable 'SIPPEER' in tree 'description'
== Registered custom function 'SIPPEER'
[Aug 9 07:01:23] DEBUG[17330]: xmldoc.c:1727 xmldoc_build_field: Cannot
find
2006 Mar 03
6
[PATCH] Effect.Accordion (not from the wiki)
Hello boys and girls
In the ever-loving spirit of OSS, here''s another feature for s.a.u.
In particular it''s called Effect.Accordion, and is a scriptaculified
version of openrico''s Accordion.
Work in progress, I''ll submit further modifications as the come in, but
this is 90% of what needs to be done. I anticipate some bugs when I
start using it more.
Tested
2016 Dec 04
2
Asterisk Can't start with the default configs
No, the disable-xmldoc doesn't disable the whole doc creating procedure.
Is there a way to disable it completely?
Regarding the issue... Of course, I Can open a ticket, just I don't know
about what exactly. I want to compile it without doc generate to make the
asterisk module loads up fine.
On Dec 4, 2016 8:41 PM, "Joshua Colp" <jcolp at digium.com> wrote:
> On Sun,
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
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: