Tags

In some cases, you may need to know for debugging purposes from where a specific class is loaded. You may need to know which jar is containing a specific class. Thanks to the ProtectionDomain, you can get this information. Read More ...

You may need to detect if the user is leaving your web page for displaying a warning message to the user mentioning that (s)he may not leave the page and the form is containing data filled by him/her. To be able to detect this event in JavaScript, you need to deal with the "onbeforeunload" event. The following example explains the idea: Read more ...

"Ajax status is zero" is one of the hardest errors to debug especially when the Ajax readyState is 4. This post illustrates what is meant by Ajax status zero and proposes a way to solve it:
http://www.technicaladvices.com/2012/03/14/ajax-status-zero-resolution/ .

JsTestDriver is one of the most powerful JavaScript unit testing tools. I wrote an article in developerWorks about efficient JavaScript unit testing using JsTestDriver, please read first it before reading this post. In this post, I will show you how to generate test coverage reports using the JsTestDriver. First of all, Let's understand what is meant by "Test Coverage". Read more ...

I published an article about how to create custom Dojo components in Wazi. This article shows you how to create a custom Dojo component from scratch. It illustrates very important concepts like the dojo attach point, the widget structure, and the widget template. I wish you will enjoy this article: http://olex.openlogic.com/wazi/2012/how-to-create-a-custom-dojo-component/ .

One of the most useful advantages of the JSON format is that it is browser friendly. You donot need to write complicated code for navigating or iterating over a JSON structure. In this post, I will show you how to iterate over a JSON object: http://www.technicaladvices.com/2012/02/29/iterate-over-a-json-object/