I do not know about Dojo. I have been using flot instead. perhaps this
helps

{{import gluon.contrib.simplejson as sj}}
{{=sj.dumps(data)}}

data will be printed in the page in json format. If your view/template
includes javascript code you can put the above statements in the js
itself.

Perhaps other users can help more.

Massimo

On Dec 15, 11:31 pm, aus <[email protected]> wrote:
> Hi everybody,
>
> although I have some experience with programming, javascript/AJAX is
> completely new to me. I'm very happy with web2py and I'm trying now to
> pass arrays and possibly more structured data to Dojox to plot series
> computed in python using Dojox's charts. How can I do that? I somehow
> cannot cross the wall between the templace code and the javascript
> code... Is JSON a possible solution? Could someone provide an example?
>
> thank you!
>
> Cheers,
> aus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to