-- forst <[email protected]> wrote
(on Friday, 06 November 2009, 01:26 PM -0800):
> I'm trying to create a web page using a MVC model (Zend) and some of
> Dojo/Dijit 's features. My layout is pretty heavy to load each time so I
> would know if possible to only load each view content ; when a link is
> clicked ; into a dojox ContentPane ?
You have two options.
First, Dojo offers facilities for creating custom builds. A build
inters all Dojo files into a single file, and does a variety of
compression mechanisms on it (removes whitespace and comments, does some
heuristics on variable names, etc.). This can have a *huge* impact on
your application. However, it's only recommended for production, as
often during development you will benefit from the use-at-will nature of
Dojo. For more information on this, see this section of the manual:
http://framework.zend.com/manual/en/zend.dojo.build-layers.html
If you want to use XHR calls to populate dojo panes, it's entirely
possible. You will need to intercept links to instead perform XHR calls,
and then have the markup returned fill the content pane. There are
several examples of this in the Dojo documentation (particularly in the
ContentPane docs); I recommend going there for more information.
--
Matthew Weier O'Phinney
Project Lead | [email protected]
Zend Framework | http://framework.zend.com/