List Info

Thread: Ajax and CP2




Ajax and CP2
user name
2006-12-15 14:51:05
Dear all,

I'm starting to learn something about  Ajax.
Can I use Ajax features in applications written in CP2?
There are some changes to do?

THanks
Enrico


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

Ajax and CP2
user name
2006-12-15 15:04:42
morellik wrote:
> Dear all,
> 
> I'm starting to learn something about  Ajax.
> Can I use Ajax features in applications written in CP2?

Yes.

> There are some changes to do?
> 

No.
No because Ajax is only HTTP calls made manually from some
Javascript
code. But in the end it's only HTTP and CherryPy doesn't
care where it
comes from.

However CherryPy does not provide some kind of framework
either to make
things a little friendlier. That is you will have to write
your own
Javascript code using a dedicated library such as MochiKit,
moo.tools or
JQuery, etc. You may want to look at TurboGears as well for
this.

Anyway Ajax does not change the way the HTTP exchange occur
and
therefore CherryPy does not have to behave differently.

- Sylvain

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

Ajax and CP2
user name
2006-12-15 15:09:19
On 12/15/06, morellik <enrico.morelligmail.com> wrote:
>
> Dear all,
>
> I'm starting to learn something about  Ajax.
> Can I use Ajax features in applications written in CP2?

Sure ... see the following link for a short example using CP
2.2 and
the XMLHTTPRequest object from Firefox.  If you are stuck
with CP 2.0,
the ideas should transfer fairly easily.

http:
//projects.dowski.com/view/cp22simple_ajax

Christian
http://www.dowski.com

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )