On Jan 20, 2008 11:03 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> In my limited beginner's understanding of REST interfaces and HTML,
> I'm told it is proper to *pull* data from server with HTML GETs
> and to *push* data to server with HTML POSTs....is that right?
>
> If yes, then how come MochiKit's doXHR function defaults to *GET* mode
> since it
> *pushes* data to server?  Shouldn't doXHR default to POST to be prim
> and
> proper?  :)

It only pushes data to the server if you give it data to push. There
are plenty of use cases for just requesting data from the server, it
might even be static data that should be cached (which covers 100% of
the use cases I had when I was originally writing MochiKit).

-bob

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to