Hi
I did a bit step forward...

calling

$.post(... , ..., ..., "xml")  //specify xml as last param

with FF i get an Obj Document that i can manage directly using

$(xmlDoc)

so no try/catch block to check for DomParser o ActiveX conmponent.

Unfortunatly this is not working with IE even if using the $.post as a
$.ajax wrapper seems a correct approach (debugging with firebug i see
that the last thing he does is building an ajax call using the $.ajax
function).

am I doing something wrong?
why

  $.post(
        path,
        serialized param,
        callback,
        "xml"
    );

only works with FF?

thx


On 3 Giu, 12:27, AlePetrucci <[EMAIL PROTECTED]> wrote:
> Hallo,
> I'm used to check the broser version in my callback function (when
> managing the xml from the response), something like:
>
> try{
> // for Ie
>     xmlDoc=new ActiveXObject("Microsoft.XMLDOM");}catch{
>
> //for FF
>     xmlDOc=DomParser()
>
> (code is not complete :))
>
> is there any way to make this transparent with jQuery?
> something like
>
> xmlDoc = $.takeXmlFromResponseWhateverBrowser bla bla
>
> i need this because my boss said "what if i disable the ActiveX
> component in IE?"...obviusly the Ajax thing stops working....
>
> any suggstion?
>
> ps: sry for my english

Reply via email to