- A table is a logical representation of data stored in a database. It holds data in rows and columns.
- Data Definition Language (DDL) commands like CREATE, ALTER, TRUNCATE, DROP are used to create, modify and delete database objects like tables.
- Data Manipulation Language (DML) commands like INSERT, SELECT, UPDATE, DELETE are used to query and manipulate data in existing tables.
PostgreSQL Tutorial For Beginners | EdurekaEdureka!
YouTube Link: https://youtu.be/-VO7YjQeG6Y
** MYSQL DBA Certification Training https://www.edureka.co/mysql-dba **
This Edureka PPT on PostgreSQL Tutorial For Beginners (blog: http://bit.ly/33GN7jQ) will help you learn PostgreSQL in depth. You will also learn how to install PostgreSQL on windows. The following topics will be covered in this session:
What is DBMS
What is SQL?
What is PostgreSQL?
Features of PostgreSQL
Install PostgreSQL
SQL Command Categories
DDL Commands
ER Diagram
Entity & Attributes
Keys in Database
Constraints in Database
Normalization
DML Commands
Operators
Nested Queries
Set Operations
Special Operators
Aggregate Functions
Limit, Offset & Fetch
Joins
Views
Procedures
Triggers
DCL Commands
TCL Commands
Export/ Import Data
UUID Datatype
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
This document summarizes a seminar presentation on database triggers. It defines a database trigger as procedural code that is automatically executed in response to certain events on a table or view. It discusses the types of events that can fire a trigger, including DML, DDL, system, and user events. It also outlines the need for triggers to enforce business rules, audit changes, and enhance performance. The document provides details on the major features of triggers, including the different types of triggers based on timing (before and after), scope (row and statement), and triggering event (DML, DDL, system, user). It concludes with an example of the syntax for creating a database trigger.
Functional dependency defines a relationship between attributes in a table where a set of attributes determine another attribute. There are different types of functional dependencies including trivial, non-trivial, multivalued, and transitive. An example given is a student table with attributes Stu_Id, Stu_Name, Stu_Age which has the functional dependency of Stu_Id->Stu_Name since the student ID uniquely identifies the student name.
Triggers allow functions to be executed automatically in response to events like INSERT, UPDATE, or DELETE statements. Triggers can be set to fire once per statement or for each row affected. They can fire before or after the triggering event.
The document provides examples of using triggers: 1) To automatically compute a full name field from separate name fields. 2) To update count and total price fields in another table in response to item inserts/updates/deletes. 3) To keep related tables in sync by denormalizing and checking constraints.
This document provides an overview of data mining techniques and concepts. It defines data mining as the process of discovering interesting patterns and knowledge from large amounts of data. The key steps involved are data cleaning, integration, selection, transformation, mining, evaluation, and presentation. Common data mining techniques include classification, clustering, association rule mining, and anomaly detection. The document also discusses data sources, major applications of data mining, and challenges.
Microsoft SQL Server internals & architectureKevin Kline
From noted SQL Server expert and author Kevin Kline - Let’s face it. You can effectively do many IT jobs related to Microsoft SQL Server without knowing the internals of how SQL Server works. Many great developers, DBAs, and designers get their day-to-day work completed on time and with reasonable quality while never really knowing what’s happening behind the scenes. But if you want to take your skills to the next level, it’s critical to know SQL Server’s internal processes and architecture. This session will answer questions like:
- What are the various areas of memory inside of SQL Server?
- How are queries handled behind the scenes?
- What does SQL Server do with procedural code, like functions, procedures, and triggers?
- What happens during checkpoints? Lazywrites?
- How are IOs handled with regards to transaction logs and database?
- What happens when transaction logs and databases grow or shrinks?
This fast paced session will take you through many aspects of the internal operations of SQL Server and, for those topics we don’t cover, will point you to resources where you can get more information.
The document discusses data modeling and different data models. It describes the evolution of data models from hierarchical to network to relational models. It also covers the entity relationship and object-oriented models. The key points are that data modeling helps reconcile different views of data, business rules inform database design, and the conceptual model provides an integrated global view of the database.
This document discusses Relational Database Management Systems (RDBMS). It provides an overview of early database systems like hierarchical and network models. It then describes the key concepts of RDBMS including relations, attributes, and using tables, rows, and columns. RDBMS uses Structured Query Language (SQL) and has advantages over early systems by allowing data to be spread across multiple tables and accessed simultaneously by users.
An introduction to SQL standard language for beginners and non-technical information people. Mostly covers SELECT statement using standard clauses, Joins, Sub-Queries and ...
The document discusses various built-in functions in MySQL for manipulating date, time, string, and numeric data. It describes functions for formatting dates, extracting date elements, adding or subtracting times, concatenating and modifying strings. Common functions covered include DATE_FORMAT(), NOW(), CURDATE(), CONCAT(), REPLACE(), LEFT(), RIGHT(), and MID().
YouTube Link: https://youtu.be/f6VWSlnHGCE
** MySQL DBA Certification Training: https://www.edureka.co/mysql-dba **
This Edureka PPT on 'SQL Triggers' will help you understand the concept of triggers in SQL. Below are the topics covered in this SQL Triggers For Beginners.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
The document compares file systems and database management systems (DBMS) for storing a company's 500GB of employee, department, product, and sales data. It notes several drawbacks of using a file system, including data redundancy, integrity issues, restricted concurrent access, and lack of flexibility. It then outlines key advantages of using a DBMS instead, such as data sharing, enforcement of security and integrity, reduction of redundancy, and support for concurrent access and crash recovery.
This document provides an overview of key concepts related to data warehousing including what a data warehouse is, common data warehouse architectures, types of data warehouses, and dimensional modeling techniques. It defines key terms like facts, dimensions, star schemas, and snowflake schemas and provides examples of each. It also discusses business intelligence tools that can analyze and extract insights from data warehouses.
This document discusses conceptual data modeling and Entity-Relationship diagrams. It defines key terms like entities, attributes, relationships and cardinality. It explains how to represent these concepts in ER diagrams and discusses best practices for naming relationships and defining domains. The goals of conceptual data modeling are to accurately represent organizational data and rules through diagrams and establish consistency between the data, process and logic models.
Structured Query Language (SQL) is a query language that allows users to specify conditions to retrieve data from a database. SQL queries select rows from database tables that satisfy specified conditions. The results are output in a table format. Common SQL clauses include SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY, and INTO to output results to a table, cursor, file or printer. SQL can perform queries on single or multiple related tables through joins.
This document introduces databases and database management systems. It discusses the disadvantages of file-based systems, including data duplication, incompatible formats, and fixed queries. A database was created to address these issues by centralizing data storage and control. A database management system provides tools to define, create, maintain and control access to a database. Common examples of databases include those for supermarkets, credit cards, travel agencies, libraries, insurance, and universities.
Procedures in pl/sql,CREATE PROCEDURE Syntax, Compiling and Showing Errors, Parameters, Defining the IN, OUT, and IN OUT Parameter Modes, Parameter Constraint Restrictions, Example – Procedure with No Parameters,Example – Passing IN and OUT Parameters, Dropping a Procedure
PostgreSQL (or Postgres) began its life in 1986 as POSTGRES, a research project of the University of California at Berkeley.
PostgreSQL isn't just relational, it's object-relational.it's object-relational. This gives it some advantages over other open source SQL databases like MySQL, MariaDB and Firebird.
The document provides an overview of API testing, including definitions of APIs and API testing, descriptions of common API methods like GET, POST, PUT, and DELETE, examples of API requests and responses, and advantages and challenges of API testing. It discusses basics like the API workflow, REST APIs, HTTP response codes, and types of API tests.
Database triggers are stored procedures that automatically execute in response to certain events like data modification on a table. There are different types of triggers including row-level, column-level, and statement-level triggers. Triggers enforce business rules, data integrity, and can log or audit database events. They help manage complex workflows and ensure data consistency across tables and databases.
The document discusses key concepts related to databases and database management systems. It defines a database as a collection of organized data and a database management system as a computer program that allows for creating, accessing, managing and controlling databases. It describes three common data models - relational, network and hierarchical - and explains some fundamental database concepts like tables, keys, relations and normalization.
The document discusses HTML5 semantic elements and how they can be used to structure web pages in a more transparent way compared to traditional <div> elements. It provides examples of common HTML5 semantic elements like <header>, <nav>, <article>, <section>, and <aside> that can be used instead of <div> for specific sections like navigation, headers, articles, etc. The document also briefly reviews common HTML4 elements like <html>, <head>, <title>, <body>, and heading elements to provide context before discussing the new HTML5 semantic elements.
Intro to JavaScript - Week 4: Object and ArrayJeongbae Oh
Intro to Programming with JavaScript Seminar, Fall 2017 semester
Week 4: Object and Array
Led by Jeongbae Oh, in conjunction with YCC (Yonsei Computer Club) @ Yonsei University
This seminar intends to introduce newcomers to programming using JavaScript, one of the most versatile languages of the modern world.
The document discusses data modeling and different data models. It describes the evolution of data models from hierarchical to network to relational models. It also covers the entity relationship and object-oriented models. The key points are that data modeling helps reconcile different views of data, business rules inform database design, and the conceptual model provides an integrated global view of the database.
This document discusses Relational Database Management Systems (RDBMS). It provides an overview of early database systems like hierarchical and network models. It then describes the key concepts of RDBMS including relations, attributes, and using tables, rows, and columns. RDBMS uses Structured Query Language (SQL) and has advantages over early systems by allowing data to be spread across multiple tables and accessed simultaneously by users.
An introduction to SQL standard language for beginners and non-technical information people. Mostly covers SELECT statement using standard clauses, Joins, Sub-Queries and ...
The document discusses various built-in functions in MySQL for manipulating date, time, string, and numeric data. It describes functions for formatting dates, extracting date elements, adding or subtracting times, concatenating and modifying strings. Common functions covered include DATE_FORMAT(), NOW(), CURDATE(), CONCAT(), REPLACE(), LEFT(), RIGHT(), and MID().
YouTube Link: https://youtu.be/f6VWSlnHGCE
** MySQL DBA Certification Training: https://www.edureka.co/mysql-dba **
This Edureka PPT on 'SQL Triggers' will help you understand the concept of triggers in SQL. Below are the topics covered in this SQL Triggers For Beginners.
Follow us to never miss an update in the future.
YouTube: https://www.youtube.com/user/edurekaIN
Instagram: https://www.instagram.com/edureka_learning/
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
Castbox: https://castbox.fm/networks/505?country=in
The document compares file systems and database management systems (DBMS) for storing a company's 500GB of employee, department, product, and sales data. It notes several drawbacks of using a file system, including data redundancy, integrity issues, restricted concurrent access, and lack of flexibility. It then outlines key advantages of using a DBMS instead, such as data sharing, enforcement of security and integrity, reduction of redundancy, and support for concurrent access and crash recovery.
This document provides an overview of key concepts related to data warehousing including what a data warehouse is, common data warehouse architectures, types of data warehouses, and dimensional modeling techniques. It defines key terms like facts, dimensions, star schemas, and snowflake schemas and provides examples of each. It also discusses business intelligence tools that can analyze and extract insights from data warehouses.
This document discusses conceptual data modeling and Entity-Relationship diagrams. It defines key terms like entities, attributes, relationships and cardinality. It explains how to represent these concepts in ER diagrams and discusses best practices for naming relationships and defining domains. The goals of conceptual data modeling are to accurately represent organizational data and rules through diagrams and establish consistency between the data, process and logic models.
Structured Query Language (SQL) is a query language that allows users to specify conditions to retrieve data from a database. SQL queries select rows from database tables that satisfy specified conditions. The results are output in a table format. Common SQL clauses include SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY, and INTO to output results to a table, cursor, file or printer. SQL can perform queries on single or multiple related tables through joins.
This document introduces databases and database management systems. It discusses the disadvantages of file-based systems, including data duplication, incompatible formats, and fixed queries. A database was created to address these issues by centralizing data storage and control. A database management system provides tools to define, create, maintain and control access to a database. Common examples of databases include those for supermarkets, credit cards, travel agencies, libraries, insurance, and universities.
Procedures in pl/sql,CREATE PROCEDURE Syntax, Compiling and Showing Errors, Parameters, Defining the IN, OUT, and IN OUT Parameter Modes, Parameter Constraint Restrictions, Example – Procedure with No Parameters,Example – Passing IN and OUT Parameters, Dropping a Procedure
PostgreSQL (or Postgres) began its life in 1986 as POSTGRES, a research project of the University of California at Berkeley.
PostgreSQL isn't just relational, it's object-relational.it's object-relational. This gives it some advantages over other open source SQL databases like MySQL, MariaDB and Firebird.
The document provides an overview of API testing, including definitions of APIs and API testing, descriptions of common API methods like GET, POST, PUT, and DELETE, examples of API requests and responses, and advantages and challenges of API testing. It discusses basics like the API workflow, REST APIs, HTTP response codes, and types of API tests.
Database triggers are stored procedures that automatically execute in response to certain events like data modification on a table. There are different types of triggers including row-level, column-level, and statement-level triggers. Triggers enforce business rules, data integrity, and can log or audit database events. They help manage complex workflows and ensure data consistency across tables and databases.
The document discusses key concepts related to databases and database management systems. It defines a database as a collection of organized data and a database management system as a computer program that allows for creating, accessing, managing and controlling databases. It describes three common data models - relational, network and hierarchical - and explains some fundamental database concepts like tables, keys, relations and normalization.
The document discusses HTML5 semantic elements and how they can be used to structure web pages in a more transparent way compared to traditional <div> elements. It provides examples of common HTML5 semantic elements like <header>, <nav>, <article>, <section>, and <aside> that can be used instead of <div> for specific sections like navigation, headers, articles, etc. The document also briefly reviews common HTML4 elements like <html>, <head>, <title>, <body>, and heading elements to provide context before discussing the new HTML5 semantic elements.
Intro to JavaScript - Week 4: Object and ArrayJeongbae Oh
Intro to Programming with JavaScript Seminar, Fall 2017 semester
Week 4: Object and Array
Led by Jeongbae Oh, in conjunction with YCC (Yonsei Computer Club) @ Yonsei University
This seminar intends to introduce newcomers to programming using JavaScript, one of the most versatile languages of the modern world.
The document discusses various techniques for developing plugins for the Leaflet.js mapping library, including adding new methods, overriding existing methods, and creating new objects by extending existing ones. It provides examples of adding animated spiders to a Leaflet map using these different customization approaches. The full source code for the leaflet-spiders plugin demonstrated is available on GitHub.
This document provides a review of object-oriented programming concepts in Java, including:
- The difference between primitives and objects, and value vs reference semantics.
- How classes act as blueprints for objects, defining their data and behavior.
- Key object-oriented principles like encapsulation, fields, methods, and constructors.
- How objects pass by reference when used as parameters or assigned.
- Comparing objects requires special methods rather than using ==.
This document provides an introduction to JavaScript including:
1. JavaScript is a client-side scripting language that adds interactivity to HTML pages. It is embedded directly into HTML and allows dynamic updating of content.
2. The document covers JavaScript syntax, variables, data types, functions, objects, arrays, strings, dates and more. It provides examples of how to declare variables, write functions, create objects and arrays, and manipulate strings and dates.
3. Methods for output, variable scope, and built-in objects like String, Array, Math and Date are described. The DOM (Document Object Model) and form validation using JavaScript are also mentioned.
This document discusses Domain Driven Design (DDD) value objects. It defines value objects as immutable objects that measure or describe a concept but have no identity. Their equality is based on attribute values rather than identity. The document outlines characteristics of value objects such as being immutable, having attributes that form a conceptual whole, being replaceable, supporting equality comparisons, and having side-effect-free methods. It provides examples of value objects and discusses standard types, storage, testing, implementations, and resources for further information on DDD value objects.
This document discusses Elasticsearch and provides examples of its real-world uses and basic functionality. It contains:
1) An overview of Elasticsearch and how it can be used for full-text search, analytics, and structured querying of large datasets. Dell and The Guardian are discussed as real-world use cases.
2) Explanations of basic Elasticsearch concepts like indexes, types, mappings, and inverted indexes. Examples of indexing, updating, and deleting documents.
3) Details on searching and filtering documents through queries, filters, aggregations, and aliases. Query DSL and examples of common queries like term, match, range are provided.
4) A discussion of potential data modeling designs for indexing user
- JavaScript is a client-side scripting language used to validate data and embed scripts in HTML documents using the <SCRIPT> tag. It was developed by Brendan Eich and is supported by most browsers.
- Functions, variables, operators, and control structures work similarly in JavaScript as in C++. Common data types include numbers, strings, and Booleans. Functions are defined using the function keyword.
- Built-in functions like alert(), prompt(), and document.write() are used for output. Events like onclick trigger JavaScript execution. Arrays and objects allow storing multiple values.
The document discusses functions and objects in JavaScript. It defines a function as a reusable block of code that performs operations to fulfill a specific task. Functions can be invoked to execute their code. Objects are collections of properties and methods that represent real-world entities. The document describes how to create user-defined functions and objects in JavaScript, including defining properties and methods. It also provides examples of the built-in String and Math objects and their properties and methods.
This course teaches you the concepts of Angular. You will learn how to utilize Components, Annotations, Views, Event Handlers, Directives and more. In Angular everything is a Component and this course takes a component-centric approach. We will use Components as the main point of discussion and you will learn about other concepts in Angular in the context of Components.
This document provides information about an upcoming DataWeave meetup session, including details about the speaker, agenda, and logistics. The speaker will discuss DataWeave basics like data types, operators, and expressions for transforming data to JSON, Java, and XML formats. The session will include hands-on examples using the Transform Message component. Attendees can ask questions in the chat and provide feedback after the meetup.
It contains basic fundamental of class, object, method overloading, constructor, destructor, visibility, acess specifier, Methods, overloading, clonning of objects etc. are covered here.
Kindly look at it and give your comments to improve it as good as possible ways.
This document discusses object oriented PHP concepts including classes, inheritance, overriding functions, error handling, and file uploads. It provides examples of creating a class with methods, instantiating objects, extending classes, overriding parent methods, and defining custom error handling functions. It also demonstrates how to upload files in PHP by handling the file on the server, checking for errors, and moving the file to a target directory.
The document discusses the history and features of HTML5. It began development in 2008 by the W3C and WHATWG to address key challenges for developers. HTML5 adds new elements, attributes, and APIs to support graphics, location data, storage, and improved JavaScript performance. It also defines tags for embedding video, audio, and other media. While still a work in progress, major browsers now support many HTML5 features.
This presentation talks about managing a session and cookies in web using PHP. Cookies are stored at client machine and sent back to the server after first consecutive requests.Session manages the user state on the web page for security purpose as well.
MySQL is a free, open-source relational database management system that is ideal for both small and large applications. PHP can connect to and interact with a MySQL database using extensions like MySQLi or PDO. The document provides code examples for connecting to a MySQL database, executing queries to retrieve, insert, update, and delete data, and other common MySQL operations when using PHP.
PHP arrays allow storing multiple values in a single variable. There are several types of arrays including numeric, associative, multidimensional, and mixed. Arrays can be created using the array() function or by directly assigning values with indexes. Array elements can be accessed using their index/key and printed. Common array functions include array_merge() to join arrays, array_push() to add elements, and sort functions like sort(), asort(), ksort() to sort arrays.
The document provides information about PHP (Hypertext Preprocessor) including what a server is, different types of servers, basic PHP syntax, variables, operators, conditional statements, loops, functions, and arrays. It defines PHP as a scripting language used for web development and describes its major components. Examples are given of variables, constants, arithmetic operators, and if/else conditional statements in PHP code.
This document provides an introduction to regular expressions (regexes). It explains that regexes describe patterns of text that can be used to search for and replace text. It covers basic regex syntax like literals, wildcards, anchors, quantifiers, character sets, flags, backreferences, and the RegExp object. It also discusses using regexes in JavaScript string methods, text editors, and command line tools.
The document provides an introduction to JavaScript, including its history and uses. It discusses how JavaScript is an interpreted programming language used for client-side scripting of web pages to make them dynamic and interactive. The document outlines key JavaScript concepts like variables, functions, operators, and conditional statements. It provides examples of how to write JavaScript programs and embed them in HTML files using the <script> tag.
CSS is used to style and lay out web pages. It allows separation of document content from page layout and design. CSS rules contain selectors that specify the elements to style and properties that define the styles. Common properties include font, color, background, borders, margin and padding. CSS rules can be defined internally, in a linked stylesheet, or inline in HTML elements. CSS provides control over text, font, color, spacing and layout to present content attractively and consistently across multiple browsers and devices.
The document provides an overview of the key technologies that enable the World Wide Web. It discusses how the Web is a subset of the Internet that uses HTTP to access interlinked hypertext documents from servers. The TCP/IP protocol handles communication between networks, while technologies like HTML, URLs, domain names, browsers and servers allow people and computers to access and share information over the Internet through the World Wide Web. The document also reviews some common uses of the Internet and factors to consider when selecting technologies for websites.
RMI allows Java objects to invoke methods on remote Java objects located in another Java Virtual Machine. It handles marshaling parameters, transportation between client and server, and unmarshaling results. To create an RMI application, interfaces define remote services, servers implement interfaces and register with the RMI registry, and clients lookup services and invoke remote methods similarly to local calls. Stub and skeleton objects handle communication between remote VMs.
It is presentation of Kotlin programming language created by JetBrains for android application developement. Here we also provided some resources on Kotlin. Jump start your learning about kotlin.
The document discusses various security issues related to sessions and form handling in PHP, as well as methods for preventing attacks. It covers session fixation, session hijacking, and form spoofing. For sessions, it recommends regenerating IDs, checking IP addresses and user agents, and using secure hashes. For forms, it suggests using a shared secret key stored in the session to validate form submissions. The document also discusses PHP filters for validating and sanitizing user input.
Coleoptera, commonly known as beetles, is the largest order of insects, comprising approximately 400,000 described species. Beetles can be found in almost every habitat on Earth, exhibiting a wide range of morphological, behavioral, and ecological diversity. They have a hardened exoskeleton, with the forewings modified into elytra that protect the hind wings. Beetles play important roles in ecosystems as decomposers, pollinators, and food sources for other animals, while some species are considered pests in agriculture and forestry.
Stewart Butler - OECD - How to design and deliver higher technical education ...EduSkills OECD
Stewart Butler, Labour Market Economist at the OECD presents at the webinar 'How to design and deliver higher technical education to develop in-demand skills' on 3 June 2025. You can check out the webinar recording via our website - https://oecdedutoday.com/webinars/ .
You can check out the Higher Technical Education in England report via this link 👉 - https://www.oecd.org/en/publications/higher-technical-education-in-england-united-kingdom_7c00dff7-en.html
You can check out the pathways to professions report here 👉 https://www.oecd.org/en/publications/pathways-to-professions_a81152f4-en.html
How to Configure Add to Cart in Odoo 18 WebsiteCeline George
In this slide, we’ll discuss how to configure the Add to Cart functionality in the Odoo 18 Website. This feature enhances the shopping experience by offering three flexible options: Stay on the Product Page, Go to the Cart, or Let the User Decide through a dialog box.
Prottutponnomotittwa: A Quiz That Echoed the Pulse of Bengal
On the 31st of May, 2025, PRAGYA – The Official Quiz Club of UEM Kolkata – did not merely organize another quiz. It hosted an ode to Bengal — its people, its quirks, its politics, its art, its rebellion, its heritage. Titled Prottutponnomotittwa, the quiz stood as a metaphor for what Bengal truly is: sharp, intuitive, spontaneous, reflective. A cultural cosmos that thrives on instinct, memory, and emotion.
From the very first slide, it became clear — this wasn’t a quiz made to showcase difficulty or elitism. It was crafted with love — love for Bangla, for its past, present, and its ever-persistent contradictions.
The diversity of the answer list tells the real story of the quiz. The curation was not random. Each answer was a string on a veena of cultural resonance.
In the “Cultural Pairings” round, Anusheh Anadil and Arnob were placed not just as musicians, but as voices of a modern, cross-border Bangla. Their works, which blend baul, jazz, and urban folk, show how Bengal exists simultaneously in Dhaka and Shantiniketan.
The inclusion of Ritwik Chakraborty and Srijit Mukherjee (as a songwriter) showed how the quiz masters understood evolution. Bangla cinema isn’t frozen in the Ray-Ghatak past. It lives, argues, breaks molds — just like these men do.
From Kalyani Black Label to Radhunipagol Chal, consumer culture too had its place. One is liquid courage, the other culinary madness — both deeply Bengali.
The heart truly swelled when the answers touched upon Baidyanath Bhattacharya and Chandril. Both satirists, both sharp, both essential. It was not just about naming them — it was about understanding what different types of literature means in a Bengali context.
Titumir — the play about a peasant rebel who built his own bamboo fort and dared to challenge the British.
Krishnananda Agamvagisha — the mystical Tantric who shaped how we understand esoteric Bengali spiritualism.
Subhas Chandra Bose — the eternal enigma, the braveheart whose shadow looms large over Bengal’s political psyche.
Probashe Ghorkonna — a story lived by many Bengalis. The medinipur daughter, who made a wholesome family, not only in bengal, but across the borders. This answer wasn’t just information. It was emotion.
By the end, what lingered was not the scoreboard. It was a feeling.
The feeling of sitting in a room where Chalchitro meets Chabiwala, where Jamai Shosthi shares the stage with Gayatri Spivak, where Bhupen Hazarika sings with Hemanga Biswas, and where Alimuddin Road and Webskitters occupy the same mental map.
You don’t just remember questions from this quiz.
You remember how it made you feel.
You remember smiling at Keet Keet, nodding at Prabuddha Dasgupta, getting goosebumps at the mention of Bose, and tearing up quietly when someone got Radhunipagol Chal right.
This wasn’t a quiz.
This was an emotional ride of Bangaliyana.
This was — and will remain — Prottutponnomotittwa.
"Dictyoptera: The Order of Cockroaches and Mantises" Or, more specifically: ...Arshad Shaikh
Dictyoptera is an order of insects that includes cockroaches and praying mantises. These insects are characterized by their flat, oval-shaped bodies and unique features such as modified forelegs in mantises for predation. They inhabit diverse environments worldwide.
Pragya Champion's Chalice is the annual Intra Pragya General Quiz hosted by the club's outgoing President and Vice President. The prelims and finals are both given in the singular set.
This study describe how to write the Research Paper and its related issues. It also presents the major sections of Research Paper and various tools & techniques used for Polishing Research Paper
before final submission.
Finding a Right Journal and Publication Ethics are explain in brief.
Introduction to Online CME for Nurse Practitioners.pdfCME4Life
Online CME for nurse practitioners provides a flexible, cost-effective way to stay current with evidence-based practices and earn required credits without interrupting clinical duties. Accredited platforms offer a wide range of self-paced courses—complete with interactive case studies, downloadable resources, and immediate digital certificates—that fit around demanding schedules. By choosing trusted providers, practitioners gain in-depth knowledge on emerging treatments, refine diagnostic and patient-management skills, and build professional credibility. Know more at https://cme4life.com/the-benefits-of-online-cme-for-nurse-practitioners/
Here is the current update:
CURRENT CASE COUNT: 897
- Texas: 742 (+14) (55% of cases are in Gaines County). Includes additional numbers from El Paso.
- New Mexico: 79 (+1) (83% of cases are from Lea County)
- Oklahoma: 17
- Kansas: 59 (+3) (38.89% of the cases are from Gray County)
HOSPITALIZATIONS: 103
- Texas: 94 – This accounts for 13% of all cases in Texas.
- New Mexico: 7 – This accounts for 9.47% of all cases in New Mexico.
- Kansas: 3 – This accounts for 5.08% of all cases in Kansas.
DEATHS: 3
- Texas: 2 – This is 0.28% of all cases in Texas.
- New Mexico: 1 – This is 1.35% of all cases in New Mexico.
US NATIONAL CASE COUNT: 1,132 (confirmed and suspected)
INTERNATIONAL SPREAD
Mexico: 1,856(+103), 4 fatalities
- Chihuahua, Mexico: 1,740 (+83) cases, 3 fatalities, 4 currently hospitalized.
Canada: 2,791 (+273)
- Ontario, Canada: 1,938 (+143) cases. 158 (+29) hospitalizations
- Alberta, Canada: 679 (+119) cases. 4 currently hospitalized
♥☽✷♥
Make sure to catch our weekly updates. Updates are done Thursday to Fridays or its a holiday/event weekend.
Thanks again, Readers, Guest Students, and Loyalz/teams.
This profile is older. I started at the beginning of my HQ journey online. It was recommended by AI. AI was very selective but fits my ecourse style. I am media flexible depending on the course platform. More information below.
AI Overview:
“LDMMIA Reiki Yoga refers to a specific program of free online workshops focused on integrating Reiki energy healing techniques with yoga practices. These workshops are led by Leslie M. Moore, also known as LDMMIA, and are designed for all levels, from beginners to those seeking to review their practice. The sessions explore various themes like "Matrix," "Alice in Wonderland," and "Goddess," focusing on self-discovery, inner healing, and shifting personal realities.”
♥☽✷♥
“So Life Happens-Right? We travel on. Discovering, Exploring, and Learning...”
These Reiki Sessions are timeless and about Energy Healing / Energy Balancing.
A Shorter Summary below.
A 7th FREE WORKSHOP
REiki - Yoga
“Life Happens”
Intro Reflections
Thank you for attending our workshops. If you are new, do welcome. We have been building a base for advanced topics. Also, this info can be fused with any Japanese (JP) Healing, Wellness Plans / Other Reiki /and Yoga practices.
Power Awareness,
Our Defense.
Situations like Destiny Swapping even Evil Eyes are “stealing realities”. It’s causing your hard earned luck to switch out. Either way, it’s cancelling your reality all together. This maybe common recently over the last decade? I noticed it’s a sly easy move to make. Then, we are left wounded, suffering, accepting endless bad luck. It’s time to Power Up. This can be (very) private and quiet. However; building resources/EDU/self care for empowering is your business/your right. It’s a new found power we all can use for healing.
Stressin out-II
“Baby, Calm down, Calm Down.” - Song by Rema, Selena Gomez (Video Premiered Sep 7, 2022)
Within Virtual Work and VR Sims (Secondlife Metaverse) I love catching “Calm Down” On the radio streams. I love Selena first. Second, It’s such a catchy song with an island feel. This blends with both VR and working remotely.
Its also, a good affirmation or mantra to *Calm down* lol.
Something we reviewed in earlier Workshops.
I rarely mention love and relations but theres one caution.
When we date, almost marry an energy drainer/vampire partner; We enter doorways of no return. That person can psychic drain U during/after the relationship. They can also unleash their demons. Their dark energies (chi) can attach itself to you. It’s SYFI but common. Also, involving again, energy awareness. We are suppose to keep our love life sacred. But, Trust accidents do happen. The Energies can linger on. Also, Reiki can heal any breakup damage...
(See Pres for more info. Thx)
Types of Actions in Odoo 18 - Odoo SlidesCeline George
In Odoo, actions define the system's response to user interactions, like logging in or clicking buttons. They can be stored in the database or returned as dictionaries in methods. Odoo offers various action types for different purposes.
"Hymenoptera: A Diverse and Fascinating Order".pptxArshad Shaikh
Hymenoptera is a diverse order of insects that includes bees, wasps, ants, and sawflies. Characterized by their narrow waists and often social behavior, Hymenoptera play crucial roles in ecosystems as pollinators, predators, and decomposers, with many species exhibiting complex social structures and communication systems.
How to Create Time Off Request in Odoo 18 Time OffCeline George
Odoo 18 provides an efficient way to manage employee leave through the Time Off module. Employees can easily submit requests, and managers can approve or reject them based on company policies.
Search Engine Optimization (SEO) for Website SuccessMuneeb Rana
Unlock the essentials of Search Engine Optimization (SEO) with this concise, visually driven PowerPoint. Inside you’ll find:
✅ Clear definitions and core concepts of SEO
✅ A breakdown of On‑Page, Off‑Page, and Technical SEO
✅ Actionable best‑practice checklists for keyword research, content optimization, and link building
✅ A quick‑start toolkit featuring Google Analytics, Search Console, Ahrefs, SEMrush, and Moz
✅ Real‑world case study demonstrating a 70 % organic‑traffic lift
✅ Common challenges, algorithm updates, and tips for long‑term success
Whether you’re a digital‑marketing student, small‑business owner, or PR professional, this deck will help you boost visibility, build credibility, and drive sustainable traffic. Download, share, and start optimizing today!
Students will research and orally present a Colombian company using a visual tool, in order to develop their communication skills and intercultural understanding through the exploration of identity, innovation, and local culture, in connection with the IB global themes.
Jack Lutkus is an education champion, community-minded innovator, and cultural enthusiast. A social work graduate student at Aurora University, he also holds a BA from the University of Iowa.
2. • Objects are composed of attributes. If an attribute contains a function, it is considered
to be a method of the object otherwise, the attribute is considered a property.
• Object Properties:
– Object properties can be any of the three primitive data types, or any of the abstract data
types, such as another object.
– objectName.objectProperty = propertyValue;
– var str = document.title;
• Object Methods:
– The methods are functions that let the object do something or let something be done to it.
There is little difference between a function and a method, except that a function is a
standalone unit of statements and a method is attached to an object and can be referenced
by the this keyword
– Following is a simple example to show how to use write() method of document object to
write any content on the document:
– document.write("This is test");
• The new Operator:
– The new operator is used to create an instance of an object. To create an object, the new
operator is followed by the constructor method.
– var books = new Array("C++", "Perl", "Java");
– var day = new Date("August 15, 1947");
11-Apr-19 2
3. • Example:
point = new Object();
point.x=17;
point.y=22;
alert(point.x+' : '+point.y)
// Would alert: 17 : 22
• Example:
<script type="text/javascript">
var book = new Object(); // Create the object
book.subject = "Perl"; // Assign properties to the object
book.author = "Mohit";
</script>
</head>
<body>
<script type="text/javascript">
document.write("Book name is : " + book.subject + "<br>");
document.write("Book author is : " + book.author + "<br>");
</script>
// would print Book name is: perl
Book author: Mohit
11-Apr-19 3
4. • Example:
This example demonstrates how to create an object with a User-Defined Function. Here this
keyword is used to refer to the object that has been passed to a function:
<script type="text/javascript">
function book(title, author){
this.title = title;
this.author = author;
}
</script>
</head>
<body>
<script type="text/javascript">
var myBook = new book("Perl", “abcd");
document.write("Book title is : " + myBook.title + "<br>");
document.write("Book author is : " + myBook.author + "<br>");
</script>
11-Apr-19 4
5. • Example:
Here is a simple example to show how to add a function along with an object:
<script type="text/javascript"> // Define a function which will work as a method
function addPrice(amount){
this.price = amount;
}
function book(title, author){
this.title = title;
this.author = author;
this.addPrice = addPrice; // Assign that method as property.
}
</script>
</head>
<body> <script type="text/javascript">
var myBook = new book("Perl", "Mohtashim");
myBook.addPrice(100);
document.write("Book title is : " + myBook.title + "<br>");
document.write("Book author is : " + myBook.author + "<br>");
document.write("Book price is : " + myBook.price + "<br>");
</script>
11-Apr-19 5
6. • Example:
Here is a simple example to show how to add a function along with an object:
<script type="text/javascript"> // Define a function which will work as a method
function addPrice(amount){
this.price = amount;
}
function book(title, author){
this.title = title;
this.author = author;
this.addPrice = addPrice; // Assign that method as property.
}
</script>
</head>
<body> <script type="text/javascript">
var myBook = new book("Perl", "Mohtashim");
myBook.addPrice(100);
document.write("Book title is : " + myBook.title + "<br>");
document.write("Book author is : " + myBook.author + "<br>");
document.write("Book price is : " + myBook.price + "<br>");
</script>
11-Apr-19 6
8. • JavaScript has only one type of number.
• Numbers can be written with, or without decimals.
• All JavaScript Numbers are 64-bit
• The Number object represents numerical date, either integers or floating-point numbers.
• var val = new Number(number);
• Number Properties:
11-Apr-19 8
9. • Number Properties:
function showValue()
{
var smallNumber = (-Number.MAX_VALUE) * 2
if (smallNumber == Number.NEGATIVE_INFINITY) {
alert("Value of smallNumber : " + smallNumber ); }
}
Value of val : -Infinity
function showValue()
{
var bigNumber = Number.MAX_VALUE * 2
if (bigNumber == Number.POSITIVE_INFINITY) {
alert("Value of bigNumber : " + bigNumber ); }
}
Value of val : Infinity
11-Apr-19 9
10. • Number Properties:
function showValue() {
var val = Number.MAX_VALUE;
alert("Value of Number.MAX_VALUE : " + val );
}
Value of Number.MAX_VALUE : 1.7976931348623157 x 10308
function showValue() {
var val = Number.MIN_VALUE;
alert("Value of Number.MIN_VALUE : " + val );
}
Value of Number.MIN_VALUE : 5 x 10-324
11-Apr-19 10
11. • Number Properties:
function showValue() {
var dayOfMonth = 50;
if (dayOfMonth < 1 || dayOfMonth > 31)
{
dayOfMonth = Number.NaN
alert("Day of Month must be between 1 and 31.")
}
alert("Value of dayOfMonth : " + dayOfMonth );
}
Day of Month must be between 1 and 31. Value of dayOfMonth : NaN
11-Apr-19 11
12. • Example
// The following example creates a Number object, myNum,
// then adds a description property to all Number objects.
// Then a value is assigned to the myNum object's description property.
myNum = new Number(65);
Number.prototype.description=null;
myNum.description="wind speed"
alert('The '+myNum.description+' is: '+myNum);
// Would alert: The wind speed is 65
11-Apr-19 12
14. Example:
<script type="text/javascript">
var num=77.1234;
var val = num.toExponential();
document.write("num.toExponential() is : " + val );
document.write("<br />");
val = num.toExponential(4);
document.write("num.toExponential(4) is : " + val );
document.write("<br />");
val = num.toExponential(2);
document.write("num.toExponential(2) is : " + val);
document.write("<br />");
val = 77.1234.toExponential();
document.write("77.1234.toExponential()is : " + val );
document.write("<br />");
val = 77.1234.toExponential();
document.write("77 .toExponential() is : " + val);
</script>
num.toExponential() is : 7.71234e+1
num.toExponential(4) is : 7.7123e+1
num.toExponential(2) is : 7.71e+1
77.1234.toExponential()is:7.71234e+1
77 .toExponential() is : 7.71234e+1
11-Apr-19 14
16. • The Date object is a datatype built into the JavaScript language. Date objects are created with the
new Date( )
• Once a Date object is created, a number of methods allow you to operate on it. Most methods
simply allow you to get and set the year, month, day, hour, minute, second, and millisecond fields
• Syntax 1
var myDate = new Date()
Syntax 2
var myDate = new Date([parameters])
Syntax 3
var myDate = new Date(dateString)
Syntax 4
var myDate = new Date("month dd, yyyy")
Syntax 5
var myDate = new Date("month dd, yyyy hh:mm:ss")
Syntax 6
var myDate = new Date(yy, mm, dd)
Syntax 7
var myDate = new Date(yy, mm, dd, hh, mm, ss)
Syntax 8
var myDate = new Date("miliseconds")
11-Apr-19 16
17. • Example 1 :
var myDate=new Date();
alert('Right now it is: '+myDate.toLocaleString());
Example 2 :
myDate = new Date("October 13, 1966 13:35:00");
weekdays=new Array('Sun','Mon','Tues','Wednes','Thurs','Fri','Satur');
alert('I was born a '+weekdays[myDate.getDay()]+'day.');
Example 3 :
// Note: October is month number 9! (Cause January is 0)
// The reason for this is that it fits well for Arrays,
// cause first item in an Array is item number zero.
// Look at this example:
myDate = new Date(1966,9,13);
months=new Array('Jan','Feb','Mar','Apr','May','June',
'July','Aug','Sep','Oct','Nov','Dec');
alert('I was born in '+months[myDate.getMonth()]);
11-Apr-19 17
18. • Example 4 :
myDate = new Date(1966,9,13,13,35,0);
nowDate = new Date();
milliseconds=nowDate.getTime()-myDate.getTime();
days=Math.floor(milliseconds/(1000*60*60*24));
alert('I have lived for '+days+' days.');
Example 5 :
myDate = new Date(1966,9,13,13,35,0);
nowDate = new Date();
milliseconds=nowDate.getTime()-myDate.getTime();
hours=Math.floor(milliseconds/(1000*60*60));
alert('I have lived for '+hours+' hours.');
Example 6 :
nowDate = new Date();
xmasDate = new Date(nowDate.getYear(),11,24);
milliseconds=xmasDate.getTime()-nowDate.getTime();
days=Math.floor(milliseconds/(1000*60*60*24));
alert('There are '+days+' days left till christmas eve.');
11-Apr-19 18
20. • The math object provides you properties and methods for mathematical constants and functions.
• Unlike the other global objects, Math is not a constructor. All properties and methods of Math are
static and can be called by using Math as an object without creating it.
• Syntax 1
Math.property(value)
Syntax 2
Math.method(value)
• Properties:
E Euler's constant and the base of natural logarithms, approximately 2.718.
LN2 Natural logarithm of 2, approximately 0.693.
LN10 Natural logarithm of 10, approximately 2.302.
LOG2E Base 2 logarithm of E, approximately 1.442.
LOG10E Base 10 logarithm of E, approximately 0.434.
PI Ratio of the circumference of a circle to its diameter, approximately 3.14159.
SQRT1_2 Square root of 1/2; equivalently, 1 over the square root of 2, approximately
0.707.
SQRT2 Square root of 2, approximately 1.414.
11-Apr-19 20
21. • Properties Example:
var property_value = Math.LN2 (0.693)
var property_value = Math.E (Euler’s Constant – 2.718)
var property_value = Math.LN10 (2.302)
var property_value = Math.LOG2E (1.442)
var property_value = Math.LOG10E (0.434)
var property_value = Math.PI (3.141)
11-Apr-19 21
22. • Methods:
abs() Returns the absolute value of a number.
acos() Returns the arccosine (in radians) of a number.
asin() Returns the arcsine (in radians) of a number.
atan() Returns the arctangent (in radians) of a number.
atan2() Returns the arctangent of the quotient of its arguments.
ceil() Returns the smallest integer greater than or equal to a number.
cos() Returns the cosine of a number.
exp() Returns EN, where N is the argument, and E is Euler's constant, the base of the natural
logarithm.
floor() Returns the largest integer less than or equal to a number.
log() Returns the natural logarithm (base E) of a number.
max() Returns the largest of zero or more numbers.
min() Returns the smallest of zero or more numbers.
pow() Returns base to the exponent power, that is, base exponent.
random() Returns a pseudo-random number between 0 and 1.
round() Returns the value of a number rounded to the nearest integer.
sin() Returns the sine of a number.
sqrt() Returns the square root of a number.
tan() Returns the tangent of a number.
11-Apr-19 22
23. • Methods Example:
var value = Math.abs(-1); (1)
var value = Math.abs(null); (0)
var value = Math.abs(20); (20)
var value = Math.abs("string"); (NaN)
var value = Math.ceil(45.95); (46)
var value = Math.ceil(45.20); (46)
var value = Math.ceil(-45.95); (-45)
var value = Math.ceil(-45.20); (-45)
var value = Math.max(10, 20, -1, 100); (100)
var value = Math.max(-1, -3, -40); (-1)
var value = Math.max(0, -1); (0)
var value = Math.max(100); (100)
11-Apr-19 23
25. • What is RegExp?
When you search in a text, you can use a pattern to describe what you are searching for.
A simple pattern can be one single character.
Regular expressions are very powerful tools for performing pattern matches.
You can perform complex tasks that once required lengthy procedures with just a few lines of
code using regular expressions
A more complicated pattern can consist of more characters, and can be used for parsing, format
checking, substitution and more.
Regular expressions are used to perform powerful pattern-matching and "search-and-replace"
functions on text.
A regular expression is an object that describes a pattern of characters.
11-Apr-19 25
26. • Syntax:
var pattern = new RegExp(pattern, attributes);
or simply
var pattern = /pattern/attributes(modifiers);
• pattern: A string that specifies the pattern of the regular expression or another regular expression.
• attributes: An optional string containing any of the "g", "i", and "m" attributes that specify global,
case-insensitive, and multiline matches, respectively.
• Modifiers are used to perform case-insensitive and global searches.
• The i modifier is used to perform case-insensitive matching.
• The g modifier is used to perform a global match (find all matches rather than stopping after the
first match).
11-Apr-19 26
27. • Examples:
<script>
var str = "Visit Mypage";
var patt1 = /mypage/i;
document.write(str.match(patt1));
</script>
<script>
var str="Is this all there is?";
var patt1=/is/g;
document.write(str.match(patt1));
</script>
<script>
var str="Is this all there is?";
var patt1=/is/gi;
document.write(str.match(patt1));
</script>
Mypage
is,is
Is,is,is
11-Apr-19 27
29. <script>
var str="Hello world!";
//look for "Hello"
var patt=/Hello/g;
var result=patt.test(str);
document.write("Returned value: " + result);
//look for “good"
patt=/good/g;
result=patt.test(str);
document.write("<br>Returned value: " + result);
</script>
Returned value: true
Returned value: false
<script>
var str="Hello world!";
//look for "Hello"
var patt=/Hello/g;
var result=patt.exec(str);
document.write("Returned value: " + result);
//look for "W3Schools"
patt=/W3Schools/g;
result=patt.exec(str);
document.write("<br>Returned value: " + result);
</script>
Returned value: Hello
Returned value: null
11-Apr-19 29
33. <script>
var str="Is this all there is?";
var patt1=/[a-h]/g;
document.write(str.match(patt1));
</script>
h,a,h,e,e
<script>
var str="Is this all there is?";
var patt1=/[^a-h]/g;
document.write(str.match(patt1));
</script>
I,s, ,t,i,s, ,l,l, ,t,r, ,i,s,?
<script>
var str="Give 100%!";
var patt1=/w/g;
document.write(str.match(patt1));
</script>
G,i,v,e,1,0,0
<script>
var str="Give 100%!";
var patt1=/W/g;
document.write(str.match(patt1));
</script>
,%,!
11-Apr-19 33
34. <script language="JavaScript1.2">
function checkpostal()
{
var re5digit=/^d{5}$/ //regular expression defining a 5 digit number
if (document.myform.myinput.value.search(re5digit)==-1) //if match failed
alert("Please enter a valid 5 digit number inside form")
}
</script>
<form name="myform">
<input type="text" name="myinput" size=15>
<input type="button" onClick="checkpostal()" value="check">
</form>
•^ indicates the beginning of the string. Using a ^ metacharacter requires that the
match start at the beginning.
•d indicates a digit character and the {5} following it means that there must be 5
consecutive digit characters.
•$ indicates the end of the string. Using a $ metacharacter requires that the match
end at the end of the string.
11-Apr-19 34
35. var string1="Peter has 8 dollars and Jane has 15"
parsestring1=string1.match(/d+/g) //returns the array [8,15]
var string2="(304)434-5454"
parsestring2=string2.replace(/[()-]/g, "") //Returns "3044345454" (removes "(", ")", and "-
")
var string3="1,2, 3, 4, 5"
parsestring3=string3.split(/s*,s*/) //Returns the array ["1","2","3","4","5"]11-Apr-19 35
38. • With the HTML DOM, JavaScript can access all the elements of an HTML document.
• What is the Document Object Model?
The W3C Document Object Model (DOM) is a platform and language-neutral
interface that allows programs and scripts to dynamically access and update the
content, structure, and style of a document.
It defines the logical structure of documents and the way a document is accessed
and manipulated. In the DOM specification, the term "document" is used in the broad
sense.
With the Document Object Model, programmers can create and build documents,
navigate their structure, and add, modify, or delete elements and content. Anything
found in an HTML or XML document can be accessed, changed, deleted, or added using
the Document Object Model, with a few exceptions
The Document Object Model (DOM) is the model that describes how all elements
in an HTML page, like input fields, images, paragraphs etc., are related to the topmost
structure: the document itself. By calling the element by its proper DOM name, we
can influence it.11-Apr-19 38
39. • With a programmable object model, JavaScript gets all the power it needs to create
dynamic HTML:
JavaScript can change all the HTML elements in the page
JavaScript can change all the HTML attributes in the page
JavaScript can change all the CSS styles in the page
JavaScript can react to all the events in the page
JavaScript can remove existing HTML elements and attributes
JavaScript can add new HTML elements and attributes
JavaScript can create new HTML events in the page
HTML DOM defines:
The HTML elements as objects
The properties of all HTML elements
The methods to access all HTML elements
The events for all HTML element
11-Apr-19 39
40. HTML DOM Methods
• HTML DOM methods are actions you can perform (on HTML
Elements).
• HTML DOM properties are values (of HTML Elements) that you
can set or change.
• document.getElementById("demo").innerHTML = "Hello
World!";
11-Apr-19 40
41. HTML DOM Document Object
• Adding and Deleting Elements
• Adding Events Handlers
Method Description
document.createElement(element) Create an HTML element
document.removeChild(element) Remove an HTML element
document.appendChild(element) Add an HTML element
document.replaceChild(new, old) Replace an HTML element
document.write(text) Write into the HTML output stream
Method Description
document.getElementById(id).onclick =
function(){code}
Adding event handler code to an onclick event
11-Apr-19 41
42. HTML DOM Document Object
• Finding HTML Elements
• Changing HTML Elements
document.getElementById(id) Find an element by element id
document.getElementsByTagName(name) Find elements by tag name
document.getElementsByClassName(name) Find elements by class name
Property Description
element.innerHTML = new html content Change the inner HTML of an element
element.attribute= new value Change the attribute value of an HTML element
element.style.property= new style Change the style of an HTML element
Method Description
element.setAttribute(attribute, value) Change the attribute value of an HTML element
11-Apr-19 42
43. HTML DOM Elements
• Finding HTML Elements
– Often, with JavaScript, you want to manipulate HTML
elements.
• Finding HTML elements by id
• Finding HTML elements by tag name
• Finding HTML elements by class name
• Finding HTML elements by CSS selectors
• Finding HTML elements by HTML object collections
• var myElement = document.getElementById("intro");
• var x = document.getElementsByTagName("p");
11-Apr-19 43
44. • Nodes
In the Level 1 DOM, each object, whatever it may be exactly, is a Node. So if you do
<P>This is a paragraph</P>
you have created two nodes: an element P and a text node with content 'This is a
paragraph'. The text node is inside the element, so it is considered a child node of the
element.
<P> <-- element node
|
|
This is a paragraph <-- text node
<P>This is a <B>paragraph</B></P>
<P>
|
--------------
| |
This is a <B>
|
|
paragraph
11-Apr-19 44
46. To do so, you have to find the elements first. There are a couple of ways to do this:
Finding HTML elements by id
Finding HTML elements by tag name
Finding HTML elements by class name
The following HTML objects (and object collections) are also accessible:
document.anchors
document.body
document.documentElement
document.embeds
document.forms
document.head
document.images
document.links
document.scripts
document.title
(1)
<body>
<p id="intro">Hello World!</p>
<p>This example demonstrates the <b>getElementById</b> method!</p>
<script>
x=document.getElementById("intro");
document.write("<p>The text from the intro paragraph: " + x.innerHTML + "</p>");
</script>
11-Apr-19 46
47. (2)
<body>
<p>Hello World!</p>
<div id="main">
<p>The DOM is very useful.</p>
<p>This example demonstrates the <b>getElementsByTagName</b> method</p>
</div>
<script>
var x=document.getElementById("main");
var y=x.getElementsByTagName("p");
document.write('First paragraph inside "main" is ' + y[0].innerHTML);
</script>
</body>
(3)
<p id="p1">Hello World!</p>
<script>
document.getElementById("p1").innerHTML="New text!";
</script>
<p>The paragraph above was changed by a script.</p>
11-Apr-19 47
48. (5)
<body>
<img id="image" src="smiley.gif" width="160" height="120">
<script>
document.getElementById("image").src="landscape.jpg";
</script>
<p>The original image was smiley.gif, but the script changed it to landscape.jpg</p>
</body>
The HTML document above contains an <img> element with id="image"
We use the HTML DOM to get the element with id="image"
A JavaScript changes the src attribute of that element from "smiley.gif" to
"landscape.jpg“
(6)
<p id="p1">Hello World!</p>
<p id="p2">Hello World!</p>
<script>
document.getElementById("p2").style.color="blue";
document.getElementById("p2").style.fontFamily="Arial";
document.getElementById("p2").style.fontSize="larger";
</script>
<p>The paragraph above was changed by a script.</p>
11-Apr-19 48
49. (7)
<body>
<h1 id="id1">My Heading 1</h1>
<button type="button"
onclick="document.getElementById('id1').style.color='red'">
Click Me!</button>
</body>
(8)
<p>Hello World!</p>
<p class="intro">The DOM is very useful.</p>
<p class="intro">This example demonstrates the <b>getElementsByClassName</b>
method.</p>
<p id="demo"></p>
<script>
var x = document.getElementsByClassName("intro");
document.getElementById("demo").innerHTML =
'The first paragraph (index 0) with class="intro": ' + x[0].innerHTML;
</script>
11-Apr-19 49
50. (9)
<body>
<form id="frm1" action="/action_page.php">
First name: <input type="text" name="fname" value="Donald"><br>
Last name: <input type="text" name="lname" value="Duck"><br><br>
<input type="submit" value="Submit">
</form>
<p>Click "Try it" to display the value of each element in the form.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.forms["frm1"];
var text = "";
var i;
for (i = 0; i < x.length ;i++) {
text += x.elements[i].value + "<br>";
}
document.getElementById("demo").innerHTML = text;
}
</script>
</body>
11-Apr-19 50
51. HTML DOM Events
• Reacting to Events
• A JavaScript can be executed when an event occurs, like
when a user clicks on an HTML element.
• To execute code when a user clicks on an element, add
JavaScript code to an HTML event attribute: onclick = JS
• HTML events:
• When a user clicks the mouse
• When a web page has loaded
• When an image has been loaded
• When the mouse moves over an element
• When an input field is changed
• When an HTML form is submitted
• When a user strokes a key11-Apr-19 51
52. Example
(1)
<body>
<h1 onclick="this.innerHTML = 'Ooops!'">Click on this text!</h1>
</body>
(2)
<body>
<h1 onclick="changeText(this)">Click on this text!</h1>
<script>
function changeText(id) {
id.innerHTML = "Ooops!";
}
</script>
</body>
11-Apr-19 52
53. Example
(3)
<body>
<p>Click the button to display the
date.</p>
<button onclick="displayDate()">The
time is?</button>
<script>
function displayDate() {
document.getElementById("demo").in
nerHTML = Date();
}
</script>
<p id="demo"></p></body>
(4)
<body>
<p>Click "Try it" to execute the
displayDate() function.</p>
<button id="myBtn">Try it</button>
<p id="demo"></p>
<script>
document.getElementById("myBtn").o
nclick = displayDate;
function displayDate() {
document.getElementById("demo").in
nerHTML = Date();
}
</script></body>
11-Apr-19 53
54. Example
<body onload="checkCookies()">
<p id="demo"></p>
<script>
function checkCookies() {
var text = "";
if (navigator.cookieEnabled == true) {
text = "Cookies are enabled.";
} else {
text = "Cookies are not enabled.";
}
document.getElementById("demo").in
nerHTML = text;
}
</script></body>
<script>
function myFunction() {
var x =
document.getElementById("fname");
x.value = x.value.toUpperCase();
}
</script>
</head>
<body>
Enter your name: <input type="text"
id="fname"
onchange="myFunction()">
</body>
11-Apr-19 54
55. Example
<body>
<div onmouseover="mOver(this)"
onmouseout="mOut(this)"
style="background-
color:#D94A38;width:120px;height:20
px;padding:40px;">
Mouse Over Me</div>
<script>
function mOver(obj) {
obj.innerHTML = "Thank You"
}
function mOut(obj) {
obj.innerHTML = "Mouse Over Me"
}
</script></body>
<div onmousedown="mDown(this)"
onmouseup="mUp(this)"
style="background-
color:#D94A38;width:90px;height:20px;p
adding:40px;">
Click Me</div>
<script>
function mDown(obj) {
obj.style.backgroundColor = "#1ec5e5";
obj.innerHTML = "Release Me";
}
function mUp(obj) {
obj.style.backgroundColor="#D94A38";
obj.innerHTML="Thank You";
}
</script>11-Apr-19 55
56. Example
<form id="myForm" action="#">
First name: <input type="text" name="fname" value="Donald"><br>
Last name: <input type="text" name="lname" value="Duck"><br>
<input type="submit" value="Submit">
</form>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myForm").elements[0].value;
document.getElementById("demo").innerHTML = x;}
</script>
11-Apr-19 56
58. • The window object is supported by all browsers. It represent the browser's window.
• All global JavaScript objects, functions, and variables automatically become members of
the window object.
• Global variables are properties of the window object.
• Global functions are methods of the window object.
11-Apr-19 58
59. Window Screen
• The window.screen object can be written without the window prefix.
Some properties:
• screen.availWidth - available screen width
• screen.availHeight - available screen height
<script>
document.write("Available Width: " + screen.availWidth);
</script>
The output of the code above will be: Available Width: 1366
11-Apr-19 59
60. Window Location
• The window.location object can be written without the window prefix.
Some examples:
• location.hostname returns the domain name of the web host
• location.pathname returns the path and filename of the current page
• location.port returns the port of the web host (80 or 443)
• location.protocol returns the web protocol used (http:// or https://)
11-Apr-19 60
61. The location.assign() method loads a new document.
<html>
<head>
<script>
function newDoc()
{
window.location.assign(“C:Documents and SettingsAdministratorDesktopa1.html")
}
</script>
</head>
<body>
<input type="button" value="Load new document" onclick="newDoc()">
</body>
</html>
11-Apr-19 61
62. Window History
• The window.history object can be written without the window prefix.
• To protect the privacy of the users, there are limitations to how JavaScript can access
this object.
Some methods:
• history.back() - same as clicking back in the browser
• history.forward() - same as clicking forward in the browser
<html>
<head>
<script>
function goBack()
{
window.history.back()
}
</script>
</head>
<body>
<input type="button" value="Back" onclick="goBack()“> </body> </html>
11-Apr-19 62