SlideShare a Scribd company logo
A presentation
By Abdul Ghaffar Khan
     (7/13/2007)
Introduction to AJAX
•

• How Is Ajax Different? The AJAX Model

• Why AJAX? The Benefits ..

• Examples of AJAX

• Benefit to Business

• Big Picture . The Scope…

• Disadvantages of AJAX

• Conclusion

Note: This presentation has two parts, the other part contains a real demo
    of AJAX application with it implementation details.
AJAX, which stands for Asynchronous JavaScript And XML,
is a programming technique that combines different
technologies. It includes a standard user interface using
(X)HTML and CSS, dynamic elements and interaction via
the DOM (Document Object Model) and asynchronous data
exchange using the XMLHttpRequest object. JavaScript is
used to tie these elements together, adding logic and
dynamically updating the user interface as needed.


                        . . ?..ok,
Sounds more technical             In other words, Ajax is a
set of programming techniques or a particular approach to
Web programming. These programming techniques involve
being able to seamlessly update a Web page or a section of a
Web application with input from the server, but without the
need for an immediate page refresh.
WEB MODEL
               DESKTOP
                                                         Server
                                                    Application +
                                                                                Network
      Application + User Interface                      Data
                                             • Less responsive
                                                                                    Client
                                             • Click and wait situation for
   • Instantaneous processing and response   the user interacting with user    User Interface
   • no delay .                              interface the response from
   • More interactive                        application running on a
                                             different location
                                             • No processing on client side
                                             , no spontaneous response

•On every user query /action there is a huge un-necessary data transfer on network to get the
result from server.
•In an application that requires a lot of interactivity with the business layer sitting on the
server, the user must reload the entire page many times. This has implications for the
efficiency of workflow, the load placed on the server hosting the application, and the
productivity of users.
Dynamic content on a Web page without a page
o
    refresh
    Eliminates the traditional quot;Click-and-Waitquot; Web-
o
    application architecture of yesterday, making it
    possible to provide the responsiveness and
    interactivity (dynamic contents)users expect from
    desktop applications.
    Ability to pull data from the server after the page
o
    is loaded in browser. contrasts with what is now
    referred as the quot;traditional architecture.quot; In which
    the user must wait for the entire Web page to
    reload to see new results from the server.
TRADATIONAL MODEL                                                       AJAX MODEL




                                                         AJAX can update smaller portions of a web page's content.
Reloading the entire web page to display                 The page uses JavaScript to request new content from the
updated content in response to some user                 server and place that content into a designated area on the
action                                                   page.




                       A sample Traditional vs. Ajax The Results
                               Traditional                         Performance       Performance
                                                 Ajax (Average)
                               (Average)                             Increase        Increase (%)
                       Bytes
                                   1,737,607            460,799         1,276,809               73%
                Transferred:
             Time (seconds):               115                78                36              32%
The main reason to use AJAX is to enhance the
o
    interactivity of a web application. With AJAX, users receive feedback from programs much faster.
    The normal cycle of quot;click-and-waitquot; is broken, and the interface acts and feels more like a native,
    client-side desktop application

                                 AJAX application, can send asynchronous requests to the web server to
o
    retrieve only the data that is needed. Using an extra layer of JavaScript, the application does not
    slow down the user interface.

                        It makes the application more responsive, because the amount of data
o
    exchanged between browser and server is vastly reduced.

                                                            Use of client Less processing to be done on the
o
    server side, because a lot of the tasks of the application are performed by the client.

                                are available that aid the AJAX development process and reduce the
o
    amount of JavaScript code

                                   If a page section encounters an error, other sections are not affected
o


                                                Traffic to and from the server is reduced considerably
o
    – because you do not have to send the entire page content (CSS, images, static sections), the
    bandwidth usage is most likely to decrease.
Here I am presenting a real example to demonstrate the advantages AJAX and a comparison.
For this purpose I have created two similar application with and without AJAX. These
applications have four data controls for user interaction, most of these controls are
dependent on the data in other control to get it own data. Means, to complete this form a user
must transfer this whole page ten times between server and client. It relates to a simple sales
business, based on the famous North Wind database. Here is the list of events that take place
on server and client side to complete this simple task.

      First it presents a form with the list of employee, user selects an employee and submits
1.
     the for.
     Server returns the form with a list of customers of the selected employee.
2.
     User selects a customer and submits the same form.
3.
     Server returns the same form with a new list of order from that customer to that employee.
