#webtech2

Thread

Paridhi Agarwal February 25, 2020 at 05:37 PM

CT 1

Paridhi Agarwal February 25, 2020 at 05:38 PM

1b

Paridhi Agarwal February 25, 2020 at 05:41 PM

svg elemnets

Paridhi Agarwal February 25, 2020 at 05:43 PM

canvas element 1

Paridhi Agarwal February 25, 2020 at 05:45 PM

linear paths(canvas elements 2)

Paridhi Agarwal February 25, 2020 at 06:02 PM

3a

Paridhi Agarwal February 25, 2020 at 06:21 PM

2a

Paridhi Agarwal February 25, 2020 at 06:22 PM

2a:
Indexeddb:
One of the powerful and recent web standards is Indexed Database (or simply IndexedDB). It allows us to store huge data (maximum of 50% of free disk space) persistently in the browser (client-side) and an efficient indexed-based searching API to retrieve the data.
Anyway, how is it different from Cookies or web storage or database? Cookies can store limited amount of data and they are sent back and forth to the server with every request. IndexedDB can store very large amount of data in the client machine; thus reducing the load on server and network. Although, web storage can store relatively more data, they can simply store key-value string pair; IndexedDB, on the other hand can store arbitrary data. However, IndexedDB is not that powerful as a full-fledge relational database. IndexedDB can store objects. Moreover, it does not provide any query language such as SQL to work with database. In fact, IndexedDB does not have many features a sophisticated relational database has.

Paridhi Agarwal February 25, 2020 at 06:26 PM

We can check if a browser supports web storage as follows:
if (typeof(Storage) !== "undefined") { // use localStorage/sessionStorage. }
else { // Browser does not support web storage }

Paridhi Agarwal February 25, 2020 at 06:27 PM

So, we only check the existence of indexedDB property of window object.
if(window.indexedDB) { // Work with IndexedDB }
else { // Browser does support a stable version of IndexedDB

Nityesh Agarwal February 25, 2020 at 07:14 PM

4.a)

Server-side programming techniques:

• CGI (Common Gateway Interface)
• Servlets
• JSP (Java Server Pages)
• PHP

Nityesh Agarwal February 25, 2020 at 07:19 PM

3.b)

HTTP tunneling:
• Tunneling transmits private network data and protocol information through public network by encapsulating the data.
• HTTP tunneling is using a protocol of higher level (HTTP) to transport a lower level protocol (TCP).
• An HTTP tunnel is often used for network locations which have restricted connectivity or are behind firewalls or proxy servers.
• When a HTTP connection is made through a proxy server, the client, which is usually the browser, sends the request to the proxy. The proxy opens the connection to the destination, sends the request, receives the response and sends it back to the client.