Token Handling - Zend Framework - OAuth 2.0 - Google

Sample code to get a request token from Google through OAuth 2.0. if ($form->getElement('auth_code')->isValid($data['auth_code'])) { $client = new Zend_Http_Client($this->configs->oauth_uri,… more »

Zend Framework 1.11 - Rename Form Elements

Workaround $elements = $this->getElements(); foreach ($elements as $k => $v) { $v->setName($prefix.$k); $this->_elements[$prefix.$k] = $this->_elements[$k];… more »

dojo 1.6.1 Form.reset()

Code to clear a form without firing the onChange events on the inputs. Code/* frmDijit.reset() */                        dojo.query(… more »

dojo 1.1.1 to 1.6.1 Declarative Tag Update Script

This script performs the bulk of the upgrade translation to translate declarative tags from older versions of dojo up to the 2.0 format. The script was written to work with tags in Smarty templates, so it includes a little extra logic to avoid confus… more »

dojo - Distinguishing between onChange events

During an upgrade from dojo 1.1.1 to 1.6.1, I found that dijit.byId('someWidget').set('value','someNewValue'), was causing the onChange event to fire for the input. To prevent onChange from firing when the .set method is used, a third parameter prior… more »