4.
     User selects an order and submits the form again.
5.
     Server returns the form with a list of detail orders of that order.
6.
     User selects a detail order and submits it again.
7.
     Server accepts the form and process the selected detail order and resent the form with
8.
     some final results.
I have developed another application to perform the same task plus
to demonstrate other AJAX features that includes…

     Enhanced user interface
1.

     Dynamic and more interactive layout.
2.

     Continuous, real time desktop like response to the user actions.
3.

     An application portal to demonstrate the behavior of Desktop
4.
     MDI application to run in a web browser

     Demonstration the flexibility of designing desktop like custom
5.
     components for web application to.

                                                     Lets check it …
Time is money. Over many repetitions, the time

    employees spend waiting for the page to load can add up to significant costs.

                                                                    Increased efficiency in the user interface can often mean that time is

    saved at the task level, offering opportunities for concrete cost savings there.

                                                                  The cost of bandwidth does not increase linearly, but does increase as

    the company invests in larger-capacity Internet connections and new hardware to accommodate greater server loads. A firm's cost
    structure for bandwidth depends on the scale of their operation and these capital investment needs. That being said, the cost of
    bandwidth can be measured if this cost structure is known. If repetitious tasks consume a lot of bandwidth, these costs can escalate
    dramatically. The amount of bandwidth consumed also has implications for time savings.

                                           Reducing the number of steps has implications for the amount of time consumed but also for

    the number of opportunities for error. Fewer errors mean cost savings down the road when these errors would have to be manually
    corrected.

                                         Quite often these days, Web-based applications are used to replace desktop applications that had

    superior user interfaces. The benefits of offering users a similar or even just a familiar user interface to what they use on the desktop
    means lower training costs, fewer errors, and greater initial productivity.

                                                              : More responsive applications can improve productivity not just by

    reducing quot;wait,quot; but by promoting a more fluid, uninterrupted workflow. In a responsive application, users can move rapidly from
    one action to another as quickly as they can visualize the workflow. Less responsive applications can defeat the user's workflow
    visualization by forcing them to continually wait for program information.


    Ajax Cost Savings = Hourly Labor Rate X (Seconds Saved per Transaction X Number of Transactions per year) / 3600

    Looking at a conservative potential time savings of 36 seconds per transaction, if a business performs 50,000 of these transactions per year, and a
    labor cost of $20/hour, we see a total labor savings of $10,000 per year, or 500 man hours, on this transaction type alone.
Sophisticated user interface controls and effects: Controls such as trees, menus, data tables, rich

    text editors, calendars, and progress bars allow for better user interaction and interaction with HTML pages, generally
    without requiring the user to reload the page.






                            A specific portion of form data such as an email address, name, or city name may be auto

    completed as the user types.


                           and server push







                                      An HTML page can obtain data using a server-side proxy or by including an external

    script to mix external data with your application's or your service's data. For example, you can mix content or data from
    a third-party application such as Google Maps with your own application.


                                      Ajax techniques can be made to create single-page applications that look and feel much

    like a desktop application.
Application involves heavy server requests, with multiple web forms that submit

    data to the server.

    Want to display large amounts of data in a sequential manner without refreshing

    the entire page.

    Users interact frequently with the application through forms to decide what to

    display, rather then submitting data.

    Application response time is a concern.




    Loading times have to be as short as possible.

can increase development time and costs.

    frameworks and components still need to completely mature.

    browser history and bookmarks will not be able to restore the exact page

    state
    Complexity: Server-side developers will need to understand that

    presentation logic will be required in the HTML client pages as well as in
    the server-side logic to generate the XML content needed by the client
    HTML pages. HTML page developers need to have a basic understanding
    of JavaScript technology to create new Ajax functionality. Other options
    such as Project jMaki and Project Dynamic Faces provide a way for Java
    developers to better use Ajax functionality without requiring deep
    knowledge of JavaScript technology.
    Debugging: Ajax applications are also difficult to debug because the

    processing logic is embedded both in the client and on the server.
    Browser add-ons such as Mozilla Firebug have emerged to make
    debuging easier. Frameworks such as the Google Web Toolkit have
    emerged to allow for client and server round-trip debugging.
What is evident is that prominent web
applications are increasingly becoming more
interactive.

More Related Content

What's hot

SOA Pattern Event Driven Messaging
SOA Pattern Event Driven MessagingSOA Pattern Event Driven Messaging
SOA Pattern Event Driven Messaging
WSO2
 
