JavaScript tips and tricks 2

Posted by

JavaScript tips and tricks 2

image credit:

In our second tutorial about JavaScript tips and tricks 2 , we will discuss, how much powerful this scripting language is, that does most of the client based work.
Here, we are discussion about more tips and tricks with the help of JavaScript.But first we have to look deeper into this scripting language

Javascript is a client side scripting language. It is most ordinarily utilized as a feature of web programs, whose executions permit client scripts to cooperate with the client, control the program, impart nonconcurrently, and modify the record content that is displayed.It is likewise utilized as a part of server-side system programming with runtime situations, for example, Node.js, diversion advancement and the formation of desktop and portable applications.

Javascript is named a model based scripting with element writing and top notch capacities. This mixof peculiarities makes it a multi-ideal model language, supporting basic, and functional programming style.Javascript and Java are generally inconsequential and have altogether different semantics. The sentence structure of Javascript is really gotten from C, while the semantics and outline are impacted without anyone else’s input and Plan programming languages.

Javascript is additionally utilized as a part of situations that aren’t online, for example, PDF records, website particular programs, and desktop gadgets. More current and speedier Javascript virtual machines (Vms) and stages based upon them have additionally expanded the prominence of Javascript for server-side web applications. On the customer side, Javascript has been generally actualized as a translated dialect, yet later programs perform without a moment to spare assemblage.

Javascript has been institutionalized in the Ecmascript language part

Fetching records from Sql Server with javascript

var myConn = new ActiveXObject(“ADODB.Connection”) ;

var constring=”Data Source=Server/Instance;Initial Catalog=myDatabase;User ID=myuserID;Password=myPassword;Provider=SQLOLEDB”;


var myRecordSet = new ActiveXObject(“ADODB.Recordset”);

myRecordSet.Open(“SELECT * FROM myTable”, myConn);


< script type=”text/javascript” >
function myFunction()
var myVar=”value”;

</script >

Facebook Comments

Syed Adeel Ahmed
Analyst, Programmer, Educationist and Blogger at Technofranchise
Computer Systems Engineer from Sir Syed University Of Engineering & Technology.I am passionate about all types of programming.
Syed Adeel Ahmed on FacebookSyed Adeel Ahmed on GoogleSyed Adeel Ahmed on InstagramSyed Adeel Ahmed on Twitter