[jQuery] Re: problem with jquery selector in IE

2008-11-03 Thread glowbal

Thanks for the quick response.  Too bad the
Firefox behavior isn't what is supposed
to happen...


[jQuery] problem with jquery selector in IE

2008-11-02 Thread glowbal

Hi,

I have an jquery-ajax-enabled javascript script that runs just fine in
FireFox.

However, in IE 6, my script is failing.

My ajax request returns the following string and passes it to a
function to be processed.  The string returned is:

?xml version=\1.0\?
response
   urlsome valid url here/url
/response

This string is being constructed and returned properly to my jquery-
enabled
javascript.  I pass it to a handler function as an argument called
xml.
(This string displays properly in alert boxes called from within the
handler function.)

Inside the handler function, I get at the url with the following
jquery code:

var result = $(url, xml).text();

In Firefox, this works just fine and assigns the text of the url to be
the value of
the variable result as desired.

In IE6, the variable result does not get assigned the text inside the
url/url
tags as expected.

Does anyone know about this bug and how to fix it in IE?

Thanks in advance for any help with this seemingly basic problem.

P.S. Aside:  I will also offer up this tidbit.  In my version of IE6,
I cannot even view
the Main Page of the Documentation for www.jquery.com properly.  In
IE6
(slightly different installations of IE6 on 3 different computers) the
contents of the
Main Page for Documentation on the jquery site are blank.


[jQuery] Re: problem with jquery selector in IE

2008-11-02 Thread glowbal

To be more explicit, here is the relevant code:

function displayURL(xml) {
try {
alert(xml);
var result = $(url, xml).text();
alert(result);
}
catch (ex) {
alert(ex);
}
}

In the above code the alert(xml) call shows
the string described in my previous post.  The xml
string is being passed in correctly.

However, the alert(result) call shows that the result
variable is empty, even after the assignment.

In addition, IE7 has this same problem.  (I
originally noticed this problem in IE6.)

In Firefox, everthing works fine.  The alert(result)
call shows that result is assigned the text
between the url/url tags as expected.

Again, any help with this problem is greatly
appreciated.