Aras Role Based Clients
Aras Role Based ClientsAras Role Based Clients
Aras Role Based Clients
Prodeos
 
SOA vs EDA
SOA vs EDASOA vs EDA
Should you be using an event driven architecture - IDA IT (short version)
Should you be using an event driven architecture - IDA IT (short version)Should you be using an event driven architecture - IDA IT (short version)
Should you be using an event driven architecture - IDA IT (short version)
Jeppe Cramon
 
Life above the_service_tier_v1.1
Life above the_service_tier_v1.1Life above the_service_tier_v1.1
Life above the_service_tier_v1.1
Ganesh Prasad
 
Web 2 0 Data Visualization With Jsf
Web 2 0 Data Visualization With JsfWeb 2 0 Data Visualization With Jsf
Web 2 0 Data Visualization With Jsf
rajivmordani
 
Restful Services
Restful ServicesRestful Services
Restful Services
SHAKIL AKHTAR
 
SOFEA: Service Oriented Front End Architecture, Next Gen Web Architecture for...
SOFEA: Service Oriented Front End Architecture, Next Gen Web Architecture for...SOFEA: Service Oriented Front End Architecture, Next Gen Web Architecture for...
SOFEA: Service Oriented Front End Architecture, Next Gen Web Architecture for...
Kunal Ashar
 
JFokus 2020 - How to migrate an application to serverless
JFokus 2020 - How to migrate an application to serverlessJFokus 2020 - How to migrate an application to serverless
JFokus 2020 - How to migrate an application to serverless
Marcia Villalba
 
Event Driven Architecture (Integration Tech Event 2019)
Event Driven Architecture (Integration Tech Event 2019)Event Driven Architecture (Integration Tech Event 2019)
Event Driven Architecture (Integration Tech Event 2019)
Jeppe Cramon
 
jmp206 - Lotus Domino Web Services Jumpstart
jmp206 - Lotus Domino Web Services Jumpstartjmp206 - Lotus Domino Web Services Jumpstart
jmp206 - Lotus Domino Web Services Jumpstart
Bill Buchan
 
Oracle CodeOne 2019: Descending the Testing Pyramid: Effective Testing Strate...
Oracle CodeOne 2019: Descending the Testing Pyramid: Effective Testing Strate...Oracle CodeOne 2019: Descending the Testing Pyramid: Effective Testing Strate...
Oracle CodeOne 2019: Descending the Testing Pyramid: Effective Testing Strate...
Chris Richardson
 
Architecting for Change: An Agile Approach
Architecting for Change: An Agile ApproachArchitecting for Change: An Agile Approach
Architecting for Change: An Agile Approach
Ben Stopford
 
Event-Driven Service-oriented Architecture (EDSOA)
Event-Driven Service-oriented Architecture (EDSOA)Event-Driven Service-oriented Architecture (EDSOA)
Event-Driven Service-oriented Architecture (EDSOA)
Attune Infocom Pvt Ltd
 
YOW! Perth: Cubes, Hexagons, Triangles, and More: Understanding the Microserv...
YOW! Perth: Cubes, Hexagons, Triangles, and More: Understanding the Microserv...YOW! Perth: Cubes, Hexagons, Triangles, and More: Understanding the Microserv...
YOW! Perth: Cubes, Hexagons, Triangles, and More: Understanding the Microserv...
Chris Richardson
 
Nllug 2010-web-services
Nllug 2010-web-servicesNllug 2010-web-services
Nllug 2010-web-services
Bill Buchan
 
adrian coyler open tour keynote
adrian coyler open tour keynoteadrian coyler open tour keynote
adrian coyler open tour keynote
marklucovsky
 
Designing loosely coupled services
Designing loosely coupled servicesDesigning loosely coupled services
Designing loosely coupled services
Chris Richardson
 

What's hot (18)

SOA Pattern Event Driven Messaging
SOA Pattern Event Driven MessagingSOA Pattern Event Driven Messaging
SOA Pattern Event Driven Messaging
 
Aras Role Based Clients
Aras Role Based ClientsAras Role Based Clients
Aras Role Based Clients
 
SOA vs EDA
SOA vs EDASOA vs EDA
SOA vs EDA
 
Should you be using an event driven architecture - IDA IT (short version)
Should you be using an event driven architecture - IDA IT (short version)Should you be using an event driven architecture - IDA IT (short version)
Should you be using an event driven architecture - IDA IT (short version)
 
