Category Archives: javascript

Internet Explorer (IE) friendly table DOM manipulation

Occasionaly we can manipulate HTML DOM easily by accessing the innerHTML of an element. In IE however, the following elements’ innerHTML are read only: COL, COLGROUP, FRAMESET, HEAD, HTML, STYLE, TABLE, TBODY, TFOOT, THEAD, TITLE, TR. This code will fail … Continue reading

Posted in javascript, Web Development | Leave a comment

Extjs – Ext.apply

1234567891011121314151617181920console.clear(); var a = {     abc : 1,     def : 2 }; var b = {     abc : 1.1,     def : 2.2 }; var c = Ext.apply( a , b ); //Ext.apply … Continue reading

Posted in Ext Js, javascript, Web Development | Leave a comment

JSON Jumpstart

1234567891011121314151617181920212223242526272829303132333435363738394041424344/**  * In JSON curly braket is a sign of a new object ({ or })  * Any variable inside the object, also known as object’s attribute, is accessible using a period sign (.) object.attribute  * or you can also … Continue reading

Posted in javascript, Web Development | Leave a comment

Extending an Existing Javascript Function

Extending an existing javascript function This is how you extend an existing javascript function. Assuming that you want to preserve the existing function and the “added algorithm” is somewhat only needed to be executed based on a certain environment only. … Continue reading

Posted in javascript, Web Development | Leave a comment

Super Powerful Debugging Function in Javascript

Super powerful debugging function in javascript. This function will output your variable in question to firebug console or html page. With this function you can debug anything from Object, array, string, integer, etc. It is also recursive safe. 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117/**  * … Continue reading

Posted in javascript, Web Development | Leave a comment