1.How do I make a graphic a link in HTML?
by Including the “img” tag between the “a href” tag and the “a” closing tag:
2.What are the commonly used data types in VBScript?
All data types in VBScript are variants.
3. What is DHTML?
DHTML means dynamic hyper text markup language it combines of static HTML, cascading style sheets (CSS) and scripting. by using scripting with CSS we can manipulate document object model (DOM) to get dynamic effect of the page.
4.What is a virtual root and how do you create one?
A virtual root is essentially a new web site in IIS. You’d create one in the MMC by either selecting “New Virtual Site” from the site context menu, or clicking “Create” in the Home Directory tab in the properties for any existing folder. Using the first method, you can also create a virtual root that points to a logical directory outside the current web root. The new virtual root is largely, although not completely, as configurable as a new web site.
5.How would you remotely administer IIS?
Win2K and Win2K3 comes with a limited terminal services server built in for remote administration of the server. Set it up as remote client and use the TS client or Remote Desktop Connection on the client to login. From there, use MMC as if you were logged on locally.
6.How would you go about securing IIS and MS-SQL Server?
1. stay up to date on patches and keep security software (AV, firewall, IDS, maybe even packet logging, etc.) running.
2. IIS authenticates against domain users (even if the domain is “Local Machine”). Make sure you have no spurious users, and secure everyone’s passwords. If possible, segregate public web machines into different ACL segments (e.g. — a different domain).
3. Be careful with security policies. The standard server install comes with hardened LSP templates, which you should consider if you’re not experienced enough to build your own. Non-front tiers should have tight security policies barring anyone outside the adjacent tiers (and maybe a test machine or two) from access.
7.How do I make a graphic a link in HTML?
by Including the “img” tag between the “a href” tag and the “a” closing tag:
8.What scripts ship with IIS 6.0?
iisweb.vsb to create, delete, start, stop, and list Web sites, iisftp.vsb to create, delete, start, stop, and list FTP sites, iisdir.vsb to create, delete, start, stop, and display virtual directories, iisftpdr.vsb to create, delete, start, stop, and display virtual directories under an FTP root, iiscnfg.vbs to export and import IIS configuration to an XML file
9.What’s the name of the user who connects to the Web site anonymously?>
IUSR_computername
10.What secure authentication and encryption mechanisms are supported by IIS 6.0?
Basic authentication, Digest authentication, Advanced digest authentication, Certificate-based Web transactions that use PKCS #7/PKCS #10, Fortezza, SSL, Server-Gated Cryptography, Transport Layer Security
11.Where’s ASP cache located on IIS 6.0?
On disk, as opposed to memory, as it used to be in IIS 5.
12. What is socket pooling?
Non-blocking socket usage, introduced in IIS 6.0. More than one application can use a given socket.
13.What are JavaScript types?
Number, String, Boolean, Function, Object, Null, Undefined
14.How do you convert numbers between different bases in JavaScript?
Use the parseInt() function, that takes a string as the first parameter, and the base as a second parameter. So to convert hexadecimal 3F to decimal, use parseInt (“3F”, 16);
15.What is negative infinity?
It’s a number in JavaScript, derived by dividing negative number by zero.
16.What can javascript programs do?
Generation of HTML pages on-the-fly without accessing the Web server.
The user can be given control over the browser like User input validation Simple computations can be performed on the client’s machine The user’s browser, OS, screen size, etc. can be detected
Date and Time Handling
17.What does the “Access is Denied” IE error mean?
The “Access Denied” error in any browser is due to the following reason.A javascript in one window or frame is tries to access another window or frame whose document’s domain is different from the document containing the script.
18. Is a javascript script faster than an ASP script?
Yes.Since javascript is a client-side script it does require the web server’s help for its computation,so it is always faster than any server-side script like ASP,PHP,etc..
19.Are Java and JavaScript the Same?
No.java and javascript are two different languages. Java is a powerful object – oriented programming language like C++,C whereas Javascript is a client-side scripting language with some limitations.
20.Does javascript have the concept level scope?
No. JavaScript does not have block level scope,all the variables declared inside a function possess the same level of scope unlike c,c++,java.
21. What are undefined and undeclared variables?
Undeclared variables are those that are not declared in the program (do not exist at all), trying to read their values gives runtime error.But if undeclared variables are assigned then implicit declaration is done .
Undefined variables are those that are not assigned any value but are declared in the program. Trying to read such variables gives special value called undefined value.
22.What does the delete operator do?
The delete operator is used to delete all the variables and objects used in the program ,but it does not delete variables declared with var keyword.
23.How to create a function using function constructor?
The following example illustrates this
It creates a function called square with argument x and returns x multiplied by itself.
var square = new Function (“x”,”return x*x”);
24.What does the delete operator do?
The delete operator is used to delete all the variables and objects used in the program ,but it does not delete variables declared with var keyword.
25.What is === operator ?
==== is strict equality operator ,it returns true only when the two operands are having the same value without any type conversion.
26.What is HTML DOM?
The HTML DOM stands for the Document Object Model, which is a way of representing the various tags and objects in side the DHTML page. We access the various objects and manipulate them by having the DOM based hierarchy, especially in the JavaScript. The DOM represents the various objects in a hierarchy and each of them generates events from the user. The reaction of the webpage to such events produce the dynamism associated with the web page.
27.What is JavaScript?
JavaScript is the client side scripting language that can work on all the browsers. The JavaScript is the one that offers the capability to change the content, create dynamic content, change the style of the various elements inside the webpage. There are many predefined functions that can be used from the JavaScript engine.
28.Write a DHTML page with a input box where background changes when the mouse is over the specified input box.
<html><head><script>
{document.getElementById(‘box’).style.background=color;
}</script>
</head>
<body>
<input value=”Mouse Over changes colors” size=”30? onmouseover=”backgroundColor(‘green’)”>
</body>
</html>
29 How would you remotely administer IIS?
Win2K and Win2K3 comes with a limited terminal services server built in for remote administration of the server. Set it up as remote client and use the TS client or Remote Desktop Connection on the client to login. From there, use MMC as if you were logged on locally.
30.How would you go about securing IIS and MS-SQL Server?
1. stay up to date on patches and keep security software (AV, firewall, IDS, maybe even packet logging, etc.) running.
2. IIS authenticates against domain users (even if the domain is “Local Machine”). Make sure you have no spurious users, and secure everyone’s passwords. If possible, segregate public web machines into different ACL segments (e.g. — a different domain).
3. Be careful with security policies. The standard server install comes with hardened LSP templates, which you should consider if you’re not experienced enough to build your own. Non-front tiers should have tight security policies barring anyone outside the adjacent tiers (and maybe a test machine or two) from access.
31. Distinguish between Static vs. Dynamic HTML
The easiest difference is static HTML once rendered cannot be changed on the other hand dynamic HTML can be changed.
Static web pages cannot have database access but dynamic pages can be connected to database.
Using static HTML no interactions persist between user and server but dynamic HTML has capability to interact with the user.
Static HTML does not require server side coding but dynamic HTML requires server side coding.
No animation, games can be developed using the static HTML but on the other hand dynamic HTML can perform this task.
32. How DHTML work with JavaScript?
Using JavaScript we can made dynamic HTML content.
We can use document.write() to show dynamic content on your web page.Below I have given you HTML page which made dynamic after using JavaScript.This example will show current date.
Example:
<html> <body>
<script type=”text/javascript”>
document.write(Date()); </script>
</body> </html>
33.Tell about technologies that we use in DHTML?
Some technologies that we used in DHTMl are given below:
1.JavaScript
2.HTML DOM
3.HTML EVENT
4.CSS
1.J It is an standard of scripting for HTML. Using JavaScript DHTML can control,access and manipulate HTML element. 2.HTML DOM: It is an Document Object Model which is an W3C Standard for HTML.Using HTML DOM is used to define standard to set of objects and to access and manipulate them for HTML.Using HTML DOM, DHTML can access and manipulate HTML elements. 3.HTML Events: It is an part of HTML DOM and used to handle HTML elements.We use DHTML with HTML Events to make web pages those perform action when event occour. 4.CSS: It is an W3C standard style and layout model made only for HTML. DHTML use JavaScript and DOM to change position and style of HTML elements
34.What is a Hypertext link?
A hypertext link is a special tag that links one page to another page or resource. If you click the link, the browser jumps to the link’s destination.
35.How comfortable are you with writing HTML entirely by hand?
Very. I don’t usually use WYSIWYG. The only occasions when I do use Dreamweaver are when I want to draw something to see what it looks like, and then I’ll usually either take that design and hand-modify it or build it all over again from scratch in code. I have actually written my own desktop HTML IDE for Windows (it’s called Less Than Slash) with the intention of deploying it for use in web development training. If has built-in reference features, and will autocomplete code by parsing the DTD you specify in the file. That is to say, the program doesn’t know anything about HTML until after it parses the HTML DTD you specified. This should give you some idea of my skill level with HTML.
35.What is everyone using to write HTML?
Everyone has a different preference for which tool works best for them. Keep in mind that typically the less HTML the tool requires you to know, the worse the output of the HTML. In other words, you can always do it better by hand if you take the time to learn a little HTML.
36.What is the difference between form get and form post?
With GET the form data is encoded into a URL by the browser. The form data is visible in the URL allowing it to be bookmarked and stored in web history. The form data is restricted to ASCII codes. Because URL lengths are limited there can be limitations on how much form data can be sent.
Post
With POST all the name value pairs are submitted in the message body of the HTTP request which has no restrictions on the length of the string. The name value pairs cannot be seen in the web browser bar.
POST and GET correspond to different HTTP requests and they differ in how they are submitted. Since the data is encoded in differently, different decoding may be needed.
37.List some common IE6 bugs and how you dealt with them?
Ie6 is not dead, just ask China which represents a nice chunk of the worlds online population. Your pages should at least be functional on IE6, unless you dont care about half the worlds population.
38.What is the importance of the HTML DOCTYPE?
The doctype declaration should be the very first thing in an HTML document, before the html tag.
The doctype declaration is not an HTML tag; it is an instruction to the web browser about what version of the markup language the page is written in.
The doctype declaration refers to a Document Type Definition (DTD). The DTD specifies the rules for the markup language, so that the browsers can render the content correctly.
39.What are some of the online tools and resources you use when you have a problem? Where do you go to ask questions?
This question really just looks for how resourceful the candidate is, it also reflects on their problem solving process and may lead you to ask more questions.
40.What is web a application?
A great question to feel out the depth of the applicants knowledge and experience.
A web application is an application utilizing web and [web] browser technologies to accomplish one or more tasks over a network, typically through a [web] browser.
41.Wht is a CSS File? It is used for what purpose
CSS stands for “Cascading Style Sheets”, and are used to control and manage font styles, font sizes, and web site color combinations that are used in a web page. In order to retain continuity of “look and feel” throughout a website, all pages within a website will often refer to a single CSS file. The CSS file is typically contained in a separate file from the website, and the various web pages retrieve the CSS file each time a web page is displayed. CSS files make global appearance changes easy — a single change in a CSS file will mean that any pages using that CSS file will automatically display the changes
42.How do I make a picture as a background on my web pages?
Point the body background to the name of your image you wish to use as the background as shown below. This body line should be the first line after your < / head> tag.
< body background=”picture.gif” >
You can also have the background image fixed, so it does not move when using the scroll bar in the browser. To do this add the BGPROPERTIES tag as shown below. < body background=”picture.gif” bgproperties=”fixed” >
43.How do I add scrolling text to my page?
Keep in mind not all browsers support scrolling text. however to do this add a tag similar to the below example. < marquee >THIS WOULD SCROLL< /marquee> The above example would create the below scrolling text. If your browser supports scrolling text the below example should be scrolling. More examples can be found on our main HTML page that lists most of the HTML commands.
44.How do I make it so that someone can mail me by just clicking on text with subject?
Use the mailto command in your A HREF link tag as shown below. < A HREF=”mailto:support@computerhope.com?Subject=Enquiry” “>Click here to mail Computer Hope< / A> .
45.Is CSS case sensitive?
Cascading Style Sheets (CSS) is not case sensitive. However, font families, URLs to images, and other direct references with the style sheet may be. The trick is that if you write a document using an XML declaration and an XHTML doctype, then the CSS class names will be case sensitive for some browsers. It is a good idea to avoid naming classes where the only difference is the case, for example: div.myclass { …} div.myClass { … } If the DOCTYPE or XML declaration is ever removed from your pages, even by mistake, the last instance of the style will be used, regardless of case.
46.What are the five possible values for “position”?
Values for position: static, relative, absolute, fixed, inherit
47.How does the browser determine where to place positioned elements?
How does the browser determine where to place positioned elements?
48.What are JavaScript types?
Number, String, Boolean, Function, Object, Null, Undefined.
49.What does isNaN function do?
Return true if the argument is not a number.
50.How do you convert numbers between different bases in JavaScript?
Use the parseInt() function, that takes a string as the first parameter, and the base as a second parameter. So to convert hexadecimal 3F to decimal, use parseInt (“3F”, 16);
51.What is negative infinity?
It’s a number in JavaScript, derived by dividing negative number by zero.
52.What does “1″+2+4 evaluate to?
Since 1 is a string, everything is a string, so the result is 124.
53.What is the difference between an alert box and a confirmation box?
An alert box displays only one button which is the OK button whereas the Confirm box displays two buttons namely OK and cancel.
54.What is a prompt box?
A prompt box allows the user to enter input by providing a text box.
55.What is work Area in photoshop?
The work area can be intimidating to work with because of all the complex functionality but with a quick breakdown of the available features and their uses, you will be ready to comfortably navigate the work area with ease. The work area in Photoshop has the following basic functionality and features: ? Menu Bar ? this is where you can access most of the commands and features in Photoshop ? Drawing Palette ? where the image being worked on will appear ? Options bar ? content sensitive display of tool options ? changes as different tools are selected ? display using Window > Options or Click a tool in the toolbox. Lasso options bar ? Tool box – for creating an editing images (display or hide using Windows > Tools) ? Palettes – to monitor and modify images (there are 5 palettes by default) ? Palette Well – to organize palettes in work area ? Drag a palette?s tab into the palette well to store it in the palette well ? Once in the palette well click on the palette tab to use it
56.How Can you organize layers as in photoshop?
Yes we can organize layes.. For example you create a Ball in 1st layer and then in second layer you create the background. But you should lock all the layers and unlock the layer which u r working, because unlocked layers will be active always(active means, if u want to drage the ball, backgroung layers also will be affected)
57.How do I specify page breaks in HTML?
Here is no way in standard HTML to specify where page breaks will occur when printing a page. HTML was designed to be a device-independent structural definition language, and page breaks depend on things like the fonts and paper size that the person viewing the page is using.
58.How do I add scrolling text to my page?
Add a Tag of marquee
59.How do I close a browser window with HTML code?
Use the below code example. < type=”button” value=”Close this window” onclick=”self.close()”>
60.Is it possible to make the HTML source not viewable?
There is no real method or script for making standard HTML source code not viewable.
There are various script that Disable Right click feature.
61.How do I do multiple colors of text?
To do the multicolor text adjust the color of your font tag as:
< font color=”blue”>blue
62.WHow do I make a picture a link?
Use the A HREF link tag around the IMG image tag as:
< A HREF=”http://www.computerhope.com”> < image SRC=”title.gif”>
63.What is meant by iframe ?
iframe is used for creating an inline or floating frame. As most of know frames are mainly used to structure the page or for placing a menu bar on the side and so on. But iframe is used in a different context. That is in other words iframe is used to embed or insert content on a page of padding. This is done for several reasons. Say the content may be large enough that the user may wish to place it separately and scroll through it
64.How to place a background for a single table cell?
You can put a background for a single table cell in two ways namely: Either by
using HTML
Using CSS
65.What are differences between DIV and SPAN?
DIV is used to select a block of text so that one can apply styles to it.
SPAN is used to select inline text and let users to apply styles to it.
The main difference between DIV and SPAN is SPAN does not do formatting by itself. Also the DIV tag is used as a paragraph break as it creates a logical division of the document in which it is applied. This is in contrast to the SPAN as SPAN simply dos the functionality of applying the style and alignment whatever was specified in it. DIV has ALIGN attribute in it which is not present in case of SPAN. Thus DIV is used in cases where one wants to apply styles to a block of text. But there may be situations in which there might not be clear well structured block of text to work with. In those cases one can opt to apply SPAN which is used to apply styles inline. That is in other words DIV is generally used for block of text and SPAN is generally used for words or sentences.
66.What is DHTML? What are the features of DHTML?
DHTML stands for Dynamic HTML. The first thing that we need to clear about DHTML is that it is neither a language like HTML, JavaScript etc. nor a web standard. It is just a combination of HTML, JavaScript and CSS. It just uses these languages features to build dynamic web pages. DHTML is a feature of Netscape Communicator 4.0, and Microsoft Internet Explorer 4.0 and 5.0 and is entirely a “client-side” technology.
Features of DHTML:
Simplest feature is making the page dynamic.
Can be used to create animations, games, applications, provide new ways of navigating through web sites.
DHTML use low-bandwidth effect which enhance web page functionality.
Dynamic building of web pages is simple as no plug-in is required.
Facilitates the usage of events, methods and properties and code reuse.
67.Which browsers support DHTML and how will non-supporting browsers handle DHTML?
Version of Netscape navigator and Internet Explorer higher than 4.0 or 4.0 supports DHTML in easy way. But as compared to both browsers Internet Explorer 4.0+ supports the DHTML in the best way.
DHTML includes JavaScript to make the page dynamic and regardless of which scripts is written for and the scripts are designed in such a way that it can be compatible with as many numbers of browsers as possible. The most important thing that must be kept in the mind is that we must test the code before running it over the server or making it live. Also we certainly cannot guarantee that all users will use the browser that will support the scripts.
68.Describe how DHTML work with JavaScript.
As DHTML is not a language and it just use the property of HTML, JavaScript and CSS to make dynamic content. So here I will represents the working of DHTML with JavaScript with a simple example that just greets user with its name:
<! DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title>DHTML example</title>
<script type=”text/JavaScript”>
function greet_user()
{
var name=document.getElementById(“userName”).value;
if(name==””){
alert(“Welcome”+name);
}
else{
alert(“Please provide User Name”)
}
}
</script>
</head>
<body>
<table border=”1” cellspacing=”3”>
<tr>
<td colspan=”2”><h6> Please Enter Your Name </h6></td>
</tr>
<tr>
<td><h4>User Name </h4></td>
<td><input type=”text” id=”userName” ></td>
</tr>
<tr>
<td colspan=”2”><input type=”button” value=”Submit” onclick=”greet_user()”/>
</table>
</body>
</html>
69.Distinguish between Static vs. Dynamic HTML
The easiest difference is static HTML once rendered cannot be changed on the other hand dynamic HTML can be changed.
Static web pages cannot have database access but dynamic pages can be connected to database.
Using static HTML no interactions persist between user and server but dynamic HTML has capability to interact with the user.
Static HTML does not require server side coding but dynamic HTML requires server side coding.
No animation, games can be developed using the static HTML but on the other hand dynamic HTML can perform this task.
70.Explain the Working of DHTML
DHTML as it is combination of HTML as well as JavaScript and it uses the HTML to render the text on the browser. It also uses DOM dynamic Object Model which renders its every element as an Object that can be changed by setting properties and methods. This is done with the help of Scripting. DHTML is part of the general computing trend of late ’90s. This is a trend different from structured programming, with a focus on actions and toward object-based programming, where the objects can be compared to nouns in our language.
DHTML allows scripting languages to change variable in a web page’s definition language, which in turn affects the look and function of otherwise “static” HTML page content, after the page has been fully loaded and during the viewing process.
71.What are technologies we use in DHTML? Explain their significance in DHTML application?
Speaking in true sense there is nothing dynamic in DHTML but enclosing technologies such as CSS, JavaScript, DOM and the static markup language it becomes dynamic.
JavaScript: Whether we call it JavaScript, Jscript, or ECMAScript, it is the most common language used today for client-side scripting. The main reason for this JavaScript comes with virtually every browser.For example, an onload event could execute a JavaScript function to query the browser’s cookies collection to determine whether the user is a first-time visitor to the page.
CSS: It stands for Cascading Style Sheet. This is used for the presentation part of the web page. In simple words it holds the designing of the page. The look & feel of the page completely depends on CSS. In DHTML CSS rules can be modified at both the document and the element level using JavaScript with event handlers, they can add a significant amount of dynamism with very little code.
DOM: It stands for Dynamic Object Model and it is the weakest link in DHTML as many of the browser does not support the DOM functionality. It defines the object and its properties. It is a standard way of accessing and manipulating the static content. The Document Object Model is a platform and language-neutral interface that allows program and scripts to dynamically access the content and update it.
72.Depict with explanation a usable real-world example of DHTML scripting?
<html>
<head>
<title> DHTML In Real World <title>
<script type=”text/javascript”>
function Opens_Child_Window()
{
var getUsername=document.getElementById(“userName”).value;
var openChild= window.open(“”,”",”height=300,width= 600″);
openchild.document.Write(“ Welcome!!!!”+getUsername)
}
</script>
</head>
<body>
<table border=”1″ boredercolor=”blue” cellspacing=”3″>
<tr>
<td> <b> User Name: </b> </td>
<td> <input type=”text” id=”userName” property=”userName”/> </td>
</tr>
<tr>
<td colspan=”2″ align=”center”>
<input type=”button” value=”Click Me!!!” onclick=”Opens_Child_Window()”/>
</td>
</tr>
</table>
</body>
</html>
In the above designed DHTML we have a textbox to take the user name and on clicking the button a function of name Opens_Child_Window( ) is called which greets user in new window with his name. The new window is opened with the help of window.open property of Window.
73.Explain how to handle events with DHTML.
A DHTML application supports numerous events, many of them quite analogous to those of a standard VB application. Events are the beating heart of any JavaScript application. For handling event in DHTML we attach event handler to HTML elements. The event handler waits until a certain event, for instance a click on a link, takes place. When it happens it handles the event by executing some JavaScript code that has been defined by us. After it has executed the code the event handlers comes to its initial state and wait for the user to fire any event. Hence to handle events in DHTML we need to register an event handler.
74.What are the attributes that make up a DHTML? Explain those attributes.
The attributes that make up DHTML are HTML, JavaScript, CSS and DOM. These are explained below as:
JavaScript: Whether we call it JavaScript, Jscript, or ECMAScript, it is the most common language used today for client-side scripting. The main reason for this JavaScript comes with virtually every browser. In DHTML JavaScript JavaScript comes with virtually every browser. For example, an onload event could execute a JavaScript function to query the browser’s cookies collection to determine whether the user is a first-time visitor to the page.
CSS: It stands for Cascading Style Sheet. This is used for the presentation part of the web page. In simple words it holds the designing of the page. The look & feel of the page completely depends on CSS. In DHTML CSS rules can be modified at both the document and the element level using JavaScript with event handlers, they can add a significant amount of dynamism with very little code.
DOM: It stands for Dynamic Object Model and it is the weakest link in DHTML as many of the browser does not support the DOM functionality. It defines the object and its properties. It is a standard way of accessing and manipulating the static content. The Document Object Model is a platform and language-neutral interface that allows program and scripts to dynamically access the content and update it.
HTML: It stands for Hyper Text Markup Language. As the names suggest it is not a programming language, it is a markup language which consists of a set of markup tags.
75.Explain three important components of Dynamic HTML authoring – Positioning, Style modifications and Event handling
Positioning: Is some what where we need the object to be placed in the graphical view i:e on screen. If we talk in DHTML sense then we have two types of positioning: Relative and Absolute.
Relative Positioning: Relative positioning is the same as the current HTML3 layout and is best reserved for situations where you want to be sure that the content will revert to this default inside a document that also uses absolute positioning.
Absolute Positioning: In DHTML absolute positioning means that the object will remain at the same position regardless of the condition of other elements and the size of the browser. In simple languages if an object/image is absolutely positioned (STYLE=”position: absolute;”), with an offset of 150 pixels to the right and 250 pixels down from the left-hand corner of the browser screen then it will avail this position what ever the circumstances may be.
Style Modifications: Style modification indicates the changes in the presentation or the view part that are being made in web page. This part comes under Cascading Style Sheet where the user style his web page by using the attributes and the tags that are pre-defined in CSS.
Event Handling: As explained earlier Events is the beating heart of any JavaScript application. For handling event in DHTML we attach event handler to HTML elements. The event handler waits until a certain event, for instance a click on a link, takes place. When it happens it handles the event by executing some JavaScript code that has been defined by us. After it has executed the code the event handler comes to its initial state and waits for the user to fire any event. Hence to handle events in DHTML we need to register an event handler.
76.What is logic match tag?
Logic match tag is an evaluator which checks the nested body content of tag whether the specified value is an appropriate substring of the requested variable. Matches the variable specified by one of the selector attributes against the specified constant value. If the value is a substring the nested body content of this tag is evaluated.
Or in other words are used to control the generation of page output by allowing conditions to be tested, loops to be set up and application flow to be directed to other pages. A comparison will often involve a bean created with one of the bean tags.
For e: g: <logic: match header=”User-Agent” value=”Mozilla”> Hi Mozilla browser </logic: match>
77.Explain about struts dispatch action in DHTML
DispatchAction is an action that comes with Struts 1.1 or later, that let us combine Struts actions into single class, each with their own method. The org.apache.struts.action.DispatchAction class allows multiple operations to map to the different functions in the same Action class.
For e:g; html:hidden property=”dispatch” value=”error”/>
<SCRIPT>function set(target) {document. forms[0].dispatch. value=target;}</SCRIPT>
78.How do I change the title of a framed document?
The title displayed is the title of the frameset document rather than the titles of any of the pages within frames. To change the title displayed, link to a new frameset document using TARGET=”_top” (replacing the entire frameset).
79.How do I link an image to something?
Just use the image as the link content, like this:
<a href=…><img src=… alt=…></a>
80.How do I eliminate the blue border around linked images?
In your HTML, you can specify the BORDER attribute for the image:
<a href=…><img src=… alt=… border=”0″></a>
However, note that removing the border that indicates an image is a link makes it harder for users to distinguish quickly and easily which images on a web page are clickable.
81.How to upload struts file in DHTML?
The interface org.apache.struts.upload.FormFile is used for the struts file upload application. This interface represents a file that has been uploaded by a client. It is the only interface or class in upload package which is typically referenced directly by a Struts application.
This is not specific to Struts in case of DHTML but the two things that are needed in DHTML page is: first, the form needs to specify an enctype of multipart/form-data and second an <input> form control of type file.
Following are the steps to load file in DHTML:
Creating a bean
Writing the ActionClass.
Mapping the bean in struts-config.xml
Defining actionmapping
Developing the DHTML page.
82.Steps used to create a tiles application in DHTML
Create a template that designs a layout for your application.
Create the composing pages.
Create a definition which means that suppose that you configured Tiles, in web.xml, to startup using the TilesServlet, we need to specify which files will contain the Tiles definitions to load.
Render the definition.
83.How do we create a DHTML drop-down menu?
In order to create a DHTML drop down menu we need JavaScript API. The API (Application Programming Interface) consists of core set of cross-browser JavaScript functions to make DHTML programming easy and quick. This API enables moving and hiding page elements as well as acts as getter and setter of page elements attributes.
Second we define on image object and off image object and string containing the URL of the “off” version.
Then we create the menu items, label items and sub-menu items. If we wish we can use images also.
Then we need to define our own global variables that will be used by the menu. Using global goes against oops design but makes sharing data easier.
Create the menubar object, adding the menu labels and writing menubars.
Create menu object, adding menu items and writing menus.
Hiding and displaying the menus and attaching stylesheet.
84.What is XHTML? Why is XHTML needed? Advantages of using XHTML rather than HTML
XHTML stands for Extensible Hypertext Markup Language and is a cross between HTML and XML. It helps us to create better formatted code for site. It makes site more accessible.
Need for XHTML: XHTML has a more strict syntax rules in comparison of HTML. XHTML gives you a more consistent, well structured format so that your webpages can be easily parsed and processed by present and future web browsers. It also makes your website more easy to maintain, edit, convert and format in the long run.
Benefits:
XHTML documents are XML conforming. As such, they are readily viewed, edited, and validated with standard XML tools.
XHTML documents can be written to operate better than they did before in existing browsers as well as in new browsers.
XHTML documents can utilize applications like scripts and applets that rely upon either the HTML Document Object Model or the XML Document Object Model.
85.Distinguish between Static vs. Dynamic HTML.
The easiest difference is static HTML once rendered cannot be changed on the other hand dynamic HTML can be changed
86.What are technologies we use in DHTML? Explain their significance in DHTML application?
Speaking in true sense there is nothing dynamic in DHTML but enclosing technologies such as CSS, JavaScript, DOM and the static markup language it becomes dynamic
87.Which browsers support DHTML and how will non-supporting browsers handle DHTML?
Version of Netscape navigator and Internet Explorer higher than 4.0 or 4.0 supports DHTML in easy way. But as compared to both browsers Internet Explorer 4.0+ supports the DHTML in the best way.
88.Describe how DHTML work with JavaScript
As DHTML is not a language and it just use the property of HTML, JavaScript and CSS to make dynamic content. So here I will represents the working of DHTML with JavaScript with a simple example that just greets user with its name.
89.What are technologies we use in DHTML? Explain their significance in DHTML application?
Speaking in true sense there is nothing dynamic in DHTML but enclosing technologies such as CSS, JavaScript, DOM and the static markup language it becomes dynamic
90.How do you insert a comment in html?
Comments in html begins with “<!–”nd ends with “–>”.
91.hat are style sheets?
Style sheets enable you to build consistent, transportable, and well-defined style templates. These templates can be linked to several different web pages, making it easy to maintain and change the look and feel of all the web pages within a site.
92.How do I link an image to something?
Just use the image as the link content, like this:
<a href=…><img src=… alt=…></a>
93.How do I create a link that sends me email?
Use a mailto link.
94.How do I make a form so it can be submitted by hitting ENTER?
The short answer is that the form should just have one <INPUT TYPE=TEXT> and no TEXTAREA, though it can have other form elements like checkboxes and radio buttons.
95.How comfortable are you with writing HTML entirely by hand?
Very. I don’t usually use WYSIWYG. The only occasions when I do use Dreamweaver are when I want to draw something to see what it looks like, and then I’ll usually either take that design and hand-modify it or build it all over again from scratch in code. I have actually written my own desktop HTML IDE for Windows (it’s called Less Than Slash) with the intention of deploying it for use in web development training. If has built-in reference features, and will autocomplete code by parsing the DTD you specify in the file. That is to say, the program doesn’t know anything about HTML until after it parses the HTML DTD you specified. This should give you some idea of my skill level with HTML.
96.What are the commonly used data types in VBScript?
All data types in VBScript are variants.
97.Where’s ASP cache located on IIS 6.0?
On disk, as opposed to memory, as it used to be in IIS 5.
98.What does the delete operator do?
The delete operator is used to delete all the variables and objects used in the program ,but it does not delete variables declared with var keyword.
99.How do I make a graphic a link in HTML?
by Including the “img” tag between the “a href” tag and the “a” closing tag
100.What is negative infinity?
It’s a number in JavaScript, derived by dividing negative number by zero.
101.What are JavaScript types?
Number, String, Boolean, Function, Object, Null, Undefined
by Including the “img” tag between the “a href” tag and the “a” closing tag:
2.What are the commonly used data types in VBScript?
All data types in VBScript are variants.
3. What is DHTML?
DHTML means dynamic hyper text markup language it combines of static HTML, cascading style sheets (CSS) and scripting. by using scripting with CSS we can manipulate document object model (DOM) to get dynamic effect of the page.
4.What is a virtual root and how do you create one?
A virtual root is essentially a new web site in IIS. You’d create one in the MMC by either selecting “New Virtual Site” from the site context menu, or clicking “Create” in the Home Directory tab in the properties for any existing folder. Using the first method, you can also create a virtual root that points to a logical directory outside the current web root. The new virtual root is largely, although not completely, as configurable as a new web site.
5.How would you remotely administer IIS?
Win2K and Win2K3 comes with a limited terminal services server built in for remote administration of the server. Set it up as remote client and use the TS client or Remote Desktop Connection on the client to login. From there, use MMC as if you were logged on locally.
6.How would you go about securing IIS and MS-SQL Server?
1. stay up to date on patches and keep security software (AV, firewall, IDS, maybe even packet logging, etc.) running.
2. IIS authenticates against domain users (even if the domain is “Local Machine”). Make sure you have no spurious users, and secure everyone’s passwords. If possible, segregate public web machines into different ACL segments (e.g. — a different domain).
3. Be careful with security policies. The standard server install comes with hardened LSP templates, which you should consider if you’re not experienced enough to build your own. Non-front tiers should have tight security policies barring anyone outside the adjacent tiers (and maybe a test machine or two) from access.
7.How do I make a graphic a link in HTML?
by Including the “img” tag between the “a href” tag and the “a” closing tag:
8.What scripts ship with IIS 6.0?
iisweb.vsb to create, delete, start, stop, and list Web sites, iisftp.vsb to create, delete, start, stop, and list FTP sites, iisdir.vsb to create, delete, start, stop, and display virtual directories, iisftpdr.vsb to create, delete, start, stop, and display virtual directories under an FTP root, iiscnfg.vbs to export and import IIS configuration to an XML file
9.What’s the name of the user who connects to the Web site anonymously?>
IUSR_computername
10.What secure authentication and encryption mechanisms are supported by IIS 6.0?
Basic authentication, Digest authentication, Advanced digest authentication, Certificate-based Web transactions that use PKCS #7/PKCS #10, Fortezza, SSL, Server-Gated Cryptography, Transport Layer Security
11.Where’s ASP cache located on IIS 6.0?
On disk, as opposed to memory, as it used to be in IIS 5.
12. What is socket pooling?
Non-blocking socket usage, introduced in IIS 6.0. More than one application can use a given socket.
13.What are JavaScript types?
Number, String, Boolean, Function, Object, Null, Undefined
14.How do you convert numbers between different bases in JavaScript?
Use the parseInt() function, that takes a string as the first parameter, and the base as a second parameter. So to convert hexadecimal 3F to decimal, use parseInt (“3F”, 16);
15.What is negative infinity?
It’s a number in JavaScript, derived by dividing negative number by zero.
16.What can javascript programs do?
Generation of HTML pages on-the-fly without accessing the Web server.
The user can be given control over the browser like User input validation Simple computations can be performed on the client’s machine The user’s browser, OS, screen size, etc. can be detected
Date and Time Handling
17.What does the “Access is Denied” IE error mean?
The “Access Denied” error in any browser is due to the following reason.A javascript in one window or frame is tries to access another window or frame whose document’s domain is different from the document containing the script.
18. Is a javascript script faster than an ASP script?
Yes.Since javascript is a client-side script it does require the web server’s help for its computation,so it is always faster than any server-side script like ASP,PHP,etc..
19.Are Java and JavaScript the Same?
No.java and javascript are two different languages. Java is a powerful object – oriented programming language like C++,C whereas Javascript is a client-side scripting language with some limitations.
20.Does javascript have the concept level scope?
No. JavaScript does not have block level scope,all the variables declared inside a function possess the same level of scope unlike c,c++,java.
21. What are undefined and undeclared variables?
Undeclared variables are those that are not declared in the program (do not exist at all), trying to read their values gives runtime error.But if undeclared variables are assigned then implicit declaration is done .
Undefined variables are those that are not assigned any value but are declared in the program. Trying to read such variables gives special value called undefined value.
22.What does the delete operator do?
The delete operator is used to delete all the variables and objects used in the program ,but it does not delete variables declared with var keyword.
23.How to create a function using function constructor?
The following example illustrates this
It creates a function called square with argument x and returns x multiplied by itself.
var square = new Function (“x”,”return x*x”);
24.What does the delete operator do?
The delete operator is used to delete all the variables and objects used in the program ,but it does not delete variables declared with var keyword.
25.What is === operator ?
==== is strict equality operator ,it returns true only when the two operands are having the same value without any type conversion.
26.What is HTML DOM?
The HTML DOM stands for the Document Object Model, which is a way of representing the various tags and objects in side the DHTML page. We access the various objects and manipulate them by having the DOM based hierarchy, especially in the JavaScript. The DOM represents the various objects in a hierarchy and each of them generates events from the user. The reaction of the webpage to such events produce the dynamism associated with the web page.
27.What is JavaScript?
JavaScript is the client side scripting language that can work on all the browsers. The JavaScript is the one that offers the capability to change the content, create dynamic content, change the style of the various elements inside the webpage. There are many predefined functions that can be used from the JavaScript engine.
28.Write a DHTML page with a input box where background changes when the mouse is over the specified input box.
<html><head><script>
{document.getElementById(‘box’).style.background=color;
}</script>
</head>
<body>
<input value=”Mouse Over changes colors” size=”30? onmouseover=”backgroundColor(‘green’)”>
</body>
</html>
29 How would you remotely administer IIS?
Win2K and Win2K3 comes with a limited terminal services server built in for remote administration of the server. Set it up as remote client and use the TS client or Remote Desktop Connection on the client to login. From there, use MMC as if you were logged on locally.
30.How would you go about securing IIS and MS-SQL Server?
1. stay up to date on patches and keep security software (AV, firewall, IDS, maybe even packet logging, etc.) running.
2. IIS authenticates against domain users (even if the domain is “Local Machine”). Make sure you have no spurious users, and secure everyone’s passwords. If possible, segregate public web machines into different ACL segments (e.g. — a different domain).
3. Be careful with security policies. The standard server install comes with hardened LSP templates, which you should consider if you’re not experienced enough to build your own. Non-front tiers should have tight security policies barring anyone outside the adjacent tiers (and maybe a test machine or two) from access.
31. Distinguish between Static vs. Dynamic HTML
The easiest difference is static HTML once rendered cannot be changed on the other hand dynamic HTML can be changed.
Static web pages cannot have database access but dynamic pages can be connected to database.
Using static HTML no interactions persist between user and server but dynamic HTML has capability to interact with the user.
Static HTML does not require server side coding but dynamic HTML requires server side coding.
No animation, games can be developed using the static HTML but on the other hand dynamic HTML can perform this task.
32. How DHTML work with JavaScript?
Using JavaScript we can made dynamic HTML content.
We can use document.write() to show dynamic content on your web page.Below I have given you HTML page which made dynamic after using JavaScript.This example will show current date.
Example:
<html> <body>
<script type=”text/javascript”>
document.write(Date()); </script>
</body> </html>
33.Tell about technologies that we use in DHTML?
Some technologies that we used in DHTMl are given below:
1.JavaScript
2.HTML DOM
3.HTML EVENT
4.CSS
1.J It is an standard of scripting for HTML. Using JavaScript DHTML can control,access and manipulate HTML element. 2.HTML DOM: It is an Document Object Model which is an W3C Standard for HTML.Using HTML DOM is used to define standard to set of objects and to access and manipulate them for HTML.Using HTML DOM, DHTML can access and manipulate HTML elements. 3.HTML Events: It is an part of HTML DOM and used to handle HTML elements.We use DHTML with HTML Events to make web pages those perform action when event occour. 4.CSS: It is an W3C standard style and layout model made only for HTML. DHTML use JavaScript and DOM to change position and style of HTML elements
34.What is a Hypertext link?
A hypertext link is a special tag that links one page to another page or resource. If you click the link, the browser jumps to the link’s destination.
35.How comfortable are you with writing HTML entirely by hand?
Very. I don’t usually use WYSIWYG. The only occasions when I do use Dreamweaver are when I want to draw something to see what it looks like, and then I’ll usually either take that design and hand-modify it or build it all over again from scratch in code. I have actually written my own desktop HTML IDE for Windows (it’s called Less Than Slash) with the intention of deploying it for use in web development training. If has built-in reference features, and will autocomplete code by parsing the DTD you specify in the file. That is to say, the program doesn’t know anything about HTML until after it parses the HTML DTD you specified. This should give you some idea of my skill level with HTML.
35.What is everyone using to write HTML?
Everyone has a different preference for which tool works best for them. Keep in mind that typically the less HTML the tool requires you to know, the worse the output of the HTML. In other words, you can always do it better by hand if you take the time to learn a little HTML.
36.What is the difference between form get and form post?
With GET the form data is encoded into a URL by the browser. The form data is visible in the URL allowing it to be bookmarked and stored in web history. The form data is restricted to ASCII codes. Because URL lengths are limited there can be limitations on how much form data can be sent.
Post
With POST all the name value pairs are submitted in the message body of the HTTP request which has no restrictions on the length of the string. The name value pairs cannot be seen in the web browser bar.
POST and GET correspond to different HTTP requests and they differ in how they are submitted. Since the data is encoded in differently, different decoding may be needed.
37.List some common IE6 bugs and how you dealt with them?
Ie6 is not dead, just ask China which represents a nice chunk of the worlds online population. Your pages should at least be functional on IE6, unless you dont care about half the worlds population.
38.What is the importance of the HTML DOCTYPE?
The doctype declaration should be the very first thing in an HTML document, before the html tag.
The doctype declaration is not an HTML tag; it is an instruction to the web browser about what version of the markup language the page is written in.
The doctype declaration refers to a Document Type Definition (DTD). The DTD specifies the rules for the markup language, so that the browsers can render the content correctly.
39.What are some of the online tools and resources you use when you have a problem? Where do you go to ask questions?
This question really just looks for how resourceful the candidate is, it also reflects on their problem solving process and may lead you to ask more questions.
40.What is web a application?
A great question to feel out the depth of the applicants knowledge and experience.
A web application is an application utilizing web and [web] browser technologies to accomplish one or more tasks over a network, typically through a [web] browser.
41.Wht is a CSS File? It is used for what purpose
CSS stands for “Cascading Style Sheets”, and are used to control and manage font styles, font sizes, and web site color combinations that are used in a web page. In order to retain continuity of “look and feel” throughout a website, all pages within a website will often refer to a single CSS file. The CSS file is typically contained in a separate file from the website, and the various web pages retrieve the CSS file each time a web page is displayed. CSS files make global appearance changes easy — a single change in a CSS file will mean that any pages using that CSS file will automatically display the changes
42.How do I make a picture as a background on my web pages?
Point the body background to the name of your image you wish to use as the background as shown below. This body line should be the first line after your < / head> tag.
< body background=”picture.gif” >
You can also have the background image fixed, so it does not move when using the scroll bar in the browser. To do this add the BGPROPERTIES tag as shown below. < body background=”picture.gif” bgproperties=”fixed” >
43.How do I add scrolling text to my page?
Keep in mind not all browsers support scrolling text. however to do this add a tag similar to the below example. < marquee >THIS WOULD SCROLL< /marquee> The above example would create the below scrolling text. If your browser supports scrolling text the below example should be scrolling. More examples can be found on our main HTML page that lists most of the HTML commands.
44.How do I make it so that someone can mail me by just clicking on text with subject?
Use the mailto command in your A HREF link tag as shown below. < A HREF=”mailto:support@computerhope.com?Subject=Enquiry” “>Click here to mail Computer Hope< / A> .
45.Is CSS case sensitive?
Cascading Style Sheets (CSS) is not case sensitive. However, font families, URLs to images, and other direct references with the style sheet may be. The trick is that if you write a document using an XML declaration and an XHTML doctype, then the CSS class names will be case sensitive for some browsers. It is a good idea to avoid naming classes where the only difference is the case, for example: div.myclass { …} div.myClass { … } If the DOCTYPE or XML declaration is ever removed from your pages, even by mistake, the last instance of the style will be used, regardless of case.
46.What are the five possible values for “position”?
Values for position: static, relative, absolute, fixed, inherit
47.How does the browser determine where to place positioned elements?
How does the browser determine where to place positioned elements?
48.What are JavaScript types?
Number, String, Boolean, Function, Object, Null, Undefined.
49.What does isNaN function do?
Return true if the argument is not a number.
50.How do you convert numbers between different bases in JavaScript?
Use the parseInt() function, that takes a string as the first parameter, and the base as a second parameter. So to convert hexadecimal 3F to decimal, use parseInt (“3F”, 16);
51.What is negative infinity?
It’s a number in JavaScript, derived by dividing negative number by zero.
52.What does “1″+2+4 evaluate to?
Since 1 is a string, everything is a string, so the result is 124.
53.What is the difference between an alert box and a confirmation box?
An alert box displays only one button which is the OK button whereas the Confirm box displays two buttons namely OK and cancel.
54.What is a prompt box?
A prompt box allows the user to enter input by providing a text box.
55.What is work Area in photoshop?
The work area can be intimidating to work with because of all the complex functionality but with a quick breakdown of the available features and their uses, you will be ready to comfortably navigate the work area with ease. The work area in Photoshop has the following basic functionality and features: ? Menu Bar ? this is where you can access most of the commands and features in Photoshop ? Drawing Palette ? where the image being worked on will appear ? Options bar ? content sensitive display of tool options ? changes as different tools are selected ? display using Window > Options or Click a tool in the toolbox. Lasso options bar ? Tool box – for creating an editing images (display or hide using Windows > Tools) ? Palettes – to monitor and modify images (there are 5 palettes by default) ? Palette Well – to organize palettes in work area ? Drag a palette?s tab into the palette well to store it in the palette well ? Once in the palette well click on the palette tab to use it
56.How Can you organize layers as in photoshop?
Yes we can organize layes.. For example you create a Ball in 1st layer and then in second layer you create the background. But you should lock all the layers and unlock the layer which u r working, because unlocked layers will be active always(active means, if u want to drage the ball, backgroung layers also will be affected)
57.How do I specify page breaks in HTML?
Here is no way in standard HTML to specify where page breaks will occur when printing a page. HTML was designed to be a device-independent structural definition language, and page breaks depend on things like the fonts and paper size that the person viewing the page is using.
58.How do I add scrolling text to my page?
Add a Tag of marquee
59.How do I close a browser window with HTML code?
Use the below code example. < type=”button” value=”Close this window” onclick=”self.close()”>
60.Is it possible to make the HTML source not viewable?
There is no real method or script for making standard HTML source code not viewable.
There are various script that Disable Right click feature.
61.How do I do multiple colors of text?
To do the multicolor text adjust the color of your font tag as:
< font color=”blue”>blue
62.WHow do I make a picture a link?
Use the A HREF link tag around the IMG image tag as:
< A HREF=”http://www.computerhope.com”> < image SRC=”title.gif”>
63.What is meant by iframe ?
iframe is used for creating an inline or floating frame. As most of know frames are mainly used to structure the page or for placing a menu bar on the side and so on. But iframe is used in a different context. That is in other words iframe is used to embed or insert content on a page of padding. This is done for several reasons. Say the content may be large enough that the user may wish to place it separately and scroll through it
64.How to place a background for a single table cell?
You can put a background for a single table cell in two ways namely: Either by
using HTML
Using CSS
65.What are differences between DIV and SPAN?
DIV is used to select a block of text so that one can apply styles to it.
SPAN is used to select inline text and let users to apply styles to it.
The main difference between DIV and SPAN is SPAN does not do formatting by itself. Also the DIV tag is used as a paragraph break as it creates a logical division of the document in which it is applied. This is in contrast to the SPAN as SPAN simply dos the functionality of applying the style and alignment whatever was specified in it. DIV has ALIGN attribute in it which is not present in case of SPAN. Thus DIV is used in cases where one wants to apply styles to a block of text. But there may be situations in which there might not be clear well structured block of text to work with. In those cases one can opt to apply SPAN which is used to apply styles inline. That is in other words DIV is generally used for block of text and SPAN is generally used for words or sentences.
66.What is DHTML? What are the features of DHTML?
DHTML stands for Dynamic HTML. The first thing that we need to clear about DHTML is that it is neither a language like HTML, JavaScript etc. nor a web standard. It is just a combination of HTML, JavaScript and CSS. It just uses these languages features to build dynamic web pages. DHTML is a feature of Netscape Communicator 4.0, and Microsoft Internet Explorer 4.0 and 5.0 and is entirely a “client-side” technology.
Features of DHTML:
Simplest feature is making the page dynamic.
Can be used to create animations, games, applications, provide new ways of navigating through web sites.
DHTML use low-bandwidth effect which enhance web page functionality.
Dynamic building of web pages is simple as no plug-in is required.
Facilitates the usage of events, methods and properties and code reuse.
67.Which browsers support DHTML and how will non-supporting browsers handle DHTML?
Version of Netscape navigator and Internet Explorer higher than 4.0 or 4.0 supports DHTML in easy way. But as compared to both browsers Internet Explorer 4.0+ supports the DHTML in the best way.
DHTML includes JavaScript to make the page dynamic and regardless of which scripts is written for and the scripts are designed in such a way that it can be compatible with as many numbers of browsers as possible. The most important thing that must be kept in the mind is that we must test the code before running it over the server or making it live. Also we certainly cannot guarantee that all users will use the browser that will support the scripts.
68.Describe how DHTML work with JavaScript.
As DHTML is not a language and it just use the property of HTML, JavaScript and CSS to make dynamic content. So here I will represents the working of DHTML with JavaScript with a simple example that just greets user with its name:
<! DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<title>DHTML example</title>
<script type=”text/JavaScript”>
function greet_user()
{
var name=document.getElementById(“userName”).value;
if(name==””){
alert(“Welcome”+name);
}
else{
alert(“Please provide User Name”)
}
}
</script>
</head>
<body>
<table border=”1” cellspacing=”3”>
<tr>
<td colspan=”2”><h6> Please Enter Your Name </h6></td>
</tr>
<tr>
<td><h4>User Name </h4></td>
<td><input type=”text” id=”userName” ></td>
</tr>
<tr>
<td colspan=”2”><input type=”button” value=”Submit” onclick=”greet_user()”/>
</table>
</body>
</html>
69.Distinguish between Static vs. Dynamic HTML
The easiest difference is static HTML once rendered cannot be changed on the other hand dynamic HTML can be changed.
Static web pages cannot have database access but dynamic pages can be connected to database.
Using static HTML no interactions persist between user and server but dynamic HTML has capability to interact with the user.
Static HTML does not require server side coding but dynamic HTML requires server side coding.
No animation, games can be developed using the static HTML but on the other hand dynamic HTML can perform this task.
70.Explain the Working of DHTML
DHTML as it is combination of HTML as well as JavaScript and it uses the HTML to render the text on the browser. It also uses DOM dynamic Object Model which renders its every element as an Object that can be changed by setting properties and methods. This is done with the help of Scripting. DHTML is part of the general computing trend of late ’90s. This is a trend different from structured programming, with a focus on actions and toward object-based programming, where the objects can be compared to nouns in our language.
DHTML allows scripting languages to change variable in a web page’s definition language, which in turn affects the look and function of otherwise “static” HTML page content, after the page has been fully loaded and during the viewing process.
71.What are technologies we use in DHTML? Explain their significance in DHTML application?
Speaking in true sense there is nothing dynamic in DHTML but enclosing technologies such as CSS, JavaScript, DOM and the static markup language it becomes dynamic.
JavaScript: Whether we call it JavaScript, Jscript, or ECMAScript, it is the most common language used today for client-side scripting. The main reason for this JavaScript comes with virtually every browser.For example, an onload event could execute a JavaScript function to query the browser’s cookies collection to determine whether the user is a first-time visitor to the page.
CSS: It stands for Cascading Style Sheet. This is used for the presentation part of the web page. In simple words it holds the designing of the page. The look & feel of the page completely depends on CSS. In DHTML CSS rules can be modified at both the document and the element level using JavaScript with event handlers, they can add a significant amount of dynamism with very little code.
DOM: It stands for Dynamic Object Model and it is the weakest link in DHTML as many of the browser does not support the DOM functionality. It defines the object and its properties. It is a standard way of accessing and manipulating the static content. The Document Object Model is a platform and language-neutral interface that allows program and scripts to dynamically access the content and update it.
72.Depict with explanation a usable real-world example of DHTML scripting?
<html>
<head>
<title> DHTML In Real World <title>
<script type=”text/javascript”>
function Opens_Child_Window()
{
var getUsername=document.getElementById(“userName”).value;
var openChild= window.open(“”,”",”height=300,width= 600″);
openchild.document.Write(“ Welcome!!!!”+getUsername)
}
</script>
</head>
<body>
<table border=”1″ boredercolor=”blue” cellspacing=”3″>
<tr>
<td> <b> User Name: </b> </td>
<td> <input type=”text” id=”userName” property=”userName”/> </td>
</tr>
<tr>
<td colspan=”2″ align=”center”>
<input type=”button” value=”Click Me!!!” onclick=”Opens_Child_Window()”/>
</td>
</tr>
</table>
</body>
</html>
In the above designed DHTML we have a textbox to take the user name and on clicking the button a function of name Opens_Child_Window( ) is called which greets user in new window with his name. The new window is opened with the help of window.open property of Window.
73.Explain how to handle events with DHTML.
A DHTML application supports numerous events, many of them quite analogous to those of a standard VB application. Events are the beating heart of any JavaScript application. For handling event in DHTML we attach event handler to HTML elements. The event handler waits until a certain event, for instance a click on a link, takes place. When it happens it handles the event by executing some JavaScript code that has been defined by us. After it has executed the code the event handlers comes to its initial state and wait for the user to fire any event. Hence to handle events in DHTML we need to register an event handler.
74.What are the attributes that make up a DHTML? Explain those attributes.
The attributes that make up DHTML are HTML, JavaScript, CSS and DOM. These are explained below as:
JavaScript: Whether we call it JavaScript, Jscript, or ECMAScript, it is the most common language used today for client-side scripting. The main reason for this JavaScript comes with virtually every browser. In DHTML JavaScript JavaScript comes with virtually every browser. For example, an onload event could execute a JavaScript function to query the browser’s cookies collection to determine whether the user is a first-time visitor to the page.
CSS: It stands for Cascading Style Sheet. This is used for the presentation part of the web page. In simple words it holds the designing of the page. The look & feel of the page completely depends on CSS. In DHTML CSS rules can be modified at both the document and the element level using JavaScript with event handlers, they can add a significant amount of dynamism with very little code.
DOM: It stands for Dynamic Object Model and it is the weakest link in DHTML as many of the browser does not support the DOM functionality. It defines the object and its properties. It is a standard way of accessing and manipulating the static content. The Document Object Model is a platform and language-neutral interface that allows program and scripts to dynamically access the content and update it.
HTML: It stands for Hyper Text Markup Language. As the names suggest it is not a programming language, it is a markup language which consists of a set of markup tags.
75.Explain three important components of Dynamic HTML authoring – Positioning, Style modifications and Event handling
Positioning: Is some what where we need the object to be placed in the graphical view i:e on screen. If we talk in DHTML sense then we have two types of positioning: Relative and Absolute.
Relative Positioning: Relative positioning is the same as the current HTML3 layout and is best reserved for situations where you want to be sure that the content will revert to this default inside a document that also uses absolute positioning.
Absolute Positioning: In DHTML absolute positioning means that the object will remain at the same position regardless of the condition of other elements and the size of the browser. In simple languages if an object/image is absolutely positioned (STYLE=”position: absolute;”), with an offset of 150 pixels to the right and 250 pixels down from the left-hand corner of the browser screen then it will avail this position what ever the circumstances may be.
Style Modifications: Style modification indicates the changes in the presentation or the view part that are being made in web page. This part comes under Cascading Style Sheet where the user style his web page by using the attributes and the tags that are pre-defined in CSS.
Event Handling: As explained earlier Events is the beating heart of any JavaScript application. For handling event in DHTML we attach event handler to HTML elements. The event handler waits until a certain event, for instance a click on a link, takes place. When it happens it handles the event by executing some JavaScript code that has been defined by us. After it has executed the code the event handler comes to its initial state and waits for the user to fire any event. Hence to handle events in DHTML we need to register an event handler.
76.What is logic match tag?
Logic match tag is an evaluator which checks the nested body content of tag whether the specified value is an appropriate substring of the requested variable. Matches the variable specified by one of the selector attributes against the specified constant value. If the value is a substring the nested body content of this tag is evaluated.
Or in other words are used to control the generation of page output by allowing conditions to be tested, loops to be set up and application flow to be directed to other pages. A comparison will often involve a bean created with one of the bean tags.
For e: g: <logic: match header=”User-Agent” value=”Mozilla”> Hi Mozilla browser </logic: match>
77.Explain about struts dispatch action in DHTML
DispatchAction is an action that comes with Struts 1.1 or later, that let us combine Struts actions into single class, each with their own method. The org.apache.struts.action.DispatchAction class allows multiple operations to map to the different functions in the same Action class.
For e:g; html:hidden property=”dispatch” value=”error”/>
<SCRIPT>function set(target) {document. forms[0].dispatch. value=target;}</SCRIPT>
78.How do I change the title of a framed document?
The title displayed is the title of the frameset document rather than the titles of any of the pages within frames. To change the title displayed, link to a new frameset document using TARGET=”_top” (replacing the entire frameset).
79.How do I link an image to something?
Just use the image as the link content, like this:
<a href=…><img src=… alt=…></a>
80.How do I eliminate the blue border around linked images?
In your HTML, you can specify the BORDER attribute for the image:
<a href=…><img src=… alt=… border=”0″></a>
However, note that removing the border that indicates an image is a link makes it harder for users to distinguish quickly and easily which images on a web page are clickable.
81.How to upload struts file in DHTML?
The interface org.apache.struts.upload.FormFile is used for the struts file upload application. This interface represents a file that has been uploaded by a client. It is the only interface or class in upload package which is typically referenced directly by a Struts application.
This is not specific to Struts in case of DHTML but the two things that are needed in DHTML page is: first, the form needs to specify an enctype of multipart/form-data and second an <input> form control of type file.
Following are the steps to load file in DHTML:
Creating a bean
Writing the ActionClass.
Mapping the bean in struts-config.xml
Defining actionmapping
Developing the DHTML page.
82.Steps used to create a tiles application in DHTML
Create a template that designs a layout for your application.
Create the composing pages.
Create a definition which means that suppose that you configured Tiles, in web.xml, to startup using the TilesServlet, we need to specify which files will contain the Tiles definitions to load.
Render the definition.
83.How do we create a DHTML drop-down menu?
In order to create a DHTML drop down menu we need JavaScript API. The API (Application Programming Interface) consists of core set of cross-browser JavaScript functions to make DHTML programming easy and quick. This API enables moving and hiding page elements as well as acts as getter and setter of page elements attributes.
Second we define on image object and off image object and string containing the URL of the “off” version.
Then we create the menu items, label items and sub-menu items. If we wish we can use images also.
Then we need to define our own global variables that will be used by the menu. Using global goes against oops design but makes sharing data easier.
Create the menubar object, adding the menu labels and writing menubars.
Create menu object, adding menu items and writing menus.
Hiding and displaying the menus and attaching stylesheet.
84.What is XHTML? Why is XHTML needed? Advantages of using XHTML rather than HTML
XHTML stands for Extensible Hypertext Markup Language and is a cross between HTML and XML. It helps us to create better formatted code for site. It makes site more accessible.
Need for XHTML: XHTML has a more strict syntax rules in comparison of HTML. XHTML gives you a more consistent, well structured format so that your webpages can be easily parsed and processed by present and future web browsers. It also makes your website more easy to maintain, edit, convert and format in the long run.
Benefits:
XHTML documents are XML conforming. As such, they are readily viewed, edited, and validated with standard XML tools.
XHTML documents can be written to operate better than they did before in existing browsers as well as in new browsers.
XHTML documents can utilize applications like scripts and applets that rely upon either the HTML Document Object Model or the XML Document Object Model.
85.Distinguish between Static vs. Dynamic HTML.
The easiest difference is static HTML once rendered cannot be changed on the other hand dynamic HTML can be changed
86.What are technologies we use in DHTML? Explain their significance in DHTML application?
Speaking in true sense there is nothing dynamic in DHTML but enclosing technologies such as CSS, JavaScript, DOM and the static markup language it becomes dynamic
87.Which browsers support DHTML and how will non-supporting browsers handle DHTML?
Version of Netscape navigator and Internet Explorer higher than 4.0 or 4.0 supports DHTML in easy way. But as compared to both browsers Internet Explorer 4.0+ supports the DHTML in the best way.
88.Describe how DHTML work with JavaScript
As DHTML is not a language and it just use the property of HTML, JavaScript and CSS to make dynamic content. So here I will represents the working of DHTML with JavaScript with a simple example that just greets user with its name.
89.What are technologies we use in DHTML? Explain their significance in DHTML application?
Speaking in true sense there is nothing dynamic in DHTML but enclosing technologies such as CSS, JavaScript, DOM and the static markup language it becomes dynamic
90.How do you insert a comment in html?
Comments in html begins with “<!–”nd ends with “–>”.
91.hat are style sheets?
Style sheets enable you to build consistent, transportable, and well-defined style templates. These templates can be linked to several different web pages, making it easy to maintain and change the look and feel of all the web pages within a site.
92.How do I link an image to something?
Just use the image as the link content, like this:
<a href=…><img src=… alt=…></a>
93.How do I create a link that sends me email?
Use a mailto link.
94.How do I make a form so it can be submitted by hitting ENTER?
The short answer is that the form should just have one <INPUT TYPE=TEXT> and no TEXTAREA, though it can have other form elements like checkboxes and radio buttons.
95.How comfortable are you with writing HTML entirely by hand?
Very. I don’t usually use WYSIWYG. The only occasions when I do use Dreamweaver are when I want to draw something to see what it looks like, and then I’ll usually either take that design and hand-modify it or build it all over again from scratch in code. I have actually written my own desktop HTML IDE for Windows (it’s called Less Than Slash) with the intention of deploying it for use in web development training. If has built-in reference features, and will autocomplete code by parsing the DTD you specify in the file. That is to say, the program doesn’t know anything about HTML until after it parses the HTML DTD you specified. This should give you some idea of my skill level with HTML.
96.What are the commonly used data types in VBScript?
All data types in VBScript are variants.
97.Where’s ASP cache located on IIS 6.0?
On disk, as opposed to memory, as it used to be in IIS 5.
98.What does the delete operator do?
The delete operator is used to delete all the variables and objects used in the program ,but it does not delete variables declared with var keyword.
99.How do I make a graphic a link in HTML?
by Including the “img” tag between the “a href” tag and the “a” closing tag
100.What is negative infinity?
It’s a number in JavaScript, derived by dividing negative number by zero.
101.What are JavaScript types?
Number, String, Boolean, Function, Object, Null, Undefined
No comments:
Post a Comment