Life above the_service_tier_v1.1
Life above the_service_tier_v1.1Life above the_service_tier_v1.1
Life above the_service_tier_v1.1
 
Web 2 0 Data Visualization With Jsf
Web 2 0 Data Visualization With JsfWeb 2 0 Data Visualization With Jsf
Web 2 0 Data Visualization With Jsf
 
Restful Services
Restful ServicesRestful Services
Restful Services
 
SOFEA: Service Oriented Front End Architecture, Next Gen Web Architecture for...
SOFEA: Service Oriented Front End Architecture, Next Gen Web Architecture for...SOFEA: Service Oriented Front End Architecture, Next Gen Web Architecture for...
SOFEA: Service Oriented Front End Architecture, Next Gen Web Architecture for...
 
JFokus 2020 - How to migrate an application to serverless
JFokus 2020 - How to migrate an application to serverlessJFokus 2020 - How to migrate an application to serverless
JFokus 2020 - How to migrate an application to serverless
 
Event Driven Architecture (Integration Tech Event 2019)
Event Driven Architecture (Integration Tech Event 2019)Event Driven Architecture (Integration Tech Event 2019)
Event Driven Architecture (Integration Tech Event 2019)
 
jmp206 - Lotus Domino Web Services Jumpstart
jmp206 - Lotus Domino Web Services Jumpstartjmp206 - Lotus Domino Web Services Jumpstart
jmp206 - Lotus Domino Web Services Jumpstart
 
Oracle CodeOne 2019: Descending the Testing Pyramid: Effective Testing Strate...
Oracle CodeOne 2019: Descending the Testing Pyramid: Effective Testing Strate...Oracle CodeOne 2019: Descending the Testing Pyramid: Effective Testing Strate...
Oracle CodeOne 2019: Descending the Testing Pyramid: Effective Testing Strate...
 
Architecting for Change: An Agile Approach
Architecting for Change: An Agile ApproachArchitecting for Change: An Agile Approach
Architecting for Change: An Agile Approach
 
Event-Driven Service-oriented Architecture (EDSOA)
Event-Driven Service-oriented Architecture (EDSOA)Event-Driven Service-oriented Architecture (EDSOA)
Event-Driven Service-oriented Architecture (EDSOA)
 
YOW! Perth: Cubes, Hexagons, Triangles, and More: Understanding the Microserv...
YOW! Perth: Cubes, Hexagons, Triangles, and More: Understanding the Microserv...YOW! Perth: Cubes, Hexagons, Triangles, and More: Understanding the Microserv...
YOW! Perth: Cubes, Hexagons, Triangles, and More: Understanding the Microserv...
 
Nllug 2010-web-services
Nllug 2010-web-servicesNllug 2010-web-services
Nllug 2010-web-services
 
adrian coyler open tour keynote
adrian coyler open tour keynoteadrian coyler open tour keynote
adrian coyler open tour keynote
 
Designing loosely coupled services
Designing loosely coupled servicesDesigning loosely coupled services
Designing loosely coupled services
 

Similar to My Presentation On Ajax

Ajax Ppt 1
Ajax Ppt 1Ajax Ppt 1
Ajax Ppt 1
JayaPrakash.m
 
Internet applications unit1
Internet applications unit1Internet applications unit1
Internet applications unit1
MSc CST
 
Ajax Testing Approach
Ajax Testing ApproachAjax Testing Approach
Ajax Testing Approach
HarshJ
 
Ajax Testing Approach
Ajax Testing ApproachAjax Testing Approach
Ajax Testing Approach
HarshaVJoshi
 
Ajax Security Dangers
Ajax Security DangersAjax Security Dangers
Ajax Security Dangers
drkimsky
 
Ajax & Reverse Ajax Presenation
Ajax & Reverse Ajax PresenationAjax & Reverse Ajax Presenation
Ajax & Reverse Ajax Presenation
Rishabh Garg
 
Practical Thin Server Architecture With Dojo Sapo Codebits 2008
Practical Thin Server Architecture With Dojo Sapo Codebits 2008Practical Thin Server Architecture With Dojo Sapo Codebits 2008
Practical Thin Server Architecture With Dojo Sapo Codebits 2008
codebits
 
Lessons
LessonsLessons
Lessons
guest1019f4
 
Lessons from the Trenches: Engineering Great AJAX Experiences
Lessons from the Trenches: Engineering Great AJAX ExperiencesLessons from the Trenches: Engineering Great AJAX Experiences
Lessons from the Trenches: Engineering Great AJAX Experiences
goodfriday
 
