No Image

Auto Complete: All about

February 16, 2018 hung-nb 0

ASP.NET – Use “AJAX AutoCompleteExtender” Assign a “ServiceMethod”, a “TargetControlID”, a “OnClientItemSelected” to “AutoCompleteExtender” ServiceMethod is a WebService returning data for autocomplete TargetControlID is a […]

No Image

HTML DOM: All about

January 15, 2018 hung-nb 0

Concept Javascript – DOM parser speed The DOM isn’t slow, your code is slow. Notes Do not use JQUERY to create HTML element Stop using […]

No Image

ReactJS – Concepts

December 14, 2017 hung-nb 0

UI creation Work process Create UI mockup Divide UI into different areas, small area is inside bigger area, the biggest area is the entire UI […]

No Image

JavaScript: Listen for changes

December 12, 2017 hung-nb 0

Basic In HTML [js] [/js] In JavaScript [js] object.onchange = function(){myScript}; [/js] In JavaScript, using the addEventListener() method: [js] object.addEventListener(“change”, myScript); [/js] Specific cases Detect […]

No Image

ASP.NET & Ajax in Javascript

October 23, 2017 hung-nb 0

GET (https://www.w3schools.com/xml/ajax_intro.asp) [js] var xhttp = new XMLHttpRequest(); xhttp.open(“GET”, “ajax_info.txt”, true); xhttp.send(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { […]

No Image

Javascript: Detect browser type

October 23, 2017 hung-nb 0

[js] function get_browser_info(){ var ua=navigator.userAgent,tem,M=ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || []; if(/trident/i.test(M[1])){ tem=/\brv[ :]+(\d+)/g.exec(ua) || []; return {name:’IE ‘,version:(tem[1]||”)}; } if(M[1]===’Chrome’){ tem=ua.match(/\bOPR\/(\d+)/) if(tem!=null) {return {name:’Opera’, version:tem[1]};} } M=M[2]? [M[1], […]

No Image

Web API: All about

September 24, 2017 hung-nb 0

NodeJS Installation Usage [js] /* users.json { “user1” : { “name” : “mahesh”, “password” : “password1”, “profession” : “teacher”, “id”: 1 }, “user2” : { […]