Dojo Blogs

19
May

Handling errors appropriately with Dojo Grids and Dojo Data Stores.

This is a pretty technical blog entry today, but I thought I'd post it seeing as how difficult it has been for me to find any reliable information on how all this works.

Dojo is an awesome Javascript framework, and their Grids are world-class examples of how to manage large volumes of data through a consistent, reliable and familiar interface. It supports all sorts of features from row sorting, paging and in-line editing through to custom formatters. Today's blog is about in-line editing, and how to handle errors.

12
Jan

Zend Framework, lazy-loaded Dojo Tabs and Javascript

Here's a quick tip that might save a few of you some time out there. When lazy loading tabs in Dojo + Zend Framework, because the content is retrieved via AJAX, you aren't able to just embed Javascript in the page you're fetching and have it work, nor can you apply any onLoad functions at application start, because the pages have not been instantiated. The way around this is to use the onLoad function of the contentPane view helper:


<?php ( $this->contentPane(
'tab-name',
'',
array('title' => 'Demonstration Tab',
'class' => 'tab',
'href' => $this->url(