Practical Thin Server Architecture With Dojo Peter Svensson
Practical Thin Server Architecture With Dojo Peter SvenssonPractical Thin Server Architecture With Dojo Peter Svensson
Practical Thin Server Architecture With Dojo Peter Svensson
rajivmordani
 
Sencha Web Applications Come of Age
Sencha Web Applications Come of AgeSencha Web Applications Come of Age
Sencha Web Applications Come of Age
bastila
 
Single page applications
Single page applicationsSingle page applications
Single page applications
Prafful Garg
 
Client Side Performance In Web Applications
Client Side Performance In Web ApplicationsClient Side Performance In Web Applications
Client Side Performance In Web Applications
vladungureanu
 
Application Performance Lecture
Application Performance LectureApplication Performance Lecture
Application Performance Lecture
Vishwanath Ramdas
 
A model for performance testing of ajax based web applications
A model for performance testing of ajax based web applicationsA model for performance testing of ajax based web applications
A model for performance testing of ajax based web applications
eSAT Publishing House
 
Components of a Generic Web Application Architecture
Components of  a Generic Web Application ArchitectureComponents of  a Generic Web Application Architecture
Components of a Generic Web Application Architecture
MadonnaLamin1
 
AJAX
AJAXAJAX
Presemtation Tier Optimizations
Presemtation Tier OptimizationsPresemtation Tier Optimizations
Presemtation Tier Optimizations
Anup Hariharan Nair
 
Ajax ppt - 32 slides
Ajax ppt - 32 slidesAjax ppt - 32 slides
Ajax ppt - 32 slides
Smithss25
 
Offline progressive web apps with NodeJS and React
Offline progressive web apps with NodeJS and ReactOffline progressive web apps with NodeJS and React
Offline progressive web apps with NodeJS and React
Ilia Idakiev
 

Similar to My Presentation On Ajax (20)

Ajax Ppt 1
Ajax Ppt 1Ajax Ppt 1
Ajax Ppt 1
 
Internet applications unit1
Internet applications unit1Internet applications unit1
Internet applications unit1
 
Ajax Testing Approach
Ajax Testing ApproachAjax Testing Approach
Ajax Testing Approach
 
Ajax Testing Approach
Ajax Testing ApproachAjax Testing Approach
Ajax Testing Approach
 
Ajax Security Dangers
Ajax Security DangersAjax Security Dangers
Ajax Security Dangers
 
Ajax & Reverse Ajax Presenation
Ajax & Reverse Ajax PresenationAjax & Reverse Ajax Presenation
Ajax & Reverse Ajax Presenation
 
Practical Thin Server Architecture With Dojo Sapo Codebits 2008
Practical Thin Server Architecture With Dojo Sapo Codebits 2008Practical Thin Server Architecture With Dojo Sapo Codebits 2008
Practical Thin Server Architecture With Dojo Sapo Codebits 2008
 
Lessons
LessonsLessons
Lessons
 
Lessons from the Trenches: Engineering Great AJAX Experiences
Lessons from the Trenches: Engineering Great AJAX ExperiencesLessons from the Trenches: Engineering Great AJAX Experiences
Lessons from the Trenches: Engineering Great AJAX Experiences
 
Practical Thin Server Architecture With Dojo Peter Svensson
Practical Thin Server Architecture With Dojo Peter SvenssonPractical Thin Server Architecture With Dojo Peter Svensson
Practical Thin Server Architecture With Dojo Peter Svensson
 
Sencha Web Applications Come of Age
Sencha Web Applications Come of AgeSencha Web Applications Come of Age
Sencha Web Applications Come of Age
 
Single page applications
Single page applicationsSingle page applications
Single page applications
 
Client Side Performance In Web Applications
Client Side Performance In Web ApplicationsClient Side Performance In Web Applications
Client Side Performance In Web Applications
 
Application Performance Lecture
Application Performance LectureApplication Performance Lecture
Application Performance Lecture
 
A model for performance testing of ajax based web applications
A model for performance testing of ajax based web applicationsA model for performance testing of ajax based web applications
A model for performance testing of ajax based web applications
 
Components of a Generic Web Application Architecture
Components of  a Generic Web Application ArchitectureComponents of  a Generic Web Application Architecture
Components of a Generic Web Application Architecture
 
AJAX
AJAXAJAX
AJAX
 
