Trigger window.resize event via javascript

2016-06-15 Use below code to trigger window.resize event. This can be helpful to refresh some libraries like Chartist.js when a panel  or a div the control is contained in is expanded. P.S. The above method isn’t supported by Internet explorer (failed on IE 11), therefore use below method for wider browser support.

Browser and length independent CSV download code

17-09-2015 Downloading a csv string as a file on browser can be troublesome. Some techniques don’t work for very long CSV strings and some techniques only work on some browsers. Below code is tested on Internet Explorer 11, Firefox 27.0.1, and Chrome 45.0.2454.93 m And you can extend the code (where it alerts user thatContinue reading “Browser and length independent CSV download code”

A Simple JavaScript To Get English Language Definition From A Dictionary

2009-05-19 English is not my first language so I use online dictionaries frequently as a part of my daily routine to clarify and learn unfamiliar words as I read through articles in the Internet. I have been using http://www.ditionary.com for a long time and I had the plan to make this work easy by creatingContinue reading “A Simple JavaScript To Get English Language Definition From A Dictionary”