JavaScript is a scripting language developed by Netscape Communications.
The Netscape Navigator interprets JavaScript embedded into Web pages.
JavaScript is used for developing web applications.
It is not dependent on Sun Microsystem's Java language.
JScript
Microsoft JScript is an open implementation of Netscape's JavaScript.
JScript is a scripting language designed to create active online content. ActiveX controls, Java programs, etc can be linked and automated in the web pages using JScript.
What is the difference between Client side JavaScript and Server side JavaScript.
Client side java script comprises the basic language and predefined objects which are relevant to running java script in a browser. The client side java script is embedded directly by in the HTML pages. This script is interpreted by the browser at run time.
Server side java script also resembles like client side java script. It has relevant java script which is to run in a server. The server side java scripts are deployed only after compilation.
What is the difference between Client side JavaScript and Server side tJavaScript?
Client-Side JavaScript (CSJS)
It is JavaScript that enables the enables web pages on browsers to run active online content.
Server-Side JavaScript (SSJS)
It is JavaScript that enables back-end access to databases, file systems, and servers
Where are cookies actually stored on the hard disk?
The storage of cookies on the hard disk depends on OS and the browser. The Netscape navigator on Windows, the file cookies.txt contains all the cookies. The path is :
c:\Program Files\Netscape\Users\username\cookies.txt
The Internet Explorer stores the cookies on a file by name username@website.txt is
c:\Windows\Cookies\username@Website.txt
JavaScript - Where are cookies actually stored on the hard disk?
This depends on the user's browser and OS.
In the case of Netscape on Windows OS, its stored in cookies.txt
In IE, each cookie is stored in a file and has is named as username@website.txt.
JavaScript - What is the difference between a web-garden and a web-farm? -
Web garden is a web hosting system. It is a setup of multi processors in single server.
Web farm is a web hosting system. It is a multi-server scenario.
What is the difference between a web-garden and a web-farm?
The term ‘Web Farm’ indicates a business that performs Web site hosting on multiple servers.
The term ‘
What is the difference between SessionState and ViewState?
The values of controls of a particular page of the client browser is persisted by ViewState at the time of post back operation is done. If the user requests another page, the data of previous page is no longer available.
The data of a particular server persists in the server by SessionState. The availability of the user data is up to the completion of a session or closure of the browser.
A ViewState is a state of a page within a browser wherein the values of controls persist when post back operation is done.
When another page is loaded, the previous page data is no longer available.
SessionState is the data of a user session and is maintained on the server side. This data available until user closes the browser or session time-outs.
How to Accessing Elements using javascript?
The elements of JavaScript are accessed by their names. By default the browser is accessed by the element ‘windows’ and the page by ‘document’. The corresponding element has user defined names for forms and its elements. For example
var passwd = windows.document.frmLogin.password.value;
assigns the value of the password field of the form fromLogin in the current document, where password is the name of the element and frmLogin is the name of the form. Like wise any form element is accessed.
How to Accessing Elements using javascript?
Following are some of the functions with which the elements can be retrieved:
getElementById()
getElementByName()
getElementByValue()
getElementByTag()
What is the difference between undefined value and null value?
Undefined value: A value that is not defined and has no keyword is known as undefined value. For example in the declaration, int number; the number has undefined value.
Null value: A value that is explicitly specified by the key word ‘null’ is known as null value. For example in the declaration, String str=null; the str has a null value. The keyword ‘null’ is used here.
null value has keyword called ‘null’. That is not the case with undefined.
typeof undefined variable or property returns undefined whereas
typeof null value returns object.
How to set the cursor to wait in JavaScript?
The cursor can set to wait in JavaScript by using the property ‘cursor’ property. The following example illustrates the usage.
window.document.body.style.cursor = "wait"; // sets the cursor shape to hour-glass.
How to set the cursor to wait in JavaScript?
A moue over this yellow patch will show you the wait cursor.
What is decodeURI(), encodeURI() in JavaScript?
To send the characters that can not be specified in a URL should be converted into their equivalent hex encoding. To perform this task the methods encodeURI() and decodeURI() are used.
For example, the following code snippet performs the encoding of URL:
What is decodeURI(), encodeURI() in JavaScript?
These functions are used to encode and decode the URIs.
Eg:
String: Career Ride
Operation: encodeURI()
Output: Career%20Ride
Operation: decodeURI()
Output: Career Ride
No comments:
Post a Comment