Presemtation Tier Optimizations
Presemtation Tier OptimizationsPresemtation Tier Optimizations
Presemtation Tier Optimizations
 
Ajax ppt - 32 slides
Ajax ppt - 32 slidesAjax ppt - 32 slides
Ajax ppt - 32 slides
 
Offline progressive web apps with NodeJS and React
Offline progressive web apps with NodeJS and ReactOffline progressive web apps with NodeJS and React
Offline progressive web apps with NodeJS and React
 

More from Ghaffar Khan

World is beautiful ... ...
World is beautiful ... ...World is beautiful ... ...
World is beautiful ... ...
Ghaffar Khan
 
Sorting
SortingSorting
Sorting
Ghaffar Khan
 
How A Computer Works
How A Computer WorksHow A Computer Works
How A Computer Works
Ghaffar Khan
 
For Loop
For LoopFor Loop
For Loop
Ghaffar Khan
 
Exponential and Logarthmic funtions
Exponential and Logarthmic funtionsExponential and Logarthmic funtions
Exponential and Logarthmic funtions
Ghaffar Khan
 
Exponential and Logarthmic funtions (1)
Exponential and Logarthmic funtions (1)Exponential and Logarthmic funtions (1)
Exponential and Logarthmic funtions (1)
Ghaffar Khan
 
Functions
FunctionsFunctions
Functions
Ghaffar Khan
 
Quadratic And Polinomial Function
Quadratic And Polinomial FunctionQuadratic And Polinomial Function
Quadratic And Polinomial Function
Ghaffar Khan
 
Quadratic And Polinomial Function
 Quadratic And Polinomial Function Quadratic And Polinomial Function
Quadratic And Polinomial Function
Ghaffar Khan
 
Exponentioal And Logarthmic Functions
 Exponentioal And Logarthmic Functions Exponentioal And Logarthmic Functions
Exponentioal And Logarthmic Functions
Ghaffar Khan
 
Internet Protocol
Internet ProtocolInternet Protocol
Internet Protocol
Ghaffar Khan
 
Introduction to Computer Networks
 Introduction to Computer Networks Introduction to Computer Networks
Introduction to Computer Networks
Ghaffar Khan
 
Network Layer
Network LayerNetwork Layer
Network Layer
Ghaffar Khan
 
Control Structures
Control StructuresControl Structures
Control Structures
Ghaffar Khan
 
Input And Output
 Input And Output Input And Output
Input And Output
Ghaffar Khan
 
Surfaces
SurfacesSurfaces
Surfaces
Ghaffar Khan
 
Vector Tools
Vector ToolsVector Tools
Vector Tools
Ghaffar Khan
 
Drawing Tools
Drawing ToolsDrawing Tools
Drawing Tools
Ghaffar Khan
 
Drawing Figures
Drawing FiguresDrawing Figures
Drawing Figures
Ghaffar Khan
 
Computer Graphics Introduction
Computer Graphics IntroductionComputer Graphics Introduction
Computer Graphics Introduction
Ghaffar Khan
 

More from Ghaffar Khan (20)

World is beautiful ... ...
World is beautiful ... ...World is beautiful ... ...
World is beautiful ... ...
 
Sorting
SortingSorting
Sorting
 
How A Computer Works
How A Computer WorksHow A Computer Works
How A Computer Works
 
For Loop
For LoopFor Loop
For Loop
 
Exponential and Logarthmic funtions
Exponential and Logarthmic funtionsExponential and Logarthmic funtions
Exponential and Logarthmic funtions
 
Exponential and Logarthmic funtions (1)
Exponential and Logarthmic funtions (1)Exponential and Logarthmic funtions (1)
Exponential and Logarthmic funtions (1)
 
Functions
FunctionsFunctions
Functions
 
Quadratic And Polinomial Function
Quadratic And Polinomial FunctionQuadratic And Polinomial Function
Quadratic And Polinomial Function
 
Quadratic And Polinomial Function
 Quadratic And Polinomial Function Quadratic And Polinomial Function
Quadratic And Polinomial Function
 
Exponentioal And Logarthmic Functions
 Exponentioal And Logarthmic Functions Exponentioal And Logarthmic Functions
Exponentioal And Logarthmic Functions
 
Internet Protocol
Internet ProtocolInternet Protocol
Internet Protocol
 
Introduction to Computer Networks
 Introduction to Computer Networks Introduction to Computer Networks
Introduction to Computer Networks
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
Control Structures
Control StructuresControl Structures
Control Structures
 
