Re: How to use dojo toolkit in django?

2008-07-25 Thread Wolfram Kriesing

Hi,

I remembered seeing this topic mentioned here,
and now there is a solution to it. http://code.google.com/p/dojango/

A quick summary of the main features of dojango:

* a reusable django app that provides dojo
* easy dojo setup inside django
* build an optimized dojo
* some helper functions, i.e. JSON conversion
* switch easily between different dojo versions.



cu

Wolfram



On Mon, Apr 14, 2008 at 9:13 AM, Duke <[EMAIL PROTECTED]> wrote:
>
> How to use dojo toolkit in django project?
> Where to store the dojo toolkit in the project and how to use them in
> the html page?
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How to use dojo toolkit in django?

2008-04-29 Thread [EMAIL PROTECTED]

I've also been looking at Dojo lately. Of the javascript frameworks
I've looked over, it appears to have the best combination of
abstraction and features (feel free to offer alternatives). I've tried
to get the dojox.Grid thing working but have so far failed to do so.
Serializing a queryset into JSON doesn't appear to yield a data model
structure that works with the Dojo data stores. So either I'm missing
something or I'm not describing the structure correctly when I set up
the system in javascript.

Has anyone gotten the grid working? If so, would you mind sharing an
example of the javascript model structure and/or the view that
serializes JSON? I'd like to get this thing moving if possible, as its
lazy scrolling seems like it would beat the pants off old-fashioned
pagination.

Thanks,
John

On Apr 14, 5:24 am, bobhaugen <[EMAIL PROTECTED]> wrote:
> On Mon, 14 Apr 2008 00:13:35 -0700 (PDT)
>
> Duke <[EMAIL PROTECTED]> wrote:
> > Where to store thedojotoolkit in the project
>
> You can avoid all of the static files issues withdojoby serving it
> from AOL, like so:
>  src="http://o.aolcdn.com/dojo/1.1.0/dojo/dojo.xd.js";>
>
> I'm doing it that way, both in development and production. So far, no
> hiccups, it's faster than havingDjangoserve it, and does not burden
> my host.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How to use dojo toolkit in django?

2008-04-14 Thread bobhaugen

On Mon, 14 Apr 2008 00:13:35 -0700 (PDT)
Duke <[EMAIL PROTECTED]> wrote:
> Where to store the dojo toolkit in the project

You can avoid all of the static files issues with dojo by serving it
from AOL, like so:
http://o.aolcdn.com/dojo/1.1.0/
dojo/dojo.xd.js">

I'm doing it that way, both in development and production. So far, no
hiccups, it's faster than having Django serve it, and does not burden
my host.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How to use dojo toolkit in django?

2008-04-14 Thread Etienne Robillard

On Mon, 14 Apr 2008 00:13:35 -0700 (PDT)
Duke <[EMAIL PROTECTED]> wrote:

> 
> How to use dojo toolkit in django project?
> Where to store the dojo toolkit in the project and how to use them in
> the html page?
> 

http://code.djangoproject.com/wiki/AJAX/Dojo/RefactoredFormSubmit

Feel free to review/extend this example too, as it's for me a good
reference for building UIs specifically with Dojo, Ajax and Django.

Regards,

Etienne


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How to use dojo toolkit in django?

2008-04-14 Thread Kenneth Gonsalves


On 14-Apr-08, at 2:02 PM, Kenneth Gonsalves wrote:

>> How to use dojo toolkit in django project?
>> Where to store the dojo toolkit in the project and how to use them in
>> the html page?
>
> http://www.djangoproject.com/documentation/serialization/

sorry - that is for ajax. Use dojo in django precisely as you use  
javascript in a normal html page. Put a block in the head section of  
your base.html where you can load the dojo libraries - either in  
base.html itself or in the required page.

in base.html:

{% block javascripthere %}
{% endblock %}


and in the template:
{% block javascripthere %}

load dojo libraries here
{% endblock %}

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/code/




--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How to use dojo toolkit in django?

2008-04-14 Thread James Bennett

On Mon, Apr 14, 2008 at 2:13 AM, Duke <[EMAIL PROTECTED]> wrote:
>  Where to store the dojo toolkit in the project

The same place you put all other CSS stylesheets, JavaScript, images
and other static files. Similarly, they will be served the same way.
There is specific documentation on how to handle the serving of static
files, and you probably want to start by reading that.

> and how to use them in
>  the html page?

The same way you use any other JavaScript in any other web page you
have ever built.



-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How to use dojo toolkit in django?

2008-04-14 Thread Kenneth Gonsalves


On 14-Apr-08, at 12:43 PM, Duke wrote:

> How to use dojo toolkit in django project?
> Where to store the dojo toolkit in the project and how to use them in
> the html page?

http://www.djangoproject.com/documentation/serialization/

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/code/




--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---