Posts

java.lang.UnsupportedClassVersionError major.minor version 49.0

java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main (Unsupported major.minor version 49.0) Solution:-      If you are using 1.5 version of java so please update 1.6 version of java For Eclipse 3.1 setting. Right click on your project --> Popup window will be opend --> select java build path in left side navigation bar --> Click JRE System LIbrary --> edit button --> Choose Alternate JRE: and click on Installed JREs... button. --> new Popup will be opened --> Click JRE home directory: browse... button --> and select java 1.6.0 directory. --> Write JRE name --> Click Ok button. --> Select your new jre and click ok button. --> then Select Alternate JRE from drop down list. --> Click on Finish.

Check box validation in javascript

Check box validation : In java script for selectAll check box and deselect all check box. there are two functions for  selectAll check box and deselect all check box in java script. <HTML>  <HEAD>   <script>     function selectAllCheckBox(){         var len = document.testForm.chkb.length;         //alert(len);         for(var i=0; i<len; i++){             //alert(document.testForm.chkb[i].checked);             document.testForm.chkb[i].checked=true;         }     }     function deselectAllCheckBox(){         var len = document.testForm.chkb.length;         //alert(len);         for(var i=0; i...

DHTML text is written in JavaScript

DHTML text is written in JavaScript. <HTML>  <BODY>   <script type="text/javascript">     document.write("<b> --This DHTML text is written in JavaScript --- </b>");   </script>  </BODY> </HTML>

make drop down list in javascript example

Make dynamic drop down list in java script. <html> <head> <script> function makeDropDown(){     var formDiv = document.getElementById("div");     var selectTag=document.createElement("select");     selectTag.appendChild(getOption("First Value", "First Text"));     selectTag.appendChild(getOption("Second Value", "Second Text"));     formDiv.appendChild(selectTag); } function getOption(value, text){     var optionTag = document.createElement("option");     var text = document.createTextNode(text);     optionTag.setAttribute("value", value);     optionTag.appendChild(text);     return optionTag; } </script> </head> <body onload="makeDropDown()"> <div id="div"></div> </body> </html>

Drop Down List select box in javascript

Select index dropdown list in java script. Selected value in dropdown list and find all value from drop down list in javascript. <HTML>  <HEAD>   <script>     function findSelectedIndex(objList){         alert(objList.selectedIndex)     }     function findSelectedValue(objList){         alert(objList.value)     }     function findAllValues(objList){         var text = "";         for(var i=0; i<objList.length; i++){             text += objList[i].value+", ";         }         alert(text);     }   </script>  </HEAD>  <BODY>     <select id="list">     ...

Mobile No Validation javascript

How to validate mobile no in java script. <HTML> <head>     <script>     function ToCellValidate(objText)     {         if(objText.value!="")         {         if(objText.value.length < 9 || objText.value.length > 15 || objText.value.search(/[^0-9\-()+]/g) != -1 )         {         alert('Please enter valid mobile number');         objText.focus();         objText.value.value="";         return false;         }         else{         alert("valid mobile number");         return true;         }     ...

check valid URL for sitemaps in java code examples

How to check valid URL for sitemaps in java code, Examples private boolean isValidMyUrl(String input) {         Pattern p = Pattern.compile("[^A-Za-z0-9. ,@_$-]+");         Matcher m = p.matcher(input);         boolean result = m.find();         if (result) {             return false;         } else {             return true;         }     }

Recent Post

Recent Posts Widget