Archive for the 'prototype' 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 ]
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 ]

