Home > Tag Archives: javascript (page 3)

Tag Archives: javascript

Using strict mode to write secure Javascript

javascript

Using strict mode to write secure Javascript We know that doing read operation from undeclared variable gives error in Javascript, whereas doing write operation to an undeclared variable is fine and the variable gets the global scope (I will discuss this in a different post as to why this happens in Javascript). Now, lets take stock of a situation in ... Read More »

Javascript Browser back button handling

javascript

Javascript Browser back button handling In Javascript getting handle of browser back button event is complex. There are many plugIns available to satisfy this complex need. However, I cam across a solution which to some extent can resolve this issue. if (window.history && window.history.pushState) { if(location.hash.split("#")[1]!='search'){ window.history.pushState('forward', null, '#search'); } } This piece of code will first do a forward ... Read More »

Direct Web Remoting

DWR is Open Source, available under the Apache Software License v2. DWR is a Java library that enables Java on the server and JavaScript in a browser to interact and call each other as simply as possible. DWR will generate the JavaScript to allow web browsers to securely call into Java code almost as if it was running locally. It ... Read More »