Web Technology Questions

Q:

How to set the cursor to wait in JavaScript?

Answer

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"; 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1653
Q:

What are Math Constants and Functions using JavaScript?

Answer

Math object has two constant : Math.PI and Math.E


 


Math object has following functions:


- Math.abs(val1);


It will give absolute value of val1.


- Math.max(val1,val2);


This fuction will return maximum value from val1 and val2.


- Math.random();


This function will return a random number between 0 and 1.


- Math.floor(val1)


This function will returns decimal value of val1

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1652
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 1643
Q:

Explain VBScript in detail.

Answer

This is a scripting language developed by Microsoft and is based loosely on Visual Basic. Its functionality in a web environment is dependant upon either an ASP engine or the Windows Scripting Host, and must be used on a Windows hosting platform. 

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1634
Q:

Where are cookies actually stored on the hard disk?

Answer

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

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1633
Q:

How to create arrays in JavaScript?

Answer

Arrays are created by using new Array() in Java Script.


For example : var employees = new Array();


The elements to this array is assigned as follows :


employees[0] = "Kumar"


employees[1] = "Fedrick"

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1632
Q:

What are the different web browser tools available to accelerate the speed of the web page?

Answer

- Web accelerators are used to increase the loading of the web page faster and by providing extra features of caching, etc. 


- There are tools that are provided like internet accelerator of browser accelerator that provides security from the spyware and adware programs. 


- The security from the programs are required as they are harmful for the computer and the tools uses the strategies of pre-caching in which the data is automatically cached and when the website is opened again then the fetching is being done from the place where the content is saved. 


- Registry tweaks are used to improve the performance offering the risk management techniques for downloading the resources.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1624
Q:

Which method is used to draw an image on the canvas?

Answer

drawImage(image,x,y) method is used to draw an image on the canvas.

Report Error

View answer Workspace Report Error Discuss

Subject: Web Technology

0 1610