Javascript

Adding HTML elements dynamically to a page

2009
11
Nov

So when I was sitting idle, moosa asked me how to add dynamic textboxes into a form without loosing values of the form values on the previous textboxes.

So I thought of documenting the method here just in case anyone of you might want this.

So we have a form with a text box as shown below :

:

The goal is to add a form as shown below, Clicking the Add More link will add more input boxes to the html form dynamically.

Read More

Optimize Javascript files with Google Closure compiler

2009
06
Nov

Google has released / open sourced one of its internal tools, the javascript closure compiler. The closure compiler is used to optimize javascript files. It works by analyzing the code and removing redundancies and shortening variable names.
This tool can be used to compress javascript files, (similar to the famous packer), results in lesser code to download, execute, obfuscation and faster user experience.

Read More

Syndicate content