How to capture screen and webcam. How to create training videos #126

You can use tools such as Camtasia Studio. It is great. Can capture screen and from the webcam at the same time. Video editing features are also great. However, kinda pricy

Or use one of the following free tools.

From: http://sitestree.com/?p=5341
Categories:126
Tags:
Post Data:2007-12-03 13:05:20

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

JavaScript Short-notes: #13

  1. Ajax: An Overview
  2. Handling Checkbox arrays with Javascript::GetElementsByName:XHTML supported
  3. How to implement multiple tab webpages in Ajax and Javascript
  4. Javascript – Form validation
  5. JavaScript – Miscellaneous Validations
  6. Javascript by Example
  7. Javascript Codes
  8. JavaScript DOM: Must knowledge to understand Ajax
  9. JavaScript Frameworks
  10. JavaScript Miscellaneous Topics
  11. JavaScript: Pass by Value: Pass by Reference
  12. Random Notes on JavaScript/HTML
  13. Web page design standards
  14. What you really need to learn in Javascript?

From: http://sitestree.com/?p=5214
Categories:13
Tags:
Post Data:2008-09-06 21:39:43

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

JavaScript Miscellaneous Topics #13

JavaScript Miscellaneous Topics. Please check below.

  • Detect browser name and version:
                    var browser=navigator.appName;                var b_version=navigator.appVersion;           
  • Other browser related: navigator.appCodeName, navigator.platform, navigator.platform , navigator.cookieEnabled , navigator.userAgent, navigator.appMinorVersion, navigator.cpuClass, navigator.onLine, navigator.browserLanguage, navigator.systemLanguage, navigator.userLanguage
  • It’s a good idea to use escape function for setting cookie values (if more than one word). Also, use unescape function on the value when you want to use the value (situation dependent)
  • Animating a button: Place a button, onmouseover event replace the button image with a highlighted button image, on mouse out event – go back to the original button image
    hello
    Place the following code under script tag/in a javascript filefunction mouseOver(){ document.getElementById("b1").src ="b_blue.gif";}function mouseOut(){ document.getElementById("b1").src ="b_pink.gif";}
  • Example: Using Map, Area, and MouseOver Event
    target
  • Display an alert box after 5 seconds: var t=setTimeout(“alert(‘Time is over!’)”,5000);
  • Change document content after different time intervales
    var t1=setTimeout("document.getElementById('id1').value='2 seconds!'",2000);var t2=setTimeout("document.getElementById('id1').value='4 seconds!'",4000);var t3=setTimeout("document.getElementById('id1').value='6 seconds!'",6000);
  • Reset time out: t=setTimeout(“alert(‘Time is over!’)”,5000); clearTimeout(t);
  • Javascript Objects:
    Direct Instance: pObj=new Object();pObj.firstname="John";pObj.lastname="Doe";pObj.age=50;pObj.eyecolor="blue";document.write(pObj.firstname + " is " + pObj.age + " years 
  • Object template
    function car(brand,make,model){this.brand=brand;this.make=make;this.model=model;}var myCar=new car("Honda","2009","Accord");document.write(myCar.brand +  myCar.make + myCar.model );
  • JavaScript Error Handling: Try/Catch:
    try{}catch(err){}
  • JavaScript OnError Event: You can define a function in JavaScript code that will be always called if any javascript error.
    Under script tag/javascript file_onerror=handleErr;var alertTxt = "" function handleErr(msg, url, l){   alertTxt = "Error Information:.nn";   alertTxt += msg + "n";   alertTxt += url + "n";   alertTxt += l + "nn";   alertTxt += "Click OK to continue.nn";   alert(alertTxt);   return true;}
  • Javascript Advanced For loop:
    var x;var myFriends= new Array();myFriends[0] = "Shafiq";myFriends[1] = "Rafiq";myFriends[2] = "Abba";myFriends[3] = "Amma";for (x in myFriends){   document.write(myFriends[x] + "
    ");}
  • JavaScript Alert Box:alert(“Alert box with new line” + ‘n’ + “in a new line!”);
  • JavaScript Confirm Box:var con = confirm(“Press a button”);
  • JavaScript Prompt Box: Take Input from User:var name=prompt(“Please enter your name”,”Harry Potter”);
  • JavaScript Random Number: var rNumber = Math.random();
  • JavaScript Switch Statement:
    var d = new Date();theDay=d.getDay();switch (theDay){case 5:  document.write("Friday");  break;case 6:  document.write("Saturday");  break;case 0:  document.write("Sunday");  break;}
  • JavaScript Objects:Window, Navigator, Screen, History, Location
  • JavaScript Date Object : var myDate=new Date()
  • Some date object methods:
    Date(): Returns today’s date and time
    getDate(): Returns the day of the month from a Date object (from 1-31)
    getDay(): Returns the day of the week from a Date object (from 0-6)
    getFullYear(): Returns the year, as a four-digit number, from a Date object
    getHours(): Returns the hour of a Date object (from 0-23)
    getMilliseconds(): Returns the milliseconds of a Date object (from 0-999)
    getMinutes(): Returns the minutes of a Date object (from 0-59)
    getMonth(): Returns the month from a Date object (from 0-11)
    getSeconds(): Returns the seconds of a Date object (from 0-59)
    getTime(): Returns the number of milliseconds since midnight Jan 1, 1970
  • JavaScript Math Object Functions: You need to use the function as Math.max() format
    abs(x) , acos(x) , asin(x) , atan(x) , atan2(y,x), ceil(x), cos(x), exp(x) , floor(x), log(x), (base E) ,max(x,y) , min(x,y), pow(x,y) , random() , round(x), sin(x) , sqrt(x) , tan(x) , toSource(), valueOf()
  • JavaScript Regular Expression Example:
       var pattern = new RegExp("e","g");   do   {     result=pattern .exec("This is the line where the regular expression will be searched on");     document.write(result);   }   while (result!=null) 
  • JavaScript Global Objects: * Array, * Boolean, * Date, * Error, * EvalError, * Function, * Math, * Number, * Object, * RangeError, * ReferenceError, * RegExp, * String, * SyntaxError, * TypeError, * URIError
  • JavaScript Global Functions:# decodeURI,# decodeURIComponent,# encodeURI,# encodeURIComponent,# eval,# isFinite,# isNaN,# parseFloat,# parseInt
  • Javascript Statements:# block,# break,# const,# continue,# do…while,# export,# for,# for…in,# for each…in,# function,# if…else,# import,# label,# let,# return,# switch,# throw,# try…catch,# var,# while,# with
  • JavaScript Reference from Sun (version 1.3 recent JS version is 1.8, I guess): http://docs.sun.com/source/816-6408-10/
  • JavaScript Events :onAbort, onActivate, onAfterPrint, onAfterUpdate, onBeforeActivate, onBeforeCopy, onBeforeCut, onBeforeDeactivate, onBeforeEditFocus, onBeforePaste, onBeforePrint, onBeforeUnload, onBeforeUpdate, onBlur, onBounce, onCellChange, onChange, onClick, onContextMenu, onControlSelect, onCopy, onCut, onDataAvailable( 3 ) onDatasetChange, onDatasetComplete, onDblClick, onDeactivate, onDrag, onDragEnd, onDragEnter, onDragLeave, onDragOver, onDragStart, onDrop, onError, onErrorUpdate, onFilterChange, onFinish, onFocus, onFocusIn, onFocusOut, onHelp, onKeyDown, onKeyPress, onKeyUp, onLayoutComplete, onLoad, onLoseCapture, onMouseDown, onMouseEnter, onMouseLeave, onMouseMove, onMouseOut, onMouseOver, onMouseUp, onMouseWheel, onMove, onMoveEnd, onMoveStart, onPaste, onPropertyChange, onReadyStateChange, onReset, onResize, onResizeEnd, onResizeStart, onRowEnter, onRowExit, onRowsDelete, onRowsInserted, onScroll, onSelect, onSelectionChange, onSelectStart, onStart, onSubmit, onTimeError, onUnload,
  • JavaScript Methods:abs, acos, add namespaces, add, addBehavior, AddChannel,AddDesktopComponent, addElement, AddFavorite, addImport, addPageRule( 2 ) addReadRequest,addRule, alert, anchor, appendChild, appendData, applyElement,asin, assign, atan, atan2, attachEvent, AutoCompleteSaveForm,AutoScan, back, big, blink, blur, bold,ceil, charAt, charCodeAt, ChooseColorDlg, clear, clearAttributes,clearData, clearInterval, clearRequest, clearTimeout, click, cloneNode,close, collapse, compareEndPoints, componentFromPoint( 4 ) concat 1, concat 2,confirm, contains, cos, createAttribute, createCaption, createComment,createControlRange, createDocumentFragment, createElement, createEventObject, createPopup, createRange,createStyleSheet, createTextNode, createTextRange, createTFoot, createTHead, deleteCaption,deleteCell, deleteData, deleteRow, deleteTFoot, deleteTHead, detachEvent,doImport, doReadRequest, doScroll, dragDrop, duplicate, elementFromPoint,empty, escape( 2 ) eval( 2 ) execCommand, execScript, exp,findText, fireEvent, firstPage, floor, focus, fontColor,fontSize, forward, fromCharCode, getAdjacentText, getAttribute, getAttributeNode,getBookmark, getCharset, getClientRects, getData, getDay, getElementById,getElementsByName, getElementsByTagName, getExpression, getFullYear, getMilliseconds, getMonth,getNamedItem, getSeconds, getTime, getTimezoneOffset, getUTCDate, getUTCDay,getUTCHours, getUTCMilliseconds, getUTCMinutes, getUTCMonth, getUTCSeconds, getYear,hasChildNodes, hasFocus, hasOwnProperty, hide, ImportExportFavorites, indexOf,inRange, insertAdjacentElement, insertAdjacentText, insertBefore, insertCell, insertData,insertRow, isEqual, isNaN( 2 ) isPrototypeOf, IsSubscribed, italics,item, javaEnabled, join, lastIndexOf, lastPage, link,localeCompare, log, match, max, mergeAttributes, min,move, moveBy, moveEnd, moveRow, moveStart, moveTo,moveToBookmark, moveToElementText, moveToPoint, namedItem, namedRecordset, navigate,NavigateAndFind, nextPage, normalize, open, parentElement, parse,parseFloat( 2 ) parseInt( 2 ) pasteHTML, pop, pow, previousPage,print, prompt, queryCommandEnabled, queryCommandIndeterm, queryCommandState, queryCommandValue,recalc, refresh plugin, releaseCapture, remove, removeAttribute, removeAttributeNode,removeBehavior, removeChild, removeExpression, removeNode, removeRule, replace location,replace String, replaceChild, replaceData, replaceNode, reset, resizeBy,reverse, round, scroll, scrollBy, scrollIntoView, scrollTo,select form control, select, setActive, setAttributeNode, setCapture, setDate,setExpression, setFullYear, setHours, setMilliseconds, setMinutes, setMonth,setSeconds, setTime, setTimeout, setUTCDate, setUTCFullYear, setUTCHours,setUTCMilliseconds, setUTCMinutes, setUTCMonth, setUTCSeconds, setYear, shift,show, ShowBrowserUI, showHelp, showModalDialog, showModelessDialog, sin,slice, small, sort, splice, split, splitText,sqrt, start, stop, strike, sub, submit,substr, substring, substringData, sup, swapNode, tags,taintEnabled, tan, toExponential, toFixed, toGMTString, toLocaleLowerCase,toLocaleString, toLocaleUpperCase, toLowerCase, toPrecision, toSource, toString,toUpperCase, toUTCString, unescape( 2 ) unshift, urns, UTC,valueOf, write, writeln

From: http://sitestree.com/?p=5209
Categories:13
Tags:
Post Data:2011-05-25 12:23:37

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

Random Notes on JavaScript/HTML #13

This short-note will make sense, only if you already have some javascript sense. It can be used – just to refresh memory, once in a while. My JavaScript Experience? started on 2000, conducted a JavaScript Training Session on 2001, wrote a book for a training institute on JavaScript on 2001, using javascript always from that time – for this and that (personal and/or commercial, at home/work). Am I an expert? That’s an interesting question – “I am an expert” is a ridiculous statement to me (also in my culture to some extent), However, I can say – whatever I wanted to do or I was required to do in JavaScript – I could do – without much/any trouble, and without hanging in the forums for weeks waiting for someone else to reply to my silly questions. I also believe, whatever I will require to do in JavaScript, I will be able to do without any/much trouble.

  1. How to embed applet in javascript code:
    
    

    Parameter values are passed to the applet

  2. Possible attributes of applet tag: code, archive, name, height, width, mayscript
  3. Custom applet parameters are sent by using param tag
  4. You can use JSObject to pass information from Applet to javascript
    Java Side:JSObject jso = JSObject.getWindow(this);jso.eval("slider(" + jCSlider1.getValue() + ")");JavaScript Side:function slider(theSetting) {document.theForm.txtSetting.value = theSetting;}
  5. Linking to shockwave files:
    http://value1.dcr
  6. Linking to activex objects/controls:
    ActiveXcontrol.property="value";

    ActiveXcontrol.property=”value”; is to access activex objects’ properties

  7. Communicating with Java Server Pages:
    
    
  8. Difference Between CSS visibility and display Attributes: When visibility is false, the area is replaced with white spaces. When display attribute is false, the block is completely removed [no white space occulies the area]
  9. Within javascript, you can also use CSS properties. The syntax: document.elementname.style.propertyname
    Example:document.element1.style.visibility = 'hidden';
  10. Javascrip and CSS property mapping:
    CSS Property JavaScript Reference
    background background
    background-color backgroundColor
    background-image backgroundImage
    border border
    border-color borderColor
    border-style borderStyle
    color color
    display display
    font font
    font-family fontFamily
    font-size fontSize
    margin margin
    margin-bottom marginBottom
    margin-left marginLeft
    margin-right marginRight
    margin-top marginTop
    vertical-align verticalAlign
    visibility visibility
  11. Change element appearance dynamically:
    document.getElementById(“element id”).style.visibility = “property”;
  12. Change the background color of an element:
    document.getElementById(“element id”).style.background = color;
  13. Element content manipulation:

    sometext

    document.getElementById("para1").innerText = "newtext";document.getElementById("para1").innerText = "newtext";document.getElementById("para1").innerHTML = "newtext";
  14. Validating Forms in JavaScript using Custom objects: I think, an example will make sense
       &ltSCRIPT language="JavaScript"> var frmvalidator  = new Validator("myform"); frmvalidator.addValidation("FirstName","alpha");  frmvalidator.addValidation("FirstName","alpha"); frmvalidator.addValidation("FirstName","req","Please enter your First Name"); frmvalidator.addValidation("FirstName","maxlen=20","Max length for FirstName is 20");
  15. Create temporary cookie:
    document.cookie = "myCookie=gingerbread";cookieValue = escape("A B, C D");document.cookie = "myCookie=" + cookieValue;expDate = "Wed, 3 Mar 2000 14:41:00 UTC";document.cookie = "myCookie=sugardrop;" + "expires=" + expDate;
  16. To access all cookies in a loop: Get the cookie using var cookieString = document.cookie;, then split the cookiestring using split function at “;” like var cookieArray = cookiestring.split(“;”); Then you can use a loop to traverse the array and retrieve cookie name and value
  17. Deleting cookies:
    function del_cookie(name) {  document.cookie = name + '=; expires=Thu, 01-Jan-70 00:00:01 GMT;';} 
  18. Javascript Array Examples:
    thisArray = new Array();thisArray.Contents = "Alphabet";thisArray[0] = "A";thisArray[1] = "B";thisArray[2] = "C";-----garden["North Patch"] = "vegetables";garden["South Patch"] = "herbs";garden["West Border"] = "perennial flowers";-------processors = new Array("AMD","Intel","Cyrix","Motorola");
  19. Delete an array element:
    delete anArray[2]; it does not change the length of the array but anArray[2] will have no value and undefined
  20. Destroy an array:anArray.length = 0;anArray = null;
  21. Other Javascript articles What you really need to learn in Javascript?

    How to implement multiple tab webpages in Ajax and Javascript

    Handling Checkbox arrays with Javascript::GetElementsByName:XHTML supported

    Javascript by Example

    Javascript – Form validation

    JavaScript – Miscellaneous Validations

    Javascript Codes

    JavaScript Frameworks

    GWT: Google Web Toolkit

    JavaScript: Pass by Value: Pass by Reference

    Random Notes on JavaScript/HTML

    Random Notes on JavaScript/HTML

    JQuery

    Introduction to JQuery

    JavaScript DOM: Must knowledge to understand Ajax

    Ajax: An Overview

From: http://sitestree.com/?p=5208
Categories:13
Tags:
Post Data:2009-03-19 21:26:36

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

JavaScript: Pass by Value: Pass by Reference #13

From: http://sitestree.com/?p=5090
Categories:13
Tags:
Post Data:2007-11-21 23:00:16

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

GWT: Google Web Toolkit #13

From: http://sitestree.com/?p=5001
Categories:13
Tags:
Post Data:2009-07-13 16:16:55

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

JavaScript Frameworks #13

The following web-resources discuss some JavaScript Frameworks. Comparisons among the frameworks can also be found.

From: http://sitestree.com/?p=5000
Categories:13
Tags:
Post Data:2007-10-12 20:52:16

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

Introduction to JQuery #13

From: http://sitestree.com/?p=4948
Categories:13
Tags:
Post Data:2012-04-20 15:42:24

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

Javascript Codes #13

Javascript is a very powerfull scripting language for web-site development. Also, it is in much demand. In Europe Javascript experts earn 29-58 pound/hour [ref: Internet]

  var serviceInstancesArrAtLoad = Array();    var serviceInstancesArrAtSubmit = Array();  var tempArr=Array();            function validate_required(field,alerttxt)  {       with (field)        {           if (value==null||value=='')         {               alert(alerttxt);return false            }           else {return true}      }   }       function validateTicketCreateForm(thisform) {       with (thisform)     {           if (validate_required(type,'Type must be filled out!')==            false)          {type.focus();return false}                     if (validate_required(subject,'Subject must be filled out!')            ==false)            {subject.focus();return false}                              }   }   function validate_customer_create_form(thisform)    {       with (thisform)     {           if (validate_required(firstName,'First name must be filled          out!')==false)          {firstName.focus();return false}                        if (validate_required(lastName,'Last name must be filled            out!')==false)          {lastName.focus();return false}                     if (validate_required(phone,'Phone must be filled out!')==          false)          {phone.focus();return false}                    }   }           function validateUserCreateForm(thisform)   {       with (thisform)     {                                   if (validate_required(firstName,'First name must be filled          out!')==false)          {firstName.focus();return false}                        if (validate_required(lastName,'Last name must be filled            out!')==false)          {lastName.focus();return false}                     if (validate_required(shortName,'Short name must be filled          out!')==false)          {shortName.focus();return false}                        if (validate_required(username,'Username must be filled             out!')==false)          {username.focus();return false}                     /*          if (validate_required(password,'Password must be filled             out!')==false)          {password.focus();return false}                     if (password.value.length 0)            {               if (password.value.length < passwordLength.value)                {alert("Password must be at least "+              passwordLength.value +" char long");                  password.focus();return false}                              if (validate_required(password2,'Please re-enter               password!')==false)                {password2.focus();return false}            }                       if (password.value != password2.value)          {               alert("Password did not match");              password2.focus();              return false            }                   }   }       function validateInventoryCreateForm(thisform)  {       with (thisform)     {           if (validate_required(serial,'serial must be filled out!')            ==false)            {serial.focus();return false}                       if (validate_required(hardwareAddress,'Hardware Address            must be filled out!')==false)          {hardwareAddress.focus();return false}      }   }       function validateInventoryTypeCreateForm(thisform)  {       with (thisform)     {           if (validate_required(name,'Name must be filled out!')==          false)          {name.focus();return false}     }   }       function validateInventoryModelCreateForm(thisform) {       with (thisform)     {           if (validate_required(name,'Name must be filled out!')==          false)          {name.focus();return false}                     if (validate_required(manufacturerId,'Manufacturer must be          filled out!')==false)         {manufacturerId.focus();return false}                       if (validate_required(typeId,'Type must be filled out!')==            false)          {typeId.focus();return false}                               }   }       function validateInventoryManufacturerCreateForm(thisform)  {       with (thisform)     {           if (validate_required(name,'Name must be filled out!')==          false)          {name.focus();return false}     }   }           function validateServiceCreateForm(thisform)    {       with (thisform)     {           if (validate_required(name,'Name must be filled out!')==          false)          {name.focus();return false}                     if (validate_required(typeId,'Type must be filled out!')==            false)          {typeId.focus();return false}                               }   }       function validateHostingCreateForm(thisform)        {           with (thisform)         {               if (validate_required(serviceId,'Service must be               filled out!')==false)              {serviceId.focus();return false}                                if (validate_required(storageSpace,'Storage space              must be filled out!')==false)              {storageSpace.focus();return false}         }       }           function validateDomainName(strValue)   {       return /www.[a-z0-9_-]+.[a-z]{2, 3}/ig.test(strValue);              //var objRegExp  = /^w+([.-]?w+)*(.w{2,3})/;        //check for valid domain        //return objRegExp.test(strValue);  }       function validateDomainServiceCreateForm(thisform)  {       with (thisform)     {           if (validate_required(name,'Domain name must be filled out!')==false)         {name.focus();return false}                     /*if (validateDomainName(name.value)==false)            {alert('Please enter valid domain name');name.focus();            return false;}*/                        if (validate_required(registrar,'Registrar must be filled          out!')==false)         {registrar.focus();return false}                        if (validate_required(registrationTimestamp,'Registration          timestamp must be filled out!')==false)            {registrationTimestamp.focus();return false}                        if (validate_required(expiryTimestamp,'Expiry timestamp            must be filled out!')==false)          {expiryTimestamp.focus();return false}                      if (validate_required(username,'User name must be filled           out!')==false)         {username.focus();return false}                     if (validate_required(password,'Password must be filled            out!')==false)         {password.focus();return false}                     if (password.value.length passwordMaxLength.value)          {alert('Password must be '+ passwordMinLength.value+ '-'+           passwordMaxLength.value +' chars long');            password.focus();return false;}                     if (password.value != password2.value)          {alert('Password must match');password2.focus();            return false;}      }   }                   function validateCommunityCreateForm(thisform)  {       with (thisform)     {           if (validate_required(name,'Name must be filled out!')==            false)          {name.focus();return false}     }   }       function validatePostalCodeCreateForm(thisform) {       with (thisform)     {           if (validate_required(postalCode,'Postal code must be           filled out!')==false)           {postalCode.focus();return false}                       if (validate_required(communityId,'Community must be            filled out!')==false)           {communityId.focus();return false}      }   }       function validateStreetTypeCreateForm(thisform) {       with (thisform)     {           if (validate_required(name,'Name must be filled out!')==            false)          {name.focus();return false}     }   }       function validateStreetCreateForm(thisform) {       with (thisform)     {           if (validate_required(name,'Name must be filled out!')==            false)          {name.focus();return false}                     if (validate_required(typeId,'Type must be filled out!')==          false)          {typeId.focus();return false}                       if (validate_required(communityId,'Community must be filled             out!')==false)          {communityId.focus();return false}      }   }       function validateUnitCreateForm(thisform)   {       with (thisform)     {           if (validate_required(streetId,'Street must be filled out!')            ==false)            {streetId.focus();return false}                     if (validate_required(communityId,'Community must be filled             out!')==false)          {communityId.focus();return false}                      if (validate_required(number,'Number must be filled out!')==            false)          {number.focus();return false}                       if (validate_required(nodeId,'Node must be filled out!')==          false)          {nodeId.focus();return false}                   }   }       function validatePlantCreateForm(thisform)  {       with (thisform)     {           if (validate_required(name,'Name must be filled out!')==            false)          {name.focus();return false}     }   }       function validateCreateTicketCategoryForm(thisform) {       with (thisform)     {           if (validate_required(name,'Name must be filled out!')==            false)          {name.focus();return false}     }   }           function validateStartWorkOnTicketForm(thisform)    {       with (thisform)     {           if (validate_required(startTimestamp,'Start Timestamp must           be filled out!')==false)           {startTimestamp.focus();return false}       }   }       function validateTicketReportForm(thisform) {       with (thisform)     {           if (validate_required(date,'Date must be filled out!')==            false)          {date.focus();return false}     }   }           function validateCloseTicketForm(thisform)  {       with (thisform)     {           if (validate_required(date,'Date must be filled out!')==            false)          {date.focus();return false}                     if (validate_required(time,'Time must be filled out!')==            false)          {time.focus();return false}                 }   }   function validateCreateWorkOrder(thisform)  {       with (thisform)     {           if (validate_required(inventoryId,'Inventory must be filled             out!')==false)          {inventoryId.focus();return false}                      if (validate_required(assignedTo,'Assigned to must be           provided!')==false)         {assignedTo.focus();return false}                       if (validate_required(scheduledDate,'Scheduled date must            be provided!')==false)          {scheduledDate.focus();return false}                        if (validate_required(scheduledTime,'Scheduled time must            be provided!')==false)          {scheduledTime.focus();return false}                    }   }                   function addService(services,serviceId) {       for (var i = 0; i < services.length; i++)        {           if (services.options[i].selected)           {               serviceIdLength = serviceId.length++;               serviceId.options[serviceIdLength].text =                   services.options[i].text;               serviceId.options[serviceIdLength].value =                  services.options[i].value;                          }       }   }           function removeService(serviceId)   {       for (var i = 0; i < serviceId.length; i++)       {           if (serviceId.options[i].selected)          {                               serviceId.options[i].text = '';               serviceId.options[i].value = '';              serviceId.options[i].selected = false;              serviceId.options[i].remove();          }                   }           }       function validateAssignInventoryForm()  {               var serviceArr=document.getElementsByName("serviceArr[]");        length=serviceArr.length;       isAnySelected = false;              for (var i=0;i<length;i++)       {           if (serviceArr[i].checked == true)          {               isAnySelected=true;             i=length;           }       }                               var serviceRequested=new Array();       var inventoriesHavingSameService=new Array();       var servicesHavingSameInventory=new Array();        var isServiceRequested = 0;     for (var i=0;i 0)              isServiceRequested = 1;                      if (serviceArr[i].checked == true)          {              if (inventoriesHavingSameService[service] >= 0)               inventoriesHavingSameService[service]=inventoriesHavingSameService[service]+1;             else                 inventoriesHavingSameService[service]=1;                           if (servicesHavingSameInventory[inventory] > 0)               servicesHavingSameInventory[inventory]=servicesHavingSameInventory[inventory]+1;               else             servicesHavingSameInventory[inventory]=1;           }                               }           if (   (!isAnySelected) && (isServiceRequested) )       {           alert('Service & inventory requested. But no checkbox is selected');            return false;       }       else if (!isAnySelected)        {           var response = confirm('No checkbox is selected, do you want to proceed');          if (!response) return false;        }               var errMsg ='';             for (k=1;k= 0 )         {                   if ( (serviceRequested[k] != inventoriesHavingSameService[k])  )                {                   if (serviceRequested[k]>0)                       errMsg = errMsg + "Inventory is not                         checked properly for service " + k                      +", Requested:" + serviceRequested[k] +",                       Assigned:" + inventoriesHavingSameService[k] + "n";                 else if (serviceRequested[k]==0 && inventoriesHavingSameService[k]>0)                        errMsg = errMsg + "Inventory is not                         checked properly for service " + k                      +", Requested:" + serviceRequested[k] +",                       Assigned:" + inventoriesHavingSameService[k] + "n";             }           }       }                   if (errMsg.length>0)     {           alert(errMsg);          return false;       }       return true;    }       //not 100% right, will fix later    function checkDateFormat()  {       var pattern = new RegExp(0|1[0-9]/[0-3][0-9]/[0-9][0-9]);       if(document.getElementById('timestampStarted').value.match(pattern))        {           var date_array = document.getElementById('timestampStarted').value.split('/');                      var month = date_array[0];          var day = date_array[1];            var year = date_array[2];           // This instruction will create a date object           source_date = new Date(year,month,day);             if(month != source_date.getMonth())         {               alert('Month is not valid!');               return false;           }               if(day != source_date.getDate())            {               alert('Day is not valid!');             return false;           }                       if(year != source_date.getYear())           {               alert('Year is not valid!');                return false;           }       }       else        {           alert('Date format is not valid!');         return false;       }           return true;    }   //used by assignService.php function initializeServiceInstanceArr() {       if (serviceInstancesArrAtLoad.length == 0)          serviceInstancesArrAtLoad=document.getElementsByName("serviceInstances[]");     length=serviceInstancesArrAtLoad.length;        for(i=0;i<length ;i++)       {           tempArr[i]=serviceInstancesArrAtLoad[i].value;      }   }       //used by assignService.php //tempArr is filled up at the page load and by  function validateAssignServiceForm(thisform,serviceId)  {       var flag=false;     with (thisform)     {           if (validate_required(timestampStarted,'Start Date must            be filled out!')==false)           {timestampStarted.focus();return false}     }                       if (checkDateFormat()==false)       {return false}              serviceInstancesArrAtSubmit=document.getElementsByName("serviceInstances[]");     length=serviceInstancesArrAtSubmit.length;              for (var i=0;i<length;i++)       {           if (serviceInstancesArrAtSubmit[i].value != tempArr[i])         {               flag = true;                break;          }       }                   if (flag)       {           //service id is checked otherwise the data will not be passed           //to PHP scripts            for (var i = 1; i < serviceId.length; i++)           {               serviceId.options[i].selected = true;           }           return true;        }       else        {           alert('Nothing has been changed');            return false;       }   }       function checkAllInventories2(serviceId)    {               serviceCheckAll=document.getElementsByName("serviceCheckAll[]");              inventoryCheckAll=document.getElementsByName("inventoryCheckAll[]");      serviceArr=document.getElementsByName("serviceArr[]");                length = serviceCheckAll.length;        lengthInventoryCheckAll=inventoryCheckAll.length;       lengthServiceArr=serviceArr.length;             var status=false;       for (i=0;i<length;i++)           if (serviceCheckAll[i].value==serviceId)                status = serviceCheckAll[i].checked;                    lengthArr = serviceArr.length;      for (j=0;j<lengthArr;j++)        {           var value=serviceArr[j].value;          var valueElements = value.split(':');                 if (valueElements[1]==serviceId)            {               serviceArr[j].checked=status; //serviceCheckAll.checked;//!serviceArr[j].checked;                               if (status==false)              {                   var inventoryId=valueElements[0];                   //alert(inventoryId);                                       //alert(lengthInventoryCheckAll);                   for (i=0;i<lengthInventoryCheckAll;i++)                      if (inventoryCheckAll[i].value==inventoryId)                            inventoryCheckAll[i].checked = false;               }               else if (status==true)              {                   var flag=true;                  var inventoryId=valueElements[0];                                       //alert(inventoryId);                                       for (k=0;k<lengthServiceArr;k++)                 {                       var value2nd=serviceArr[k].value;                       var valueElements2nd = value2nd.split(':');                       if (valueElements2nd[0]==inventoryId)                        if (serviceArr[k].checked==false)                          flag=false;                 }                                       if (flag==true)                 {                           for (i=0;i<lengthInventoryCheckAll;i++)                              if (inventoryCheckAll[i].value==inventoryId)                                    inventoryCheckAll[i].checked = true;                    }                               }                                           }       }   }           function checkAllServices2(inventoryId) {       inventoryCheckAll=document.getElementsByName("inventoryCheckAll[]");      serviceCheckAll=document.getElementsByName("serviceCheckAll[]");              serviceArr=document.getElementsByName("serviceArr[]");                        length = inventoryCheckAll.length;      lengthArr = serviceArr.length;      lengthServiceCheckAll=serviceCheckAll.length;               status=false;       for (i=0;i<length;i++)           if (inventoryCheckAll[i].value==inventoryId)                status = inventoryCheckAll[i].checked;              for (j=0;j<lengthArr;j++)        {           var value=serviceArr[j].value;          var valueElements = value.split(':');                 if (valueElements[0]==inventoryId)          {               serviceArr[j].checked=status;//serviceCheckAll.checked;//!serviceArr[j].checked;                if (status==false)              {                   var serviceid=valueElements[1];                                     for (i=0;i<lengthServiceCheckAll;i++)                        if (serviceCheckAll[i].value==serviceid)                            serviceCheckAll[i].checked = false;             }               else if (status==true)              {                   var flag=true;                  var serviceId=valueElements[1];                 //alert(inventoryId);                   for (k=0;k<lengthArr;k++)                    {                       var value2nd=serviceArr[k].value;                       var valueElements2nd = value2nd.split(':');                       if (valueElements2nd[1]==serviceId)                      if (serviceArr[k].checked==false)                          flag=false;                 }                   if (flag==true)                 {                       for (i=0;i0 )           {               var forwardAddresses = forwardAddress.value.split(',');             var length=forwardAddresses.length;             for(var i=0;i=1)                {                   lengthModelId=modelId.options.length;                   modelId.options[lengthModelId-1]=null;              }                   for(var i=0;i=1)                {                   lengthAddressId=addressId.options.length;                   addressId.options[lengthAddressId-1]=null;              }                   for(var i=0;i=1)                {                   lengthServiceId=serviceId.options.length;                   serviceId.options[lengthServiceId-1]=null;              }                   for(var i=0;i<length -1;i++)             {                   values=serviceIdArr[i].split(':');                    var newOption = document.createElement("option");                 newOption.value = values[0];                    newOption.innerHTML = values[1];                    serviceId.appendChild(newOption);               }           }      }            page_request.open('GET', '/Service/changeServicesList.php?serviceTypeId='+serviceTypeId.value, true)        page_request.send(null) }       function validateServiceSpeedAssignForm(thisForm)   {       with(thisForm)      {           if (validate_required(serviceId,'Service Type & Service must be filled out!')==false)         {serviceId.focus();return false}                        if (validate_required(cmtsSpeedId,'Cmts Speed must be filled out!')==false)           {cmtsSpeedId.focus();return false}                  }   }               //docsis        function validateDocsisServiceGroupCreateForm(thisform)     {       with (thisform)     {           if (validate_required(cmtsVlan,'DHCP Vlan must be filled out!')==false)           {cmtsVlan.focus();return false}                                             if (validate_required(cmtsInterfaceName,'Interface name must be filled out!')==false)         {cmtsInterfaceName.focus();return false}                        if (validate_required(cmtsInterfaceBundleId,'Interface bundle must be filled out!')==false)           {cmtsInterfaceBundleId.focus();return false}        }   }       function validateDocsisInterfaceBundleCreateForm(thisForm)  {       with(thisForm)      {           if (validate_required(name,'Interface bundle name must be filled out!')==false)           {name.focus();return false}                     if (validate_required(docsisCmtsId,'Docsis cmts must be filled out!')==false)         {docsisCmtsId.focus();return false}                     if (validate_required(cmtsVlanAddress,'Cmts Vlan address must be filled out!')==false)            {cmtsVlanAddress.focus();return false}                  }       }       function validateDocsisInventoryCreateForm(thisform)    {       with (thisform)     {           if (validate_required(inventoryModelId,'Inventory Model            must be filled out!')==false)          {inventoryModelId.focus();return false}                     if (validate_required(docsisVersion,'Docsis Version            must be filled out!')==false)          {docsisVersion.focus();return false}        }   }       function validateDocsisServiceCreateForm(thisform)  {       with (thisform)     {           if (validate_required(serviceId,'Service must be filled out!')==false)            {serviceId.focus();return false}                        if (validate_required(downloadSpeed,'Download speed must be            filled out!')==false)          {downloadSpeed.focus();return false}                        /*if (validate_required(uploadSpeed,'Upload speed must be          filled out!')==false)          {uploadSpeed.focus();return false}*/                    }   }       function validateDocsisSettingCreateForm(thisform)  {       with (thisform)     {           if (validate_required(customerId,'Customer must be filled          out!')==false)         {customerId.focus();return false}                       if (validate_required(serviceId,'Service must be filled out!')==false)            {serviceId.focus();return false}                                if (validate_required(overrideConfigFile,'Override config          file must be filled out!')==false)         {overrideConfigFile.focus();return false}       }   }       //hosting   function validateCustomerHostingParameters(thisform)    {       with (thisform)     {           if (validate_required(domainId,'Domain name must be filled             out!')==false)         {domainId.focus();return false}                     if (validate_required(serviceId,'Service name must be          filled out!')==false)          {serviceId.focus();return false}        }   }       function validateHostingSiteUserCreateForm(thisform)    {       with (thisform)     {           if (validate_required(username,'Site user name must be             filled out!')==false)          {username.focus();return false}                     if (validate_required(password,'Site password must be          filled out!')==false)          {password.focus();return false}                     if ( password.value.length   passwordMaxLength.value)           {alert('Password length should be < = '+passwordMaxLength.value );          password.focus();return false}                                              if (validate_required(password2,'Please re-enter site password !')==false)            {password2.focus();return false}                        if (password.value != password2.value)          {               alert("Site User Passwords must match");              password2.focus();              return false            }       }   }       function validateHostingDomainUserCreateForm(thisform)  {       with (thisform)     {           if (validate_required(domainId,'Domain name must be            filled out!')==false)          {domainId.focus();return false}                                 if (validate_required(username,'Domain user name must          be filled out!')==false)           {username.focus();return false}                     if (validate_required(password,'Domain password must be            filled out!')==false)          {password.focus();return false}                                 if ( password.value.length   passwordMaxLength.value)           {alert('Password length should be < = '+passwordMaxLength.value );                         password.focus();return false}                                   if (validate_required(password2,'Please re-enter site password !')==false)            {password2.focus();return false}                        if (password.value != password2.value)          {               alert("Domain User Passwords must match");                password2.focus();              return false            }       }   }           //outage    function validateOutageCreateForm(thisform) {       with (thisform)     {           if (validate_required(subject,'Subject must be filled out!')==false)          {subject.focus();return false}                      //check community selection         var communityNamesArr=document.getElementsByName("communityNames[]");         lengthArr= communityNamesArr.length;                        var isAnySelected = false;                      for (var i=0;i<lengthArr;i++)            {               if (communityNamesArr[i].checked == true)               {                   isAnySelected=true;                 i=lengthArr;                }           }                       if (!isAnySelected)             {               alert('You must select a community');             return false;           }                                   //check recipient selection         var outageRecipientNamesArr=document.getElementsByName("outageRecipientNames[]");         lengthArr= outageRecipientNamesArr.length;                      var isAnySelected = false;                      for (var i=0;i<lengthArr;i++)            {               if (outageRecipientNamesArr[i].checked == true)             {                   isAnySelected=true;                 i=lengthArr;                }           }                       if (!isAnySelected)             {               alert('You must select a recipient');             return false;           }           return true;        }   }

From: http://sitestree.com/?p=4784
Categories:13
Tags:
Post Data:2010-04-27 09:16:44

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>

JavaScript – Miscellaneous Validations #13

    function validateDomainName(strValue)   {       return /www.[a-z0-9_-]+.[a-z]{2, 3}/ig.test(strValue);          }   function validateDomainName(strValue)   {       return /www.[a-z0-9_-]+.[a-z]{2, 3}/ig.test(strValue);          }   //not 100% right, will fix later    function checkDateFormat()  {       var pattern = new RegExp(0|1[0-9]/[0-3][0-9]/[0-9][0-9]);       if(document.getElementById('timestampStarted').value.match(pattern))        {           var date_array = document.getElementById('timestampStarted').value.split('/');                      var month = date_array[0];          var day = date_array[1];            var year = date_array[2];           // This instruction will create a date object           source_date = new Date(year,month,day);             if(month != source_date.getMonth())         {               alert('Month is not valid!');               return false;           }               if(day != source_date.getDate())            {               alert('Day is not valid!');             return false;           }                       if(year != source_date.getYear())           {               alert('Year is not valid!');                return false;           }       }       else        {           alert('Date format is not valid!');         return false;       }           return true;    }   function validateEmail( strValue)   {       var objRegExp  = /(^[a-z]([a-z_.]*)@([a-z_.]*)([.][a-z]{3})$)|(^                [a-z]([a-z_.]*)@([a-z_.]*)(.[a-z]{3})(.[a-z]{2})*$)/i;          //check for valid email         return objRegExp.test(strValue);    }   //AJAX Example  function ajaxFunctionGeneral()  {       var page_request = false        if (window.XMLHttpRequest) // if Mozilla, IE7, Safari etc           page_request = new XMLHttpRequest()     else if (window.ActiveXObject)      { // if IE          try             {               page_request = new ActiveXObject("Msxml2.XMLHTTP")          }           catch (e)           {               try             {                   page_request = new ActiveXObject("Microsoft.XMLHTTP")               }               catch (e)               {               }           }       }       else                    return false        return page_request;    }   function reboot(deviceId)   {       var response=confirm('Are you sure to reboot');             if(!response)           exit;               page_request = ajaxFunctionGeneral();       if (!page_request) return false;                page_request.onreadystatechange=function()      {       if(page_request.readyState==4)          {               var response=page_request.responseText;             var displayArea = document.getElementById('showDiagnosticsResults');                displayArea.value = response;           }      }        page_request.open('GET', '/Inventory/Diagnostics/reboot.php?deviceId='+deviceId, true)      page_request.send(null) }

From: http://sitestree.com/?p=4779
Categories:13
Tags:
Post Data:2008-12-29 21:43:54

    Shop Online: <a href='https://www.ShopForSoul.com/' target='new' rel="noopener">https://www.ShopForSoul.com/</a>
    (Big Data, Cloud, Security, Machine Learning): Courses: <a href='http://Training.SitesTree.com' target='new' rel="noopener"> http://Training.SitesTree.com</a> 
    In Bengali: <a href='http://Bangla.SaLearningSchool.com' target='new' rel="noopener">http://Bangla.SaLearningSchool.com</a>
    <a href='http://SitesTree.com' target='new' rel="noopener">http://SitesTree.com</a>
    8112223 Canada Inc./JustEtc: <a href='http://JustEtc.net' target='new' rel="noopener">http://JustEtc.net (Software/Web/Mobile/Big-Data/Machine Learning) </a>
    Shop Online: <a href='https://www.ShopForSoul.com'> https://www.ShopForSoul.com/</a>
    Medium: <a href='https://medium.com/@SayedAhmedCanada' target='new' rel="noopener"> https://medium.com/@SayedAhmedCanada </a>