> That's interesting about Dojo.  What other transport methods does it
> support?  You have to keep in mind though, that Cake is oriented
> towards browser-based applications, which automatically constrains your
> thinking in many respects, one of which is the use of XHR as the
> transport mechanism of choice.

There are two issues here I think - target environments, and
supported transport methods. Dojo is massive, and covers a lot of
bases, which makes it complex learn to use.

 Regarding supported transport methods,  from one of the articles on
the Dojo site... (http://dojotoolkit.org/intro_to_dojo_io.html):

"dojo.io.bind() is a generic asynchronous request API that wraps
multiple transport layers (queues of iframes, XMLHTTP, mod_pubsub,
LivePage, etc.). Dojo attempts to pick the best available transport
for the request at hand..."

So Dojo can load js scripts on the fly, allow for file uploads (via
iframe) and do cross domain transports (xmlhttp security by design
won't allow xdomain or file uploads)

As for target environments, from what I understand,  the aim with Dojo
is to allow  run in different target environents in addition to the
browser. SVG, Rhino get specific mentions in the docs, but looking at
the source there are hostenv files for others - spidermonkey,
dashboard (os x), jscript.. Javascript is everywhere on the desktop
really, literally with OS X widgets, and in the Flash Authoring
Environment even has a Javascript API for automating tasks and
customising the IDE.

But as with Cake,  I think the browser is where it's all really happening with
Dojo.... and the methods offered by Dojo to deal with the browser
based apps and tasks are awesome. The more I think about it the more I
think we could do with a DojoHelper...

-ad

On 06/07/06, nate <[EMAIL PROTECTED]> wrote:
>
> > A good javascript lib would give access to the
> > httpRequest.setRequestHeader() function as part of the standard
> > methods. Dojo and YUI certainly do. I'm not sure how this affects this
> > discussion, but the developers of Dojo seem to be very keen not to
> > lock their I/O into any particular transport  - browser based
> > httpRequest is just one that Dojo supports. Yui is much more browser
> > oriented.
>
> That's interesting about Dojo.  What other transport methods does it
> support?  You have to keep in mind though, that Cake is oriented
> towards browser-based applications, which automatically constrains your
> thinking in many respects, one of which is the use of XHR as the
> transport mechanism of choice.
>
> > And conventions are hard to guess.  In Cake I'm discovering new ones
> > every day that aren't  mentioned in the documentation. Maybe the page
> > in the manual dealing with conventions
> > (http://manual.cakephp.org/chapter/22) will grow to be more detailed
> > through our contibutions.
>
> Yes, sometimes they are not immediately obvious.  If you find something
> that you think should be documented, but you can't find it in the
> manual, by all means, open a ticket (trac.cakephp.org).  We already
> have an impressive list of doc tickets going ;-)
>
>
> >
>


-- 
- - - - - - - -
 a d m a t a z
+27 21 465 1500
+27 84 368 8962
www.admataz.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to