[jQuery] Re: yet again XML+jQuery+IE7

2008-07-17 Thread Diego A.
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

[jQuery] Re: yet again XML+jQuery+IE7

2008-07-16 Thread Tzury
> 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

[jQuery] Re: yet again XML+jQuery+IE7

2008-07-16 Thread koko
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

[jQuery] Re: yet again XML+jQuery+IE7

2008-07-16 Thread Diego A.
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

[jQuery] Re: yet again XML+jQuery+IE7

2008-07-16 Thread Tzury
> xml = $(' {xml goes here} '); > added "xml = $(xml);" (see below) still not working on IE7 var xml = "" + "" + "Hello" + "jQuery" + "" + ""; xml = $(xml); alert($("Table1", xml).text());

[jQuery] Re: yet again XML+jQuery+IE7

2008-07-16 Thread 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} '); > Diego, John I changed my snippet as follows and it is still works only in FF, not in IE7 var xml = "" + "" +

[jQuery] Re: yet again XML+jQuery+IE7

2008-07-15 Thread Diego A.
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: > >

[jQuery] Re: yet again XML+jQuery+IE7

2008-07-15 Thread Tzury
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

[jQuery] Re: yet again XML+jQuery+IE7

2008-07-15 Thread John Resig
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

[jQuery] Re: yet again XML+jQuery+IE7

2008-07-15 Thread Diego A.
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