Re: Best JS Library compatibility for Django

2009-04-05 Thread Florian Strzelecki
Hm... look at this :
http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.is_ajax

HttpRequest.is_ajax()ΒΆ
New
in Django 1.0: *Please, see the release
notes*

Returns True if the request was made via an XMLHttpRequest, by checking the
HTTP_X_REQUESTED_WITH header for the string 'XMLHttpRequest'. The following
major JavaScript libraries all send this header:

   - jQuery
   - Dojo
   - MochiKit
   - MooTools
   - Prototype
   - YUI

If you write your own XMLHttpRequest call (on the browser side), you'll have
to set this header manually if you want is_ajax() to work.


2009/4/5 Alex Gaynor 

>
>
> On Sun, Apr 5, 2009 at 4:02 PM, lodmod@gmail.com  > wrote:
>
>>
>> What are some JS libraries that people have had good experience with
>> using in conjunction with Django webapps?
>>
>>
>>
> Django will work perfectly fine with any javascript library you choose to
> use.  That being said I personally like jQuery because of its simple API.
>
> Alex
>
> --
> "I disapprove of what you say, but I will defend to the death your right to
> say it." --Voltaire
> "The people's good is the highest law."--Cicero
>
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Best JS Library compatibility for Django

2009-04-05 Thread Alex Gaynor
On Sun, Apr 5, 2009 at 4:02 PM, lodmod@gmail.com
wrote:

>
> What are some JS libraries that people have had good experience with
> using in conjunction with Django webapps?
>
> >
>
Django will work perfectly fine with any javascript library you choose to
use.  That being said I personally like jQuery because of its simple API.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Best JS Library compatibility for Django

2009-04-05 Thread lodmod....@gmail.com

What are some JS libraries that people have had good experience with
using in conjunction with Django webapps?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---