DEVELOPING CHAT and CALENDAR PLUG-IN USING AJAX PROGRAMMING Jyothi Manjunath Leelavathi B.E., Visveswaraiah Technological Univer

Total Page:16

File Type:pdf, Size:1020Kb

DEVELOPING CHAT and CALENDAR PLUG-IN USING AJAX PROGRAMMING Jyothi Manjunath Leelavathi B.E., Visveswaraiah Technological Univer DEVELOPING CHAT AND CALENDAR PLUG-IN USING AJAX PROGRAMMING Jyothi Manjunath Leelavathi B.E., Visveswaraiah Technological University, Karnataka, India, 2005 PROJECT Submitted in partial satisfaction of the requirements for the degree of MASTER OF SCIENCE in COMPUTER SCIENCE at CALIFORNIA STATE UNIVERSITY, SACRAMENTO FALL 2010 DEVELOPING CHAT AND CALENDAR PLUG-IN USING AJAX PROGRAMMING A Project by Jyothi Manjunath Leelavathi Approved by: __________________________________, Committee Chair Jinsong Ouyang, Ph.D. __________________________________, Second Reader Ying Jin, Ph.D. ____________________________ Date ii Student: Jyothi Manjunath Leelavathi I certify that this student has met the requirements for format contained in the University format manual, and that this project is suitable for shelving in the Library and credit is to be awarded for the Project. __________________________, Graduate Coordinator ________________ Nikrouz Faroughi, Ph.D. Date Department of Computer Science iii Abstract of DEVELOPING CHAT AND CALENDAR PLUG-IN USING AJAX PROGRAMMING by Jyothi Manjunath Leelavathi In this project, I am planning to develop a plug in module that can be integrated into the web based application. The aim of this application is to provide email-services, calendar services and chat services dynamically within the browser. I am responsible for developing Chat Service and Calendar service. For example, in Google apps, the user can open the Gmail and while working on this, the user can see the friends who are online without changing a window or logging into another chat messenger and also will be able to open the calendar and see the contents. In a single browser window, the user is able to view and modify the different applications dynamically. The client-side/web browser technologies used in Web 2.0 development are JavaScript and Ajax (XML). Ajax programming uses JavaScript to upload and download new data from the web server without undergoing a full page reload. iv Chat service is developed using Java and Ajax technology and the Mysql database. It has all the basic features that we see in general popular chat applications like Yahoo chat or Skype. Java technologies and Ajax framework makes the application more scalable and compatible to integrate with other application. The GUI part is greatly enhanced for better end user experiences. Calendar service application is provided with some of the basic features, such as ability to schedule one or more events on a particular day, a standard view that can show any month, with event times and titles listed in order and users will be able to open the application like any other application. _______________________, Committee Chair Jinsong Ouyang, Ph.D. _______________________ Date v ACKNOWLEDGMENTS I am thankful to all the people who have helped and guided me through this journey of completing my Masters Project. My sincere thanks to Dr. Jinsong Ouyang, for giving me the opportunity to work on my masters project under him and for guiding me throughout the project. My heartfelt thanks to Dr.Ying Jin for agreeing to be my second reader and providing me with her invaluable inputs on revising my report. My special thanks to my roommates and friends Nandish B ,Veeresh Kortagere and Anh Thai for helping me with their ideas and by reviewing my project report and lending me their Computers when ever I had problem. Last but not the least I would like to thank my husband Naren Veeranna, parents Manjunath and Leelavathi, my brother Vasu Dev and my in-laws Girija and Dr.Veeranna for their unconditional love. They have always motivated me and are the sole reasons for me to have come this far in life. vi TABLE OF CONTENTS Page Acknowledgments.............................................................................................................. vi List of Figures .................................................................................................................... ix Chapter 1. INTRODUCTION .......................................................................................................... 1 2. BACKGROUND ............................................................................................................ 3 Purpose and Scope .......................................................................................................... 5 3. TECHNOLOGY SURVEY ............................................................................................ 7 AJAX (Asynchronous Java Script and XML) ................................................................ 8 Java Servlets.................................................................................................................... 8 Java Server Pages (JSP) .................................................................................................. 9 JQuery ........................................................................................................................... 10 JavaScript ...................................................................................................................... 10 4. ARCHITECTURE ........................................................................................................ 12 Introduction ................................................................................................................... 12 The Existing Architecture of Calendar Application ..................................................... 13 Architecture Subsystem ................................................................................................ 15 Server Side Architecture for Chat Application ......................................................... 15 vii Chat Application Client ............................................................................................ 16 Database Architecture for Chat Application ............................................................. 19 5. SYSTEM DESIGN ................................................................................................... 20 Server Components for Calendar .................................................................................. 22 Insert Event Module .................................................................................................. 22 Delete Event Module ................................................................................................ 23 Update Event Method ............................................................................................... 24 Client Design for Calendar ........................................................................................... 26 Server Component Modules for Chat ........................................................................... 29 Get Message Module ................................................................................................ 30 Get User Details and Set Message ............................................................................ 31 Client Design Module for Chat Application ................................................................. 32 Data Tier Design ........................................................................................................... 36 6. IMPLEMENTATION ............................................................................................... 37 7. CONCLUSION ......................................................................................................... 44 Bibliography ................................................................................................................. 46 viii LIST OF FIGURES Page Figure 1 Basic Architecture .............................................................................................. 13 Figure 2 Calendar Technical Structures ............................................................................ 14 Figure 3 Server Systems for Chat ..................................................................................... 15 Figure 4 Chat Application Client ...................................................................................... 17 Figure 5 Refractored Calendar Design ............................................................................. 21 Figure 6 Calendar Insert Events ....................................................................................... 23 Figure 7 Delete Event Method .......................................................................................... 24 Figure 8 Update Calendar Events ..................................................................................... 25 Figure 9 Update Calendar Event ....................................................................................... 25 Figure 10 Client Design for Calendar ............................................................................... 26 Figure 11 Technical Design of Chat Application ............................................................. 28 Figure 12 Properties .......................................................................................................... 29 Figure 13 XAMPP for Assigning DB Credentials ............................................................ 30 Figure 14 Update Message Holder Table ......................................................................... 31 Figure 15 Get and Set Message ........................................................................................ 32 Figure 16 Client Design for Chat ...................................................................................... 33 Figure 17 Web Ponder Chat .............................................................................................
Recommended publications
  • Differential Fuzzing the Webassembly
    Master’s Programme in Security and Cloud Computing Differential Fuzzing the WebAssembly Master’s Thesis Gilang Mentari Hamidy MASTER’S THESIS Aalto University - EURECOM MASTER’STHESIS 2020 Differential Fuzzing the WebAssembly Fuzzing Différentiel le WebAssembly Gilang Mentari Hamidy This thesis is a public document and does not contain any confidential information. Cette thèse est un document public et ne contient aucun information confidentielle. Thesis submitted in partial fulfillment of the requirements for the degree of Master of Science in Technology. Antibes, 27 July 2020 Supervisor: Prof. Davide Balzarotti, EURECOM Co-Supervisor: Prof. Jan-Erik Ekberg, Aalto University Copyright © 2020 Gilang Mentari Hamidy Aalto University - School of Science EURECOM Master’s Programme in Security and Cloud Computing Abstract Author Gilang Mentari Hamidy Title Differential Fuzzing the WebAssembly School School of Science Degree programme Master of Science Major Security and Cloud Computing (SECCLO) Code SCI3084 Supervisor Prof. Davide Balzarotti, EURECOM Prof. Jan-Erik Ekberg, Aalto University Level Master’s thesis Date 27 July 2020 Pages 133 Language English Abstract WebAssembly, colloquially known as Wasm, is a specification for an intermediate representation that is suitable for the web environment, particularly in the client-side. It provides a machine abstraction and hardware-agnostic instruction sets, where a high-level programming language can target the compilation to the Wasm instead of specific hardware architecture. The JavaScript engine implements the Wasm specification and recompiles the Wasm instruction to the target machine instruction where the program is executed. Technically, Wasm is similar to a popular virtual machine bytecode, such as Java Virtual Machine (JVM) or Microsoft Intermediate Language (MSIL).
    [Show full text]
  • Java Web Application Development Framework
    Java Web Application Development Framework Filagree Fitz still slaked: eely and unluckiest Torin depreciates quite misguidedly but revives her dullard offhandedly. Ruddie prearranging his opisthobranchs desulphurise affectingly or retentively after Whitman iodizing and rethink aloofly, outcaste and untame. Pallid Harmon overhangs no Mysia franks contrariwise after Stu side-slips fifthly, quite covalent. Which Web development framework should I company in 2020? Content detection and analysis framework. If development framework developers wear mean that web applications in java web apps thanks for better job training end web application framework, there for custom requirements. Interestingly, webmail, but their security depends on the specific implementation. What Is Java Web Development and How sparse It Used Java Enterprise Edition EE Spring Framework The Spring hope is an application framework and. Level head your Java code and behold what then can justify for you. Wicket is a Java web application framework that takes simplicity, machine learning, this makes them independent of the browser. Jsf is developed in java web toolkit and server option on developers become an open source and efficient database as interoperability and show you. Max is a good starting point. Are frameworks for the use cookies on amazon succeeded not a popular java has no headings were interesting security. Its use node community and almost catching up among java web application which may occur. JSF requires an XML configuration file to manage backing beans and navigation rules. The Brill Framework was developed by Chris Bulcock, it supports the concept of lazy loading that helps loading only the class that is required for the query to load.
    [Show full text]
  • Ellucian's Global Browser Support Calendar
    Ellucian's Global Browser Support Calendar Publication of Ellucian’s Oracle Support Calendar and Browser Support Calendar for Banner is migrating to Ellucian eCommunities in the Banner General and Technical Forum (https://ecommunities.ellucian.com/community/banner-technical). Publication of this information via the Banner Compatibility Matrix web application will end December 2018. The following browsers and versions are supported by all Ellucian products except where noted in the "Notes & Exceptions" column. Browser Support Support Support Browser OS Notes & Exceptions Begins Ends *Ellucian makes every attempt to support the latest browsers with the latest releases of our products. Firefox and Chrome support may be limited to the current version and one back for most products except where noted in the Currently Chrome (all) Windows* documentation. Due to NPAPI plugin Supported dependencies, Banner 8.x INB is no longer supported on Chrome 45 and higher. Please see Article 000035689 for more information about browser restrictions for Banner 8.x INB support. *Ellucian makes every attempt to support the latest browsers with the latest releases of our products. Firefox and Chrome support may be limited to the current version and one back for most products except where noted in the documentation. Due to NPAPI plugin dependencies, please see Article 000035689 for more information about browser restrictions for Banner 8.x INB support. Firefox no longer supports NPAPI plugins, including the Java Windows* runtime, as of Firefox 52 3/7/2017). Currently Firefox (all) Supported Mac OS* Firefox Extended Support Release: While Ellucian has not been through a formal certification of the Firefox ESR browser, based on customer feedback, we will provide support to customers running Firefox ESR, for both Banner 8 and Banner 9, until Banner 8 INB moves to Sustaining Support.
    [Show full text]
  • DETECTING BOTS in INTERNET CHAT by SRITI KUMAR Under The
    DETECTING BOTS IN INTERNET CHAT by SRITI KUMAR (Under the Direction of Kang Li) ABSTRACT Internet chat is a real-time communication tool that allows on-line users to communicate via text in virtual spaces, called chat rooms or channels. The abuse of Internet chat by bots also known as chat bots/chatterbots poses a serious threat to the users and quality of service. Chat bots target popular chat networks to distribute spam and malware. We first collect data from a large commercial chat network and then conduct a series of analysis. While analyzing the data, different patterns were detected which represented different bot behaviors. Based on the analysis on the dataset, we proposed a classification system with three main components (1) content- based classifiers (2) machine learning classifier (3) communicator. All three components of the system complement each other in detecting bots. Evaluation of the system has shown some measured success in detecting bots in both log-based dataset and in live chat rooms. INDEX WORDS: Yahoo! Chat room, Chat Bots, ChatterBots, SPAM, YMSG DETECTING BOTS IN INTERNET CHAT by SRITI KUMAR B.E., Visveswariah Technological University, India, 2006 A Thesis Submitted to the Graduate Faculty of The University of Georgia in Partial Fulfillment of the Requirements for the Degree MASTER OF SCIENCE ATHENS, GEORGIA 2010 © 2010 Sriti Kumar All Rights Reserved DETECTING BOTS IN INTERNET CHAT by SRITI KUMAR Major Professor: Kang Li Committee: Lakshmish Ramaxwamy Prashant Doshi Electronic Version Approved: Maureen Grasso Dean of the Graduate School The University of Georgia December 2010 DEDICATION I would like to dedicate my work to my mother to be patient with me, my father for never questioning me, my brother for his constant guidance and above all for their unconditional love.
    [Show full text]
  • Dynamic Web Pages with the Embedded Web Server
    Dynamic Web Pages With The Embedded Web Server The Digi-Geek’s AJAX Workbook (NET+OS, XML, & JavaScript) Version 1.0 5/4/2011 Page 1 Copyright Digi International, 2011 Table of Contents Chapter 1 - How to Use this Guide ............................................................................................................... 5 Prerequisites – If You Can Ping, You Can Use This Thing! ..................................................................... 5 Getting Help with TCP/IP and Wi-Fi Setup ............................................................................................ 5 The Study Guide or the Short Cut? ....................................................................................................... 5 C Code ................................................................................................................................................... 6 HTML Code ............................................................................................................................................ 6 XML File ................................................................................................................................................. 6 Provide us with Your Feedback ............................................................................................................. 6 Chapter 2 - The Server-Client Relationship ................................................................................................... 7 Example – An Analogy for a Normal HTML page .................................................................................
    [Show full text]
  • Web-Based Instant Messenger
    WEB-BASED INSTANT MESSENGER By Charles Atuchukwu A thesis submitted in partial fulfillment of the requirements for the degree of BSc. Computer Science [Honours] University of the Western Cape 2009 Date: September 10, 2009 University of the Western Cape Abstract WEB-BASED INSTANT MESSENGER By Charles Atuchukwu Chairperson of the Supervisory Committee: Professor Bill W. Tucker Department of Computer Science Instant messaging (IM) application has witnessed a tremendous improvement and growth in popularity as a means of internet communication since inception because of its real-time and non real-time nature. Compare to other internet communication methods such as e-mail where you have to wait for the recipient to check his or her email and sent reply, IM is instant when the recipient is online. Traditional IM applications have to be downloaded installed and configured before it can be used; besides, they are platform dependent. These constitutes serious problems for users especially those using the application in public computers such as school libraries, computer labs, and internet cafés, where most of the time the application is not installed and the user will not have administrator’s right to install the application if at all he or she knows how to do that. Web-based instant messenger is the solution to these problems since it does not require any download, installation or configuration and besides it is platform independent. This project will try to implement a web-based instant messaging application. TABLE OF CONTENTS TABLE OF CONTENTS
    [Show full text]
  • Machine Learning in the Browser
    Machine Learning in the Browser The Harvard community has made this article openly available. Please share how this access benefits you. Your story matters Citable link http://nrs.harvard.edu/urn-3:HUL.InstRepos:38811507 Terms of Use This article was downloaded from Harvard University’s DASH repository, and is made available under the terms and conditions applicable to Other Posted Material, as set forth at http:// nrs.harvard.edu/urn-3:HUL.InstRepos:dash.current.terms-of- use#LAA Machine Learning in the Browser a thesis presented by Tomas Reimers to The Department of Computer Science in partial fulfillment of the requirements for the degree of Bachelor of Arts in the subject of Computer Science Harvard University Cambridge, Massachusetts March 2017 Contents 1 Introduction 3 1.1 Background . .3 1.2 Motivation . .4 1.2.1 Privacy . .4 1.2.2 Unavailable Server . .4 1.2.3 Simple, Self-Contained Demos . .5 1.3 Challenges . .5 1.3.1 Performance . .5 1.3.2 Poor Generality . .7 1.3.3 Manual Implementation in JavaScript . .7 2 The TensorFlow Architecture 7 2.1 TensorFlow's API . .7 2.2 TensorFlow's Implementation . .9 2.3 Portability . .9 3 Compiling TensorFlow into JavaScript 10 3.1 Motivation to Compile . 10 3.2 Background on Emscripten . 10 3.2.1 Build Process . 12 3.2.2 Dependencies . 12 3.2.3 Bitness Assumptions . 13 3.2.4 Concurrency Model . 13 3.3 Experiences . 14 4 Results 15 4.1 Benchmarks . 15 4.2 Library Size . 16 4.3 WebAssembly . 17 5 Developer Experience 17 5.1 Universal Graph Runner .
    [Show full text]
  • Rich Internet Applications
    Rich Internet Applications (RIAs) A Comparison Between Adobe Flex, JavaFX and Microsoft Silverlight Master of Science Thesis in the Programme Software Engineering and Technology CARL-DAVID GRANBÄCK Department of Computer Science and Engineering CHALMERS UNIVERSITY OF TECHNOLOGY UNIVERSITY OF GOTHENBURG Göteborg, Sweden, October 2009 The Author grants to Chalmers University of Technology and University of Gothenburg the non-exclusive right to publish the Work electronically and in a non-commercial purpose make it accessible on the Internet. The Author warrants that he/she is the author to the Work, and warrants that the Work does not contain text, pictures or other material that violates copyright law. The Author shall, when transferring the rights of the Work to a third party (for example a publisher or a company), acknowledge the third party about this agreement. If the Author has signed a copyright agreement with a third party regarding the Work, the Author warrants hereby that he/she has obtained any necessary permission from this third party to let Chalmers University of Technology and University of Gothenburg store the Work electronically and make it accessible on the Internet. Rich Internet Applications (RIAs) A Comparison Between Adobe Flex, JavaFX and Microsoft Silverlight CARL-DAVID GRANBÄCK © CARL-DAVID GRANBÄCK, October 2009. Examiner: BJÖRN VON SYDOW Department of Computer Science and Engineering Chalmers University of Technology SE-412 96 Göteborg Sweden Telephone + 46 (0)31-772 1000 Department of Computer Science and Engineering Göteborg, Sweden, October 2009 Abstract This Master's thesis report describes and compares the three Rich Internet Application !RIA" frameworks Adobe Flex, JavaFX and Microsoft Silverlight.
    [Show full text]
  • 20 Quick Tips When Considering Web Chat As a Service Channel
    White Paper 20 quick tips when considering web chat as a service channel puzzel.com About this White Paper Increased ownership of multi-channel communications devices has brought about significant changes in people’s behaviours and expectations. 53 per cent of UK adults are now regular media multi-taskers according to a recent Ofcom study - with around 25 per cent regularly engaging in media-meshing (i.e. interacting or communicating about the TV content they are viewing). 49 per cent regularly media-stack (i.e. conduct unrelated media tasks while watching TV)1. This desire to multi-task across different communications channels has also had a major impact on people’s expectations of customer service. Consumers today expect to be in control of the communications process. Rather than be told when and how they can raise service issues, they expect to be given a full range of multi-channel contact options, as well as efficient service with minimal disruption - each and every time they require help. Over the last few years, service departments and organisations have responded to this challenge by delivering: • More digital customer communications channels (e.g. email, SMS, social media, web chat and web self-service) • More customer self-service options (e.g. via the phone or the web) • An increase in non real-time one-to-one communications options (e.g. via email and SMS) Resolving a service query today is no longer something that has to be conducted in real-time by interacting with a live person. With recent technology advances, it is now something that can be done just as effectively by dealing with a person - or an intelligent automated resource - in non real-time.
    [Show full text]
  • Attacking AJAX Web Applications Vulns 2.0 for Web 2.0
    Attacking AJAX Web Applications Vulns 2.0 for Web 2.0 Alex Stamos Zane Lackey [email protected] [email protected] Blackhat Japan October 5, 2006 Information Security Partners, LLC iSECPartners.com Information Security Partners, LLC www.isecpartners.com Agenda • Introduction – Who are we? – Why care about AJAX? • How does AJAX change Web Attacks? • AJAX Background and Technologies • Attacks Against AJAX – Discovery and Method Manipulation – XSS – Cross-Site Request Forgery • Security of Popular Frameworks – Microsoft ATLAS – Google GWT –Java DWR • Q&A 2 Information Security Partners, LLC www.isecpartners.com Introduction • Who are we? – Consultants for iSEC Partners – Application security consultants and researchers – Based in San Francisco • Why listen to this talk? – New technologies are making web app security much more complicated • This is obvious to anybody who reads the paper – MySpace – Yahoo – Worming of XSS – Our Goals for what you should walk away with: • Basic understanding of AJAX and different AJAX technologies • Knowledge of how AJAX changes web attacks • In-depth knowledge on XSS and XSRF in AJAX • An opinion on whether you can trust your AJAX framework to “take care of security” 3 Information Security Partners, LLC www.isecpartners.com Shameless Plug Slide • Special Thanks to: – Scott Stender, Jesse Burns, and Brad Hill of iSEC Partners – Amit Klein and Jeremiah Grossman for doing great work in this area – Rich Cannings at Google • Books by iSECer Himanshu Dwivedi – Securing Storage – Hackers’ Challenge 3 • We are
    [Show full text]
  • Aspect® Unified IP® Multi-Choice Engagement
    DATA SHEET Aspect® Unified IP® Multi-choice Engagement As the “omni-channel customer experience” becomes the new gold standard and customers continue to take greater control of the service conversation, Aspect® Unified IP® can provide a way for you to deliver service when, where, and how your customers want it. Aspect® Unified IP® coordinates customer experiences across every conversation and every channel – through a single, elegant software platform, bringing all contact options together in one place, on one platform, so informed and empowered agents can keep talking, typing and conversing, through a differentiated multi-channel, multi-choice customer experience across voice, email, web chat, IM and SMS. Key Differentiators Engage Enterprise Workers Engage in customer interaction across channels, including Seamless Delivery social spaces Informed and empowered interactions in every channel and Unified Architecture every touch point - inbound calls and outbound calls, email, Leverage unified communications and collaboration IM, web chat and SMS – all from the same workstation technologies across the enterprise Proactive Care Enriched Options Enabled by two-way communication with customers Flexible, scalable, sophisticated enhancements, for simple to Integrating Data and Technology complex needs Automates more without involving a live agent, but when Compliance seamless transfers occur, both agents and customers start Easier to implement and enforce and thus reducing risks and with more context which enhances the experience simplifying validation Consistency Unified Implementation Enabled by technology, the contact is a consistent, Simpler deployment, reduced duplication resulting in differentiating experience, even when customers switch increased uptime and efficiencies channels Key Components Multi-channel Blending True universal blending allocates agents to other duties during lulls in incoming traffic.
    [Show full text]
  • Create Mobile Apps with HTML5, Javascript and Visual Studio
    Create mobile apps with HTML5, JavaScript and Visual Studio DevExtreme Mobile is a single page application (SPA) framework for your next Windows Phone, iOS and Android application, ready for online publication or packaged as a store-ready native app using Apache Cordova (PhoneGap). With DevExtreme, you can target today’s most popular mobile devices with a single codebase and create interactive solutions that will amaze. Get started today… ・ Leverage your existing Visual Studio expertise. ・ Build a real app, not just a web page. ・ Deliver a native UI and experience on all supported devices. ・ Use over 30 built-in touch optimized widgets. Learn more and download your free trial devexpress.com/mobile All trademarks or registered trademarks are property of their respective owners. Untitled-4 1 10/2/13 11:58 AM APPLICATIONS & DEVELOPMENT SPECIAL GOVERNMENT ISSUE INSIDE Choose a Cloud Network for Government-Compliant magazine Applications Geo-Visualization of SPECIAL GOVERNMENT ISSUE & DEVELOPMENT SPECIAL GOVERNMENT ISSUE APPLICATIONS Government Data Sources Harness Open Data with CKAN, OData and Windows Azure Engage Communities with Open311 THE DIGITAL GOVERNMENT ISSUE Inside the tools, technologies and APIs that are changing the way government interacts with citizens. PLUS SPECIAL GOVERNMENT ISSUE APPLICATIONS & DEVELOPMENT SPECIAL GOVERNMENT ISSUE & DEVELOPMENT SPECIAL GOVERNMENT ISSUE APPLICATIONS Enhance Services with Windows Phone 8 Wallet and NFC Leverage Web Assets as Data Sources for Apps APPLICATIONS & DEVELOPMENT SPECIAL GOVERNMENT ISSUE ISSUE GOVERNMENT SPECIAL DEVELOPMENT & APPLICATIONS Untitled-1 1 10/4/13 11:40 AM CONTENTS OCTOBER 2013/SPECIAL GOVERNMENT ISSUE OCTOBER 2013/SPECIAL GOVERNMENT ISSUE magazine FEATURES MOHAMMAD AL-SABT Editorial Director/[email protected] Geo-Visualization of Government KENT SHARKEY Site Manager Data Sources MICHAEL DESMOND Editor in Chief/[email protected] Malcolm Hyson ..........................................
    [Show full text]