Load Balancing with CISCO Routers #114

Load Balancing with CISCO Routers:
What is load balancing?
Simply, distributing the traffic across multiple different paths/destinations. The definition is context-specific as well. For example, if you provide a web-service, you can use multiple servers to provide the service. Then for you, load balancing can be simply distributing the incoming service request across these servers (than just to one server). For the network operators (say the internet operators), load balancing can be distributing the network traffic across multiple paths so that some paths are not congested (traffic is even across the internet backbone).

“A definition from the online Wikipedia:
In computer networking, load balancing is a technique to distribute workload evenly across two or more computers, network links, CPUs, hard drives, or other resources, in order to get optimal resource utilization, maximize throughput, minimize response time, and avoid overload. Using multiple components with load balancing, instead of a single component, may increase reliability through redundancy. The load balancing service is usually provided by a dedicated program or hardware device (such as a multilayer switch or a DNS server).

It is commonly used to mediate internal communications in computer clusters, especially high-availability clusters. If the load is more on a server, then the secondary server takes some load while the other is still processing requests” [http://en.wikipedia.org/wiki/Load_balancing_%28computing%29]

Check: http://www.google.com/search?hl=en&defl=en&q=define:Load+balancing+&ei=7SKUS-v9O4nqM8GqiY0N&sa=X&oi=glossary_definition&ct=title&ved=0CBQQkAE

Some resources for Load Balancing with CISCO Routers:
Before pointing you to the resources, some notes

  • If you go through an undergraduate program in Computer Science, you will know the theory behind most of the protocols as will be named in the resources. If you go through the materials for Cisco certifications, you will know the IOS commands to deal/interact with the protocols (configure the protocols in real life situations).
  • Universities may not give you an opportunity in your undergraduate program to deal with real-life routers, and play with the routing protocols. If they would (even as an extra facility not part of your courses) that could be something very useful for your career (esp. when network/telecommunications oriented) (could even make you more interested in networking/inter-networking careers).
  • However, universities may teach you writing prototype network software, network protocols, and components for network operating systems. Universities will also teach you the graph theory, queuing theory, and analysis of network protocols. These are must know to write routing/networking protocols. The people who write the network operating systems, and/or network/routing protocols are mostly from theoretical (university) backgrounds. Even if your interests are to implement routing logic in hardware, and designing and implementing routers, university education (in Comp. Eng.) will be of more help than Cisco Certification materials (knowing these materials will always be a plus)
  • (Limited Opportunities): If your intentions are to come up with new and better routing protocols, improve the efficiency of the existing protocols, and even discover new routing protocols for newer computing platforms (such as Sensor Networks, Zigbee, VOIP, and similar), you will mostly require to go through research based Masters and PhD programs in Computer Networking and related [In another word, graduate studies (in networking) focus on these (Improving existing protocols, network standards, inter-networking standards, data transfer methods, routing. Also, discovering new protocols, network standards, inter-networking standards, data transfer methods, routing, and related].

From: http://sitestree.com/?p=4772
Categories:114
Tags:
Post Data:2009-07-10 03:43:33

    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>

What is Cloud Computing? #118

From: http://sitestree.com/?p=5195
Categories:118
Tags:
Post Data:2008-01-18 07:19:49

    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>

What is Virtualization? What is VMWare #118

From: http://sitestree.com/?p=5194
Categories:118
Tags:
Post Data:2010-06-07 19:34: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>

Current PHP Contract Project #124

  • Teach English in Korea: http://www.teacheslkorea.com/: Worked on this project for the last 6 – 7 months on PHP, MySQL, HTML, CSS, JavaScript, Dreamweaver, and Eclipse PDT. Currently working on it as an independent contractor. I worked and working with all aspects of the backend – teacher, school, administrator, job board, tracking, reporting, searching, teacher representative, school-representative related functions and operations. And yes, I also do the maintenance of the web-site and web-hosting.

From: http://sitestree.com/?p=5243
Categories:124
Tags:
Post Data:2011-10-15 00:27:41

    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>

Some recent stuff #124

  • Reviewed C++ from http://gd.tuwien.ac.at/languages/c/c++oop-pmueller/tutorial.html. Working with a research project in electromagnetics and dealing with a tricky issue with multiple header files, typedef on templates, templates, pointers, and similar – could solve finally.
  • C++ had to solve error like: uninitialized reference member `Edge::v1′ – subclass base class constructor reference related issue
  • PHP Work: Image manipulation, image resize, image upload. Used the code from http://www.kavoir.com/2009/01/php-resize-image-and-store-to-file.html and edited. Also, made it work for different types of images. Search php.net for image manipulation functions.
  • C#: Had to use code to shuffle an array: code utilized from: http://dotnetperls.com/shuffle-array

From: http://sitestree.com/?p=5241
Categories:124
Tags:
Post Data:2008-09-04 01:57:28

    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>

Github Git and Creating an Internet Traffic System #126

Github Git and Creating an Internet Traffic System
[youtube https://www.youtube.com/watch?v=uh6_2UplPPk?feature=player_detailpage&w=640&h=360] From: http://sitestree.com/?p=5345
Categories:126
Tags:
Post Data:2010-09-12 13:40:25

    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>

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>