>From your header it looks like HTML and XML are the only things that
will get parsed correctly. You haven't mentioned what type of
container your data is in. If it's XML then it should be working if
it's JSON it will not work on Firefox and other browsers. the Accept
header should have in it application/json to be industry compliant,
but then IE will break because no version of IE so far is industry
compliant. IFRAMEs will be your only solution to be cross browser
compliant.

The client will also need to send the proper mimetype for the server
to get it right.

~Carl

On Apr 24, 9:25 pm, Daniel França <daniel.fra...@gmail.com> wrote:
> Here's the header in request as seen from Firebug:
> Request Headers
> Hostlocalhost:8000User-Agent Mozilla/5.0 (X11; Linux i686 on x86_64; rv:2.0)
> Gecko/20100101 Firefox/4.0Accept
> text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language en-us,en;q=0.5Accept-Encodinggzip, deflate Accept-Charset
> ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive115Connection 
> keep-aliveRefererhttp://localhost:8000/home2
> Cookie__utma=111872281.1574255346.1303689518.1303691822.1303693660.3;
> __utmc=111872281;
> __utmz=111872281.1303689518.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
> sessionid=498174cb74222f0570fead661c787935; __utmb=111872281.5.10.1303693660
> 2011/4/24 Daniel França <daniel.fra...@gmail.com>
>
> > There are some django middleware classes to test the browser compatibility,
> > can it be a problem?
>
> > There's no cross domain call, it's all about my domain =/
> > It's necessary to set the mimetype in a get/load method?
> > What else information can I post here to help?
>
> > On Sun, Apr 24, 2011 at 2:44 AM, Masklinn <maskl...@masklinn.net> wrote:
>
> >> On 24 avr. 2011, at 04:38, Daniel França <daniel.fra...@gmail.com> wrote:
>
> >> Hi all,
> >> I was using JQuery to retrieve some data using AJAX and Django...
> >> at my django view code I wrote a verification to check if it's an ajax
> >> request:
> >> *if request.is_ajax():*
> >> *   #Ajax handler*
> >> *else:*
> >> *  #Not Ajax handler*
>
> >> and do the properly handler, and here's my Jquery script:
> >> $('#id_show_updates').load("/profiles/get_updates/"+
> >> document.getElementById('last_update').innerHTML);
>
> >> It's working like a charm in Chrome and Opera... but at Firefox django
> >> thinks it's not Ajax and  =/ Anyone know someway to solve that?
>
> >> Best Regards,
> >> Daniel França
>
> >> Would you per chance have some kind of redirection (any redirection) per
> >> chance?
>
> >> Firefox will not forward any explicitly set header (including Ajax ones)
> >> across redirections.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Django users" group.
> >> To post to this group, send email to django-users@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> django-users+unsubscr...@googlegroups.com.
> >> For more options, visit this group at
> >>http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to