The document discusses various methods for manipulating nodes and attributes in the DOM, including cloning nodes, removing and replacing child nodes, modifying node data, and manipulating attributes. Examples are provided for each method, such as cloning a node with cloneNode(), removing a child node with removeChild(), modifying node data by changing the data property, and getting, setting, and removing attributes with getAttribute(), setAttribute(), and removeAttribute() respectively. The document also discusses modifying CSS styles dynamically using the DOM, including changing inline styles and class names.
The document discusses several native JavaScript objects including String, Math, Array, and Date objects. It focuses on the String object, describing how to create string variables and primitive types. It then explains several string methods like length, charAt(), charCodeAt(), indexOf(), lastIndexOf(), substr(), toLowerCase(), and toUpperCase() providing examples of how to use each method to manipulate and analyze string values.
The document discusses different ways to refer to frames in JavaScript when they are not given names. It explains that unnamed frames can be referred to by their numeric index in the frames array, with the first frame being frames[0]. The document then provides an example using three frames without names, and calling functions between the frames by index. It also discusses the History object which contains the browser's navigation history, and methods like back() and forward() to programmatically change pages.
This lecture discusses form validation techniques including:
1. Validating text boxes to ensure required fields are filled out correctly. Code is provided to check for empty fields and invalid characters.
2. Validating passwords by checking that entered passwords match in two fields.
3. Validating dropdown lists by checking that a non-default option is selected. Code dynamically populates a second dropdown based on the first selection.
4. Validating checkboxes though no specific code is provided.
The ISO/OSI model defines seven layers for network communication:
1. The physical layer transmits raw bits over a communication channel.
2. The data link layer handles framing and error checking.
3. The network layer handles routing and logical addressing.
4. The transport layer ensures reliable delivery of data segments.
5. The session layer allows for bidirectional communication sessions.
6. The presentation layer handles data formatting and encoding.
7. The application layer interacts directly with software applications.
Each layer only communicates with the layer directly above and below it, with the physical layer interacting with the actual network and the application layer interacting with end user processes.
The document provides an overview of computer networks. It defines a computer network as an interconnected collection of autonomous computers. It uses the example of the Internet, which interconnects millions of computing devices worldwide running network protocols to communicate. Devices are connected through intermediate routers using communication links like cables, wireless connections, or radio spectrum. The Internet is a network of networks that must all run the IP protocol. Advantages of networks include resource sharing, communication, robustness, cost efficiency, and reliability. Networks also have different communication modes like simplex, full duplex, and half duplex, and different link types like point-to-point and multipoint.
1) The document discusses validating radio button selections in HTML forms. It explains how to check which radio button is selected using JavaScript.
2) It then provides an example HTML form with radio button options for hobbies. It includes a JavaScript function that validates a selection is made before form submission.
3) The document also covers additional topics related to working with windows and frames in JavaScript, including opening new windows, referring to parent/child windows, writing to frames, and using variables to store data across frames.
This lecture discusses using images as links and aligning images. It provides code to create links using images instead of text, with the images linking to different sections of a hobby page. It also demonstrates how to specify the width and height of images and how to align images with text using the align attribute. Examples are given showing how images and text appear without alignment and with the align attribute set to middle to position the text centrally within the image.
The document discusses various methods for manipulating nodes and attributes in the DOM, including cloning nodes, removing and replacing child nodes, modifying node data, and manipulating attributes. Examples are provided for each method, such as cloning a node with cloneNode(), removing a child node with removeChild(), modifying node data by changing the data property, and getting, setting, and removing attributes with getAttribute(), setAttribute(), and removeAttribute() respectively. The document also discusses modifying CSS styles dynamically using the DOM, including changing inline styles and class names.
The document discusses several native JavaScript objects including String, Math, Array, and Date objects. It focuses on the String object, describing how to create string variables and primitive types. It then explains several string methods like length, charAt(), charCodeAt(), indexOf(), lastIndexOf(), substr(), toLowerCase(), and toUpperCase() providing examples of how to use each method to manipulate and analyze string values.
The document discusses different ways to refer to frames in JavaScript when they are not given names. It explains that unnamed frames can be referred to by their numeric index in the frames array, with the first frame being frames[0]. The document then provides an example using three frames without names, and calling functions between the frames by index. It also discusses the History object which contains the browser's navigation history, and methods like back() and forward() to programmatically change pages.
This lecture discusses form validation techniques including:
1. Validating text boxes to ensure required fields are filled out correctly. Code is provided to check for empty fields and invalid characters.
2. Validating passwords by checking that entered passwords match in two fields.
3. Validating dropdown lists by checking that a non-default option is selected. Code dynamically populates a second dropdown based on the first selection.
4. Validating checkboxes though no specific code is provided.
The ISO/OSI model defines seven layers for network communication:
1. The physical layer transmits raw bits over a communication channel.
2. The data link layer handles framing and error checking.
3. The network layer handles routing and logical addressing.
4. The transport layer ensures reliable delivery of data segments.
5. The session layer allows for bidirectional communication sessions.
6. The presentation layer handles data formatting and encoding.
7. The application layer interacts directly with software applications.
Each layer only communicates with the layer directly above and below it, with the physical layer interacting with the actual network and the application layer interacting with end user processes.
The document provides an overview of computer networks. It defines a computer network as an interconnected collection of autonomous computers. It uses the example of the Internet, which interconnects millions of computing devices worldwide running network protocols to communicate. Devices are connected through intermediate routers using communication links like cables, wireless connections, or radio spectrum. The Internet is a network of networks that must all run the IP protocol. Advantages of networks include resource sharing, communication, robustness, cost efficiency, and reliability. Networks also have different communication modes like simplex, full duplex, and half duplex, and different link types like point-to-point and multipoint.
1) The document discusses validating radio button selections in HTML forms. It explains how to check which radio button is selected using JavaScript.
2) It then provides an example HTML form with radio button options for hobbies. It includes a JavaScript function that validates a selection is made before form submission.
3) The document also covers additional topics related to working with windows and frames in JavaScript, including opening new windows, referring to parent/child windows, writing to frames, and using variables to store data across frames.
This lecture discusses using images as links and aligning images. It provides code to create links using images instead of text, with the images linking to different sections of a hobby page. It also demonstrates how to specify the width and height of images and how to align images with text using the align attribute. Examples are given showing how images and text appear without alignment and with the align attribute set to middle to position the text centrally within the image.
This document discusses different topics related to computer networks including:
1. Transmission rate, propagation delay, and data rate which refer to how fast data can be transferred through a network.
2. Network topologies like bus, star, ring, mesh which describe how nodes are physically connected. Key elements that impact a LAN are topology, transmission medium, and medium access control.
3. Classification of networks based on distance as local area networks (LAN), metropolitan area networks (MAN), or wide area networks (WAN) depending on if they span a building, city, or continents.
This document provides details for Assignment 4 which is due on April 26th or 27th depending on the class. It includes 6 questions related to concepts like transitive closure, equivalence relations, partitions, partial order relations, and Hasse diagrams. Students are asked to find transitive closures of relations, determine which relations are equivalence relations, identify if matrices represent equivalence relations, determine which subsets are partitions, identify which matrices represent partial order relations and generate Hasse diagrams for them, determine if a given diagram represents a partial order, and draw the Hasse diagram for a given set inclusion diagram.
This document introduces some basic concepts of set theory, including:
1) Defining sets by listing elements or describing properties. Common sets include real numbers, integers, etc.
2) Basic set operations like union, intersection, difference, and complement.
3) Relationships between sets like subset, proper subset, and equality.
4) Other concepts like partitions, power sets, and Cartesian products involving ordered pairs from multiple sets.
This document contains an assignment on propositional logic that is due on April 5th or 6th, depending on the class. It includes 8 questions covering topics like identifying propositions, writing logical statements using operators, simplifying logical formulas, constructing formulas from truth tables, proving logical equivalences, and using resolution to prove statements.
The document discusses using font tags and aligning text in HTML. It provides examples of using the <font> tag to specify font face, size, and color. It also demonstrates using the <p> tag and align attribute to insert paragraphs and align text left, right, or center.
The document discusses several HTML tags:
1) Heading tags (<h1> - <h6>) are used to define headings of different sizes;
2) The <br> tag inserts a line break to separate content onto multiple lines;
3) Comment tags (<!-- -->) allow adding comments to code that will not be visible on the webpage.
The document discusses different mathematical proofs using induction. It provides examples of proving statements about odd numbers, divisibility by primes, equalities, properties, and inequalities using induction. The key steps are to first prove the base case, then assume the statement is true for some value n and use that to prove it is true for n+1.
The document discusses forms in web programming. Forms are used to take input from users, which is then typically stored in a database using scripting languages like ASP, JSP, etc. The key elements of a form include the <form> tag, input fields like text, password, checkbox, radio buttons, and select dropdowns. The <form> tag requires method and action attributes to specify how data is submitted and where it is sent. The document provides examples of each form element and builds a sample form combining different element types to demonstrate how forms work.
The document discusses using tables in HTML and special characters known as escape sequences. It provides examples of how to create a basic HTML table with different table elements like <TABLE>, <TR>, <TH>, and <TD>. It also demonstrates how to use the escape sequence to insert non-breaking spaces between words in order to control spacing in the browser output. The document includes examples of full HTML code for simple single cell and multi-row tables.
This document provides information on DOM 2 properties and event handling in HTML. It defines properties like innerHTML, outerHTML, innerText and outerText. It also lists common HTML events like onclick, ondblclick, onmouseover, onkeydown etc. and provides examples of how to bind these events to HTML elements using event attributes.
For an HTML/JavaScript assignment, the student must draw the DOM tree for a provided HTML program and write JavaScript code to display the node type, value, and name of all child nodes of the <form> tag. The code should be written inside a getInformation() function that is called by a button click event.
This assignment requires students to design a web page that displays a different banner each time the page is refreshed by randomly selecting from a set of 6 banners, building on what was covered in class.
This document outlines the requirements for a mid-term exam on internet programming. Students are asked to create an easy 6x6 sudoku puzzle generator that:
1) Randomly generates initial numbers within the constraints of the puzzle.
2) Allows the user to select and place numbers, and delete previously placed numbers following the rules of sudoku.
3) Counts the number of steps taken by the user and detects when the puzzle is solved.
Grading will consider the correctness of the program and the presentation of the web page interface.
This document provides the details of Assignment 4 which is due on April 26th or 27th depending on the class. It lists 7 questions related to concepts like transitive closure, equivalence relations, partitions, partial order relations, and Hasse diagrams. Students are asked to find transitive closures of relations, identify which relations are equivalence relations, determine if matrices represent equivalence relations, identify which subsets are partitions, determine if matrices represent partial order relations and generate Hasse diagrams, determine if a given diagram represents a partial order, and draw the Hasse diagram for a given set inclusion diagram.
This document contains an assignment with 5 questions on sets, proofs using induction, contradiction, and contrapositive. The deadline for the assignment is April 26th for Thursday classes and April 27th for Friday classes. The assignment was written by Harshit Kumar on April 13, 2012.
Proof by resolution is a method of proving that a statement is logically valid or invalid. It involves assuming the negation of the statement and showing that this leads to a contradiction. A contradiction means the original statement must be true, proving the statement's validity.
The document provides instructions for designing a web page about Presidents of Korea. It includes HTML and CSS files to modify as well as images of the presidents. The assignment is to style the web page by modifying the CSS file to display the president images in a 2x2 grid, center their names below in blue text, and add spacing between the images and browser edges. It also asks to create a navigation bar HTML file and new page about President Rhee Syung-Man with 1000 words.
This document contains an assignment that is due on April 5th or 6th depending on the class. It consists of 8 questions involving logical expressions and formulas. The questions cover topics like identifying propositions, writing logical expressions using operators, simplifying formulas, constructing formulas from truth tables, proving equivalences, and using resolution to prove statements.
This document outlines an assignment for Harshit Kumar due on March 23rd. It instructs him to use truth tables to prove 5 logical equivalence rules: (1) material implication, (2) biconditional, (3) distributive law, (4) DeMorgan's laws, and (5) idempotent law. For the idempotent law, three methods of proof are required as discussed in class.
This document discusses propositional logic and covers topics like propositions, common logical operators like negation and conjunction, proving the equivalence of logical formulas, constructing logical formulas based on truth tables, and simplifying logical formulas using laws like De Morgan's laws and distribution laws. Examples are provided for each topic to illustrate key concepts in propositional logic.
This document discusses different topics related to computer networks including:
1. Transmission rate, propagation delay, and data rate which refer to how fast data can be transferred through a network.
2. Network topologies like bus, star, ring, mesh which describe how nodes are physically connected. Key elements that impact a LAN are topology, transmission medium, and medium access control.
3. Classification of networks based on distance as local area networks (LAN), metropolitan area networks (MAN), or wide area networks (WAN) depending on if they span a building, city, or continents.
This document provides details for Assignment 4 which is due on April 26th or 27th depending on the class. It includes 6 questions related to concepts like transitive closure, equivalence relations, partitions, partial order relations, and Hasse diagrams. Students are asked to find transitive closures of relations, determine which relations are equivalence relations, identify if matrices represent equivalence relations, determine which subsets are partitions, identify which matrices represent partial order relations and generate Hasse diagrams for them, determine if a given diagram represents a partial order, and draw the Hasse diagram for a given set inclusion diagram.
This document introduces some basic concepts of set theory, including:
1) Defining sets by listing elements or describing properties. Common sets include real numbers, integers, etc.
2) Basic set operations like union, intersection, difference, and complement.
3) Relationships between sets like subset, proper subset, and equality.
4) Other concepts like partitions, power sets, and Cartesian products involving ordered pairs from multiple sets.
This document contains an assignment on propositional logic that is due on April 5th or 6th, depending on the class. It includes 8 questions covering topics like identifying propositions, writing logical statements using operators, simplifying logical formulas, constructing formulas from truth tables, proving logical equivalences, and using resolution to prove statements.
The document discusses using font tags and aligning text in HTML. It provides examples of using the <font> tag to specify font face, size, and color. It also demonstrates using the <p> tag and align attribute to insert paragraphs and align text left, right, or center.
The document discusses several HTML tags:
1) Heading tags (<h1> - <h6>) are used to define headings of different sizes;
2) The <br> tag inserts a line break to separate content onto multiple lines;
3) Comment tags (<!-- -->) allow adding comments to code that will not be visible on the webpage.
The document discusses different mathematical proofs using induction. It provides examples of proving statements about odd numbers, divisibility by primes, equalities, properties, and inequalities using induction. The key steps are to first prove the base case, then assume the statement is true for some value n and use that to prove it is true for n+1.
The document discusses forms in web programming. Forms are used to take input from users, which is then typically stored in a database using scripting languages like ASP, JSP, etc. The key elements of a form include the <form> tag, input fields like text, password, checkbox, radio buttons, and select dropdowns. The <form> tag requires method and action attributes to specify how data is submitted and where it is sent. The document provides examples of each form element and builds a sample form combining different element types to demonstrate how forms work.
The document discusses using tables in HTML and special characters known as escape sequences. It provides examples of how to create a basic HTML table with different table elements like <TABLE>, <TR>, <TH>, and <TD>. It also demonstrates how to use the escape sequence to insert non-breaking spaces between words in order to control spacing in the browser output. The document includes examples of full HTML code for simple single cell and multi-row tables.
This document provides information on DOM 2 properties and event handling in HTML. It defines properties like innerHTML, outerHTML, innerText and outerText. It also lists common HTML events like onclick, ondblclick, onmouseover, onkeydown etc. and provides examples of how to bind these events to HTML elements using event attributes.
For an HTML/JavaScript assignment, the student must draw the DOM tree for a provided HTML program and write JavaScript code to display the node type, value, and name of all child nodes of the <form> tag. The code should be written inside a getInformation() function that is called by a button click event.
This assignment requires students to design a web page that displays a different banner each time the page is refreshed by randomly selecting from a set of 6 banners, building on what was covered in class.
This document outlines the requirements for a mid-term exam on internet programming. Students are asked to create an easy 6x6 sudoku puzzle generator that:
1) Randomly generates initial numbers within the constraints of the puzzle.
2) Allows the user to select and place numbers, and delete previously placed numbers following the rules of sudoku.
3) Counts the number of steps taken by the user and detects when the puzzle is solved.
Grading will consider the correctness of the program and the presentation of the web page interface.
This document provides the details of Assignment 4 which is due on April 26th or 27th depending on the class. It lists 7 questions related to concepts like transitive closure, equivalence relations, partitions, partial order relations, and Hasse diagrams. Students are asked to find transitive closures of relations, identify which relations are equivalence relations, determine if matrices represent equivalence relations, identify which subsets are partitions, determine if matrices represent partial order relations and generate Hasse diagrams, determine if a given diagram represents a partial order, and draw the Hasse diagram for a given set inclusion diagram.
This document contains an assignment with 5 questions on sets, proofs using induction, contradiction, and contrapositive. The deadline for the assignment is April 26th for Thursday classes and April 27th for Friday classes. The assignment was written by Harshit Kumar on April 13, 2012.
Proof by resolution is a method of proving that a statement is logically valid or invalid. It involves assuming the negation of the statement and showing that this leads to a contradiction. A contradiction means the original statement must be true, proving the statement's validity.
The document provides instructions for designing a web page about Presidents of Korea. It includes HTML and CSS files to modify as well as images of the presidents. The assignment is to style the web page by modifying the CSS file to display the president images in a 2x2 grid, center their names below in blue text, and add spacing between the images and browser edges. It also asks to create a navigation bar HTML file and new page about President Rhee Syung-Man with 1000 words.
This document contains an assignment that is due on April 5th or 6th depending on the class. It consists of 8 questions involving logical expressions and formulas. The questions cover topics like identifying propositions, writing logical expressions using operators, simplifying formulas, constructing formulas from truth tables, proving equivalences, and using resolution to prove statements.
This document outlines an assignment for Harshit Kumar due on March 23rd. It instructs him to use truth tables to prove 5 logical equivalence rules: (1) material implication, (2) biconditional, (3) distributive law, (4) DeMorgan's laws, and (5) idempotent law. For the idempotent law, three methods of proof are required as discussed in class.
This document discusses propositional logic and covers topics like propositions, common logical operators like negation and conjunction, proving the equivalence of logical formulas, constructing logical formulas based on truth tables, and simplifying logical formulas using laws like De Morgan's laws and distribution laws. Examples are provided for each topic to illustrate key concepts in propositional logic.
This document outlines the topics, grading policy, references, and contact information for a discrete mathematics course. The topics section lists key concepts like set theory, logic, induction, and graph theory. Assignments are 30% of the grade, with midterm and final exams each accounting for 25%. The remaining 20% depends on participation and attendance. Two textbooks and an online reference are provided. Contact is given as an email address for a professor in room 525 of the IT building.
This document provides an assignment on data communication concepts including CRC calculations, transmission delay, propagation delay, end-to-end delay, and queuing delay. It includes 5 questions with answers on these topics. Key concepts covered are calculating delays for different frame sizes being sent between hosts over different distances, determining the number of frames needed to transfer a large file, and calculating total end-to-end delay for a multi-hop transfer. Formulas for delays are provided to help solve the problems.
The document contains questions regarding the efficiency of stop-and-wait and sliding window protocols. It defines key terms like frame length, propagation delay, transmission delay, and efficiency. It then asks the reader to calculate efficiency for different scenarios based on these definitions, including varying frame sizes, data rates, propagation delays, and window sizes.
This document contains a collection of tweets from various users. It discusses topics like a Harry Potter animated sequence, a concert performance of Vivaldi's Gloria where an audience member had an awkward meltdown, car trouble on I-40 which required a tow truck, and an upcoming concert with the group Time For Three.
There are 4 text areas to display tweets, URLs extracted from tweets, raw tags and tag weights, and accumulated tag weights. There are 3 buttons: one to extract URLs from tweets, another to get tags and weights from URLs, and a third to accumulate tag weights. Extra points are given for adding buttons to save outputs and load tweet texts. Submissions will be graded based on the user interface, technologies used, and logic/variables.
Daewon Pharmaceutical received the IP address 201.123.5.0/24 and has offices in Seoul, Incheon, Suwon, and plans to open a new office in Anyang; they need to divide the IP range into four equal subnets to allocate addresses to each office. Information is requested about the network address, broadcast address, subnet mask, and IP range for each of the Seoul, Incheon, Suwon, and Anyang offices.
The document outlines requirements for developing an assignment uploader application that allows students to register by providing their name, student ID, course, and year of study. After registering, students can log in and will be redirected to an upload page if credentials are validated, or shown an error message if invalid. The upload page uses multiple text boxes and browse buttons to select and preview multiple files from their computer before uploading all selected files with a single button.
3. Input the number
Accept/Discard
Accept/discard
Accept/Discard Accept/Discard
Select one of these Input the number
$ $
Accept / Discard
Select one of these
$
$
$