JQ grid client side sorting

Here’s some guide-lines to follow

http://stackoverflow.com/questions/12513004/why-is-gridviewtrue-used-for-and-what-does-it-mean

http://stackoverflow.com/questions/8118816/default-sorting-of-jqgrid-on-particular-field-when-grid-loads

http://stackoverflow.com/questions/13677438/jqgrid-client-side-sorting-desc-asc

http://stackoverflow.com/questions/4449317/the-afterinsertrow-functionids-method-is-not-executing-when-i-use-gridviewt

Editor in your Web Browser

Editor in your web browser that holds up what ever you have written in the past even if your browser is closed. Works smoothly in Firefox 18.0.2

Here’s the code

<html>
<head>
<css if you want for the text area>
</head>
<body>
<div id=”result”></div>
<textarea id=”main” x=11 rows=”10″ cols=”50″ onkeyup=”displayResult();”>
</textarea>
<script>
if(typeof(Storage)!==”undefined”)
{

document.getElementById(“main”).value = localStorage.scratchPad;
}
else
{
document.getElementById(“result”).innerHTML=”Sorry, your browser does not support web storage…”;
}

</script>

<script>
function displayResult(){
if(typeof(Storage)!==”undefined”)
{

localStorage.scratchPad = document.getElementById(“main”).value;

}
else
{
document.getElementById(“result”).innerHTML=”Sorry, your browser does not support web storage…”;
}
}
</script>
</body>
</html>

Creating Javadoc in Eclipse

How to generate Javadoc with Eclipse

1.Select the project.

2.Click on Project -> Generate Javadoc

3.In the “Javadoc command” field – browse to find javadoc.exe

It should be something like

  • C:\Java\jdk1.6.0\bin\javadoc.exe
  • To generalize on computers it would be <path_to_jdk_directory>\bin\javadoc.exe

Browse to bin folder to select javadoc.exe

4. Select the destination folder where you want to create the javadocs

Select the destination for the javadocs

5. Click finish.

6. The index.html in the destination folder will give you the javadocs