I'm not sure it's a bug... :-S
Personally, I think it's best practice to use something along the lines of
the text2html function I posted (below)
// Convert text to XML DOM
var text2xml = function(s) {
var x, ie = /msie/i.test(navigator.userAgent);
try{
var p = ie? new ActiveXObject("Microsoft
> Yeah it's a kind of bug in jQuery ...
>
> I dealt with this issue one month ago and the solution was to convert
> it into JSON
the way I am planning to approach is by building in-memory DOM element
and injecting the XML into it.
example:
var el = document.createElement('div');
el.innerHTML = x
Yeah it's a kind of bug in jQuery ...
I dealt with this issue one month ago and the solution was to convert
it into JSON
This might sound strange but try using all caps:
alert($("TABLE1", xml).text());
...and if that works, then try this function to initialize your XML instead
of jQuery:
// Convert text to XML DOM
var text2xml = function(s) {
var x, ie = /msie/i.test(navigator.userAgent);
try{
var p = ie? new Ac
> xml = $(' {xml goes here} ');
>
added "xml = $(xml);" (see below)
still not working on IE7
var xml = ""
+ ""
+ "Hello"
+ "jQuery"
+ ""
+ "";
xml = $(xml);
alert($("Table1", xml).text());
> If that's the exact code you're using, then you should first convert the XML
> string into a jQuery object, like this...
>
> xml = $(' {xml goes here} ');
>
Diego, John
I changed my snippet as follows and it is still works only in FF, not
in IE7
var xml = ""
+ ""
+
Hi Tzury,
If that's the exact code you're using, then you should first convert the XML
string into a jQuery object, like this...
xml = $(' {xml goes here} ');
Hope that helps.
Diego A.
2008/7/15 Tzury <[EMAIL PROTECTED]>:
>
>
>
> On Jul 15, 5:53 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> >
On Jul 15, 5:53 pm, "John Resig" <[EMAIL PROTECTED]> wrote:
> Hey - can you provide an example site? It's unclear what might be
> wrong without seeing a response from the server. What is the value of
> xml when it comes back?
>
> --John
>
below is a snippet which can be tested in FF and IE
Hey - can you provide an example site? It's unclear what might be
wrong without seeing a response from the server. What is the value of
xml when it comes back?
--John
On Tue, Jul 15, 2008 at 9:34 AM, Tzury <[EMAIL PROTECTED]> wrote:
>
> The following example (from the jquery-doc-site) works fin
Hi Tzury,
I've just released a plugin to work around XML parsing issues by converting
it to JSON. Tested in IE6/7, FF2/3. You might find it useful.
XML 2 JSON Plugin
http://www.fyneworks.com/jquery/xml-to-json/
Cheers,
Diego A.
2008/7/15 Tzury <[EMAIL PROTECTED]>:
>
> the following example (t
10 matches
Mail list logo