I tried that but IE still does not work. An other ideas? Thanks.

Now one more question, after

On Mar 12, 4:57 am, Paul Hutson <hutsonphu...@googlemail.com> wrote:
> Ah ha - the IE nasty problem, I solved it like this :
>
> On Ajax Success :
>         var xml;
>         if($.browser.msie){
>                 xml = new ActiveXObject( 'Microsoft.XMLDOM');
>                 xml.async = false;
>                 xml.loadXML( xmlData);
>         }else{
>                 xml = xmlData;
>         };
>
> So, essentially, I'm allowing IE to process the XML like it wants to
> and *every other browser in the entire world* to process it in a
> normal way.
>
> Putting it in to your code :
>
>         $(document).ready(function() {
>                 $.get("films.xml", { name: "yyy" },  function(xml) {
>                         var theXML;
>                         if($.browser.msie){
>                                 theXML = new ActiveXObject( 
> 'Microsoft.XMLDOM');
>                                 theXML.async = false;
>                                 theXML.loadXML( xmlData);
>                         }else{
>                                 theXML = xmlData;
>                         };
>                         var theName=$(theXML).find("name:contains('x')");
>                         alert(theName.text());
>                 });
>         });
>
> HTHs,
> Paul

Reply via email to