June 18, 2013 asvignesh

There are lots of way to check whether the var is array or not but the easiest way is using instanceof Array Example 1 : var myName=[“Vignesh”,”A”,”Sathiyanantham”]; if (myName instanceof Array) { alert(myName is Array!’); } else { alert(‘myName Not an array’); } This will return you myName is Array! Example 2: var myName=”Vignesh A Sathiyanantham”; if (myName instanceof Array) { alert(myName is Array!’); } else { alert(‘myName Not an array’); } This will return you myName Not an Array! You can write a function to make it reusable function ismyvararray(myVar) {  return (myVar instanceof Array); } This will return…

Software developer experience in building storage management and Data protection software for the Private and public cloud.

Disclaimer :

This is a personal weblog. The opinions expressed here represent my own and not those of my employer. my thoughts and opinions change from time to time… This weblog is intended to provide a semi-permanent point in time snapshot and manifestation of the various memes running around my brain, and as such any thoughts and opinions expressed within out-of-date posts may not the same, nor even similar, to those I may hold today.

April 14, 2013 asvignesh

We can submit the html form page by pressing submit button and the shortcut way is pressing enter ( return ) button on keyboard after filling up the form Here is the post to explain how to submit a form by pressing enter button using jQuery Generally, a form is submitted when the user presses a submit button. However, sometimes, you may need to submit the form when the user press return key ( enter key) Here is the code to submit the form by pressing the enter key <html> <head> https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js <script> function formSubmit() { document.getElementById(“frm1”).submit(); } $(‘#submit_form’).keypress(function…

Software developer experience in building storage management and Data protection software for the Private and public cloud.

Disclaimer :

This is a personal weblog. The opinions expressed here represent my own and not those of my employer. my thoughts and opinions change from time to time… This weblog is intended to provide a semi-permanent point in time snapshot and manifestation of the various memes running around my brain, and as such any thoughts and opinions expressed within out-of-date posts may not the same, nor even similar, to those I may hold today.