Input And Output
 Input And Output Input And Output
Input And Output
 
Surfaces
SurfacesSurfaces
Surfaces
 
Vector Tools
Vector ToolsVector Tools
Vector Tools
 
Drawing Tools
Drawing ToolsDrawing Tools
Drawing Tools
 
Drawing Figures
Drawing FiguresDrawing Figures
Drawing Figures
 
Computer Graphics Introduction
Computer Graphics IntroductionComputer Graphics Introduction
Computer Graphics Introduction
 

Recently uploaded

GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
Pixlogix Infotech
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
Neo4j
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
Antonios Katsarakis
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
marufrahmanstratejm
 
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
saastr
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
operationspcvita
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
Fwdays
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
DianaGray10
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 

Recently uploaded (20)

GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Best 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERPBest 20 SEO Techniques To Improve Website Visibility In SERP
Best 20 SEO Techniques To Improve Website Visibility In SERP
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
 
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 

My Presentation On Ajax

  • 1. A presentation By Abdul Ghaffar Khan (7/13/2007)
  • 2. Introduction to AJAX • • How Is Ajax Different? The AJAX Model • Why AJAX? The Benefits .. • Examples of AJAX • Benefit to Business • Big Picture . The Scope… • Disadvantages of AJAX • Conclusion Note: This presentation has two parts, the other part contains a real demo of AJAX application with it implementation details.
  • 3. AJAX, which stands for Asynchronous JavaScript And XML, is a programming technique that combines different technologies. It includes a standard user interface using (X)HTML and CSS, dynamic elements and interaction via the DOM (Document Object Model) and asynchronous data exchange using the XMLHttpRequest object. JavaScript is used to tie these elements together, adding logic and dynamically updating the user interface as needed. . . ?..ok, Sounds more technical In other words, Ajax is a set of programming techniques or a particular approach to Web programming. These programming techniques involve being able to seamlessly update a Web page or a section of a Web application with input from the server, but without the need for an immediate page refresh.
  • 4. WEB MODEL DESKTOP Server Application + Network Application + User Interface Data • Less responsive Client • Click and wait situation for • Instantaneous processing and response the user interacting with user User Interface • no delay . interface the response from • More interactive application running on a different location • No processing on client side , no spontaneous response •On every user query /action there is a huge un-necessary data transfer on network to get the result from server. •In an application that requires a lot of interactivity with the business layer sitting on the server, the user must reload the entire page many times. This has implications for the efficiency of workflow, the load placed on the server hosting the application, and the productivity of users.
  • 5. Dynamic content on a Web page without a page o refresh Eliminates the traditional quot;Click-and-Waitquot; Web- o application architecture of yesterday, making it possible to provide the responsiveness and interactivity (dynamic contents)users expect from desktop applications. Ability to pull data from the server after the page o is loaded in browser. contrasts with what is now referred as the quot;traditional architecture.quot; In which the user must wait for the entire Web page to reload to see new results from the server.
  • 6. TRADATIONAL MODEL AJAX MODEL AJAX can update smaller portions of a web page's content. Reloading the entire web page to display The page uses JavaScript to request new content from the updated content in response to some user server and place that content into a designated area on the action page. A sample Traditional vs. Ajax The Results Traditional Performance Performance Ajax (Average) (Average) Increase Increase (%) Bytes 1,737,607 460,799 1,276,809 73% Transferred: Time (seconds): 115 78 36 32%
  • 7. The main reason to use AJAX is to enhance the o interactivity of a web application. With AJAX, users receive feedback from programs much faster. The normal cycle of quot;click-and-waitquot; is broken, and the interface acts and feels more like a native, client-side desktop application AJAX application, can send asynchronous requests to the web server to o retrieve only the data that is needed. Using an extra layer of JavaScript, the application does not slow down the user interface. It makes the application more responsive, because the amount of data o exchanged between browser and server is vastly reduced. Use of client Less processing to be done on the o server side, because a lot of the tasks of the application are performed by the client. are available that aid the AJAX development process and reduce the o amount of JavaScript code If a page section encounters an error, other sections are not affected o Traffic to and from the server is reduced considerably o – because you do not have to send the entire page content (CSS, images, static sections), the bandwidth usage is most likely to decrease.
  • 8. Here I am presenting a real example to demonstrate the advantages AJAX and a comparison. For this purpose I have created two similar application with and without AJAX. These applications have four data controls for user interaction, most of these controls are dependent on the data in other control to get it own data. Means, to complete this form a user must transfer this whole page ten times between server and client. It relates to a simple sales business, based on the famous North Wind database. Here is the list of events that take place on server and client side to complete this simple task. First it presents a form with the list of employee, user selects an employee and submits 1. the for. Server returns the form with a list of customers of the selected employee. 2. User selects a customer and submits the same form. 3. Server returns the same form with a new list of order from that customer to that employee. 4. User selects an order and submits the form again. 5. Server returns the form with a list of detail orders of that order. 6. User selects a detail order and submits it again. 7. Server accepts the form and process the selected detail order and resent the form with 8. some final results.
  • 9. I have developed another application to perform the same task plus to demonstrate other AJAX features that includes… Enhanced user interface 1. Dynamic and more interactive layout. 2. Continuous, real time desktop like response to the user actions. 3. An application portal to demonstrate the behavior of Desktop 4. MDI application to run in a web browser Demonstration the flexibility of designing desktop like custom 5. components for web application to. Lets check it …
  • 10. Time is money. Over many repetitions, the time  employees spend waiting for the page to load can add up to significant costs. Increased efficiency in the user interface can often mean that time is  saved at the task level, offering opportunities for concrete cost savings there. The cost of bandwidth does not increase linearly, but does increase as  the company invests in larger-capacity Internet connections and new hardware to accommodate greater server loads. A firm's cost structure for bandwidth depends on the scale of their operation and these capital investment needs. That being said, the cost of bandwidth can be measured if this cost structure is known. If repetitious tasks consume a lot of bandwidth, these costs can escalate dramatically. The amount of bandwidth consumed also has implications for time savings. Reducing the number of steps has implications for the amount of time consumed but also for  the number of opportunities for error. Fewer errors mean cost savings down the road when these errors would have to be manually corrected. Quite often these days, Web-based applications are used to replace desktop applications that had  superior user interfaces. The benefits of offering users a similar or even just a familiar user interface to what they use on the desktop means lower training costs, fewer errors, and greater initial productivity. : More responsive applications can improve productivity not just by  reducing quot;wait,quot; but by promoting a more fluid, uninterrupted workflow. In a responsive application, users can move rapidly from one action to another as quickly as they can visualize the workflow. Less responsive applications can defeat the user's workflow visualization by forcing them to continually wait for program information.  Ajax Cost Savings = Hourly Labor Rate X (Seconds Saved per Transaction X Number of Transactions per year) / 3600 Looking at a conservative potential time savings of 36 seconds per transaction, if a business performs 50,000 of these transactions per year, and a labor cost of $20/hour, we see a total labor savings of $10,000 per year, or 500 man hours, on this transaction type alone.
  • 11. Sophisticated user interface controls and effects: Controls such as trees, menus, data tables, rich  text editors, calendars, and progress bars allow for better user interaction and interaction with HTML pages, generally without requiring the user to reload the page.  A specific portion of form data such as an email address, name, or city name may be auto  completed as the user types. and server push   An HTML page can obtain data using a server-side proxy or by including an external  script to mix external data with your application's or your service's data. For example, you can mix content or data from a third-party application such as Google Maps with your own application. Ajax techniques can be made to create single-page applications that look and feel much  like a desktop application.
  • 12. Application involves heavy server requests, with multiple web forms that submit  data to the server. Want to display large amounts of data in a sequential manner without refreshing  the entire page. Users interact frequently with the application through forms to decide what to  display, rather then submitting data. Application response time is a concern.  Loading times have to be as short as possible. 
  • 13. can increase development time and costs.  frameworks and components still need to completely mature.  browser history and bookmarks will not be able to restore the exact page  state Complexity: Server-side developers will need to understand that  presentation logic will be required in the HTML client pages as well as in the server-side logic to generate the XML content needed by the client HTML pages. HTML page developers need to have a basic understanding of JavaScript technology to create new Ajax functionality. Other options such as Project jMaki and Project Dynamic Faces provide a way for Java developers to better use Ajax functionality without requiring deep knowledge of JavaScript technology. Debugging: Ajax applications are also difficult to debug because the  processing logic is embedded both in the client and on the server. Browser add-ons such as Mozilla Firebug have emerged to make debuging easier. Frameworks such as the Google Web Toolkit have emerged to allow for client and server round-trip debugging.
  • 14. What is evident is that prominent web applications are increasingly becoming more interactive.