Yea, for now, just access textContent, since that's the XML DOM standard
accessor for what you want.
On Tue, Dec 21, 2010 at 3:24 PM, Sanford Whiteman <
sa...@cypressintegrated.com> wrote:
> > ok so we have to find the TextNode and retrieve the textContent...
>
> Not necessarily; you can just e
> ok so we have to find the TextNode and retrieve the textContent...
Not necessarily; you can just eschew the Moo getters.
http://www.jsfiddle.net/tps3z/1/
This works in Moz + WK. But you are going to have trouble in IE
unless you namespace your XML, as previously documented.
-- Sand
demo here: http://thinkphp.github.com/wikiworld
On Dec 21, 9:29 pm, Adrian Statescu wrote:
> Ok, thanks for informations , finally , in first instance,I've decided
> and used Request.JSON with a file PHP to fetch data and in second
> instance for another release I've used Request.JSONP to get the
Ok, thanks for informations , finally , in first instance,I've decided
and used Request.JSON with a file PHP to fetch data and in second
instance for another release I've used Request.JSONP to get the json.
the result is here: https://github.com/thinkphp/wikiworld
and the source is here: https://gi
Hello!
I'm using mootools 1.11 for a project of a client ( he asked about
mootools 1.11... ) and I have an issue doing this
$("next").addEvents({
"click" : function(event){
$$(".myli")[0].clone().injectInside("myUl");
// continue something else
}
})
Later,
uhmm...
ok so we have to find the TextNode and retrieve the textContent...
--
Andrea
On Tue, Dec 21, 2010 at 10:22, Sean McArthur wrote:
> Er, I forgot a few steps. Since it's an element node, you can get the
> childNodes, and look for a TextNode, which will have the nodeValue of the
> text. K
Er, I forgot a few steps. Since it's an element node, you can get the
childNodes, and look for a TextNode, which will have the nodeValue of the
text. Kinda sucky, though :)
Some simple investigation suggests that Chrome supports both innerText, and
textContent on HTML elements. MooTools checks fir
element.get("nodeValue") and element.nodeValue
are returning null...
Have you tried the jsFiddle example?
--
Andrea Dessì
On Tue, Dec 21, 2010 at 10:09, Sean McArthur wrote:
> I'm not really sure, but for XML, the text between the tags should be
> available via `nodeValue`, no?
>
>
>
>
> On T
I'm not really sure, but for XML, the text between the tags should be
available via `nodeValue`, no?
On Tue, Dec 21, 2010 at 12:47 AM, Andrea Dessì wrote:
> Hi all,
>
> I'm trying to parse a XML object.
> In this example http://www.jsfiddle.net/tps3z/
> the method element.get("text") is workin
Hi all,
I'm trying to parse a XML object.
In this example http://www.jsfiddle.net/tps3z/
the method element.get("text") is working with firefox
and not working with google chrome.
Why? :) please use your console in order to see the wrong values.
What am I missing?
--
Andrea
10 matches
Mail list logo