Archive for the 'web' Category
Prototype styled Google Analytics javascript snippet
Recently I’ve created a prototype styled javascript snippet to enable google analytics on one of my sites. Save this code in google.analytics.js file and include it from the head tag of the page just after including of the prototype.js:
gaTrackerId = ’ss-ddddddd-d’; // insert your tracker id here
document.observe(’dom:loaded’, function() {
var gaJsHost = (
(’https:’ == document.location.protocol)
? ‘https://ssl.’
: [...]
[ Back to top ]
Zend Framework vs. CakePHP, Symfony, Seagull, WACT, Prado, TRAX, eZ and CodeIgniter
In contraversal with what it might seem, I won’t compare features of the mentioned projects. For that purpose you may just read this nice article by Dennis Pallett.
Instead, I will share you what I learned with help of [in]famous Ohloh project - the codebase, activity and participants dynamics comparison of the mentioned projects.
Well, I’ll not make any conclusions - just [...]
[ Back to top ]
Integration of Zend Framework and Prototype Ajax
Last two days I’ve worked on implementing an example of integration of Zend Framework’s MVC and Prototype’s Ajax for HTML Forms submission and validation.
The solution consist of 2 parts:
1. There is a new View Helper to create an Ajax-enabled form.
This part mostly consists of JavaScript code, which alters default HTML Form behavior to submit the [...]
[ Back to top ]
Debug PHP and JavaScript simultaneously
Yesterday me and Roy had a brainstorm session on future Zend Neon (Commercial version of PDT) and ATF integration and “occidently” found a way of debugging of an URL with both Zend’s PHPand Mozilla’s JavaScript debuggers in one session.
Surprise! It’s possible with neither patching nor hacking. I’m not going to show the exact steps of [...]
[ Back to top ]

