Web Technology Questions

Q:

What is the procedure to configure the web browser to accept or reject cookies?

Answer

- The web browser visits a website using the HTTP and then it keeps the track of the identity of the user visiting the web page.


- The cookies of HTTP get stored with the personal information of the user and it doesn’t accept the information. 


- Users accept the cookies as by rejecting all the cookies will load the web page in longer time and it will not be desired by the users. 


- Even if the cookie is being rejected a session cookie is being kept for use as it is the provision given to the web browser to use it. 


- The cookies gets stored temporary basis depending on the user of accepting or rejecting it and it basically saves the session so that the duration of the page load can be reduced.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1607
Q:

How do you parse/validate the XML document?

Answer

Parsing the XML document is the only way to validate the XML file. Validation is done by either DOM parser or the SAX parser. 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1606
Q:

.What are the different types of environments available in the web?

Answer

Intranet  (local Network)


Internet  (wide area Network)


Extranet (Private network over internet)

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1604
Q:

What are the ways to change the cookie setting using the web browser?

Answer

The cookie settings include the enabling and disabling of the services that are used with the web browsers.


The following steps are taken to set the cookies:


- The TOOLS menu is being opened on web browser and the privacy tab is selected from where the privacy of individual user can be managed. 


- Using the ADVANCED tab the options to set the cookies will be visible and it will allow the overriding of cookie. 


- The cookies can be accepted by checking the first party cookies or the third party cookies. Out of these choices the first party cookies provide more security. 


- Check the checkbox for "Always allow session cookies" so that the session cookies can be maintained. 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1603
Q:

What is the use of Media Types in CSS?

Answer

Media types in CSS define the media like audio and video to be used in your HTML document to represent the properties in a better way. The font property can be used for media types as it can be used for print media or screen media. Document requires a defined media to represent the screen that can be read on the paper. It is used as:@media 


<html>


<head>


<style>


@media screen


{


p.test {font-family:verdana,sans-serif;font-size:14px;}


}


@media print


{


p.test {font-family:times,serif;font-size:10px;}


}


</style>


</head>


<body>


----------Your code here----------


</body>


</html>

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1599
Q:

How to Accessing Elements using javascript?

Answer

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 pwd = 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.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1593
Q:

What are the rules in CSS ruleset?

Answer

CSS consists of two types of CSS rules, first is for ruleset which identifies the style and the selector. It combines the style and the selector. Ruleset is a combination of CSS rules, for example: h1{text-color: 15pt;}, where this is the CSS rule. Ruleset is selector + declaration for example: h1 + {text-color: 15pt;}

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1583
Q:

How do you load data from XML file to a ORACLE table?

Answer

You need to first create a table in oracle that matches with the fields of the XML data.


So to get the XMl into the table, you can create a generic procedure that moves an XML document into a table by converting the elements to Oracle Canonical format.


Oracle Canonical format is as follows:


<ROWSET>


   <ROW>  


     <column_name_1 />


     .


     .


     </ROW>


     <ROW>


         <column_name_1 />


         .


         .


      </ROW> 


        .


        .


</ROWSET>        


ROW is used for the table names


ROWSET is used for the XML document


You can get the XML into the canonical form using XSL:


<?xml version="1.0"?>


<xsl:stylesheet 


             xmlns:xsl="https://www.w3.org/1999/XSL/Transform"                   


             version="1.0">


     <xsl:template match="/">


          <ROWSET>


               <ROW>


                         <Attribute_name>                      


                             <xsl:value-of select="Table_name/Attribute_name" />


                         </Attribute_name>


                < /ROW>


          </ROWSET>


     </xsl:template>


</xsl:stylesheet>


To transform the XML document into the canonical form, you can write a procedure. Make sure you include the line below in your procedure code:


v_rows := DBMS_XMLStore.insertXML(


                v_context,    


                XMLType.transform(p_xml_in, p_xsl_in));


The only remaining step is calling your procedure: 


DECLARE


   v_xml XMLType := XMLType( YOUR XML Document );


   v_xsl XMLType := XMLType( YOUR XSL Document );


BEGIN 


   procedure_name(v_xml, v_xsl, 'table_name');


END;

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1580