Distance Examination using Ajax to Reduce Web Server Load and Student s Data Transfer



Similar documents
Position Paper: Toward a Mobile Rich Web Application Mobile AJAX and Mobile Web 2.0

Term Paper. P r o f. D r. E d u a r d H e i n d l. H o c h s c h u l e F u r t w a n g e n U n i v e r s i t y. P r e s e n t e d T o :

Ajax: A New Approach to Web Applications

Credits: Some of the slides are based on material adapted from

AJAX. Gregorio López López Juan Francisco López Panea

From Desktop to Browser Platform: Office Application Suite with Ajax

An introduction to creating Web 2.0 applications in Rational Application Developer Version 8.0

Performance Testing for Ajax Applications

Programming in HTML5 with JavaScript and CSS3

AJAX: Highly Interactive Web Applications. Jason Giglio.

Curl Building RIA Beyond AJAX

IT3504: Web Development Techniques (Optional)

AJAX Integration Approach for Collaborative Calendar-Server Web Services

Adding Panoramas to Google Maps Using Ajax

Web Application Development

Measuring AJAX Performance on a GPRS Mobile Platform

Ajax Design and Usability

Framework as a master tool in modern web development

Enabling AJAX in ASP.NET with No Code

Why AJAX? Keywords - Web applications, Java Script, Web INTRODUCTION. Why Not AJAX? 111 P a g e

USAGE OF ASP.NET AJAX FOR BINUS SCHOOL SERPONG WEB APPLICATIONS

Dynamic Web Programming BUILDING WEB APPLICATIONS USING ASP.NET, AJAX AND JAVASCRIPT

Preface. Motivation for this Book

IT3503 Web Development Techniques (Optional)

An Architecture for Web-based DSS

Web Cloud Architecture

Benefits of Citrix NetScaler for Ajax Applications

ONLINE SCHEDULING FOR THE PRIVATE CLINIC "OUR DOCTOR" BASED ON WEB 2.0 TECHNOLOGIES

THE NEXT GENERATION OF DATA ANALYSIS TOOLS Alexandros Karakos, Pericles Karakos

Advantage of Jquery: T his file is downloaded from

Front-End Performance Testing and Optimization

IBRI College of Technology Department of Information Technology. Intercollegiate Web Programming Contest On 12 March, 2013 (Tuesday)

Web Design Specialist

A comparative study of the network traffic generated from Traditional Internet Applications versus Rich Internet Applications

Are AJAX Applications Vulnerable to Hack Attacks?

Web Design. A Complete Introduction

maximizing IT productivity

Web Design Technology

Rich Internet Applications

Table of contents. HTML5 Data Bindings SEO DMXzone

MyCompany Professional Web Developer Certification Examination Specification

Platform Independent Mobile Application Development

Chapter 12: Advanced topic Web 2.0

Best Practices for Rich Media Ads in Asynchronous Ad Environments

Upgrade to Microsoft Web Applications

OIT 307/ OIT 218: Web Programming

Client-side Web Engineering From HTML to AJAX

A Tool for Evaluation and Optimization of Web Application Performance

Integration the Web 2.0 way. Florian Daniel April 28, 2009

Programming Fundamentals of Web Applications Course 10958A; 5 Days

Business & Computing Examinations (BCE) LONDON (UK)

HTML5. Turn this page to see Quick Guide of CTTC

AJAX Interaction in Adaptive Hypermedia

Database driven user friendly web application using Ajax

Porting Legacy Windows Applications to the Server and Web

Performance Testing Web 2.0. Stuart Moncrieff (Load Testing Guru) /

Web Testing. Main Concepts of Web Testing. Software Quality Assurance Telerik Software Academy

Whitepapers at Amikelive.com

Mobile Application Performance Report

AUTOMATED CONFERENCE CD-ROM BUILDER AN OPEN SOURCE APPROACH Stefan Karastanev

Maldives Pension Administration Office Republic of Maldives

Rich-Internet Anwendungen auf Basis von ColdFusion und Ajax

How To Build A Web App

Outline. CIW Web Design Specialist. Course Content

Implementing Mobile Thin client Architecture For Enterprise Application

Software Requirements Specification For Real Estate Web Site

Using Steelhead Appliances and Stingray Aptimizer to Accelerate Microsoft SharePoint WHITE PAPER

Backbase Accessibility

Short notes on webpage programming languages

WEB DEVELOPMENT IA & IB (893 & 894)

Google Analytics for Robust Website Analytics. Deepika Verma, Depanwita Seal, Atul Pandey

PROJECT MANAGEMENT SYSTEM

Web application development landscape: technologies and models

Pivot Charting in SharePoint with Nevron Chart for SharePoint

Update logo and logo link on A Master. Update Date and Product on B Master

A Comparative Study of Web Development Technologies Using Open Source and Proprietary Software

MO 25. Aug. 2008, 17:00 UHR RICH INTERNET APPLICATIONS MEHR BISS FÜR WEBANWENDUNGEN

Web Design and Development Certificate Program

Responsiveness. Edith Law & Mike Terry

Experimenting in the domain of RIA's and Web 2.0

GUI and Web Programming

Mobile Performance: for excellent User Experience

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

COURSE SYLLABUS EDG 6931: Designing Integrated Media Environments 2 Educational Technology Program University of Florida

Evolving Web Applications with AJAX - A Review

Website Performance: Kyle Simpson

ERIE COMMUNITY COLLEGE COURSE OUTLINE A. COURSE TITLE: CS WEB DEVELOPMENT AND PROGRAMMING FUNDAMENTALS

Chapter-1 : Introduction 1 CHAPTER - 1. Introduction

MEGA Web Application Architecture Overview MEGA 2009 SP4

Web Development News, Tips and Tutorials

INFORMATION TECHNOLOGY STANDARD

4D Deployment Options for Wide Area Networks

Visual WebGui for ASP.NET Ajax (and other Ajax) Web Developers Learn what makes Visual WebGui not just another Ajax framework

Category: Business Process and Integration Solution for Small Business and the Enterprise

ASP.NET: THE NEW PARADIGM FOR WEB APPLICATION DEVELOPMENT

JOB READY ASSESSMENT BLUEPRINT WEB DESIGN - PILOT. Test Code: 3750 Version: 01

Web. Programming. Hans- Pe0er Halvorsen, M.Sc. h0p://home.hit.no/~hansha/?page=sojware_development

SiteCelerate white paper

Growth and Challenges

Use of asynchronous JavaScript and XML for Comparative Market Analysis

Transcription:

Distance Examination using Ajax to Reduce Web Server Load and Student s Data Transfer Distance Examination using Ajax to Reduce Web Server Load and Student s Data Transfer Ridwan Sanjaya Soegijapranata Catholic University Semarang, Indonesia. Email: mail2ridwan@yahoo.com Prof. Dr. Chaiyong Brahmawong College of Internet Distance Education Assumption University, Bangkok, Thailand Email: chaiyong@ksc.au.edu Abstract Using Ajax in the web application is becoming popular now. It is a new approach of web application that closes the gap between desktop application and classic web application. Ajax is able to deliver all web contents better, smarter and richer using only technologies that are already installed on the majority of modern computers. To use this technology, a student does not need to change his/her web browser. The benefits of Ajax can be adapted by E-learning to serve a distance examination faster and more convenient to the students. Only the specific part will be requested to E-learning web server. It will reduce E-learning web server load and reduce the data transfer from students computers. If the students access the examination in the same time, they can access the examination faster than usual from their computer. Keywords: Ajax, Remote Scripting, Dynamic HTML, E-Learning, Education, Web Platform 1. Introduction The web based learning is used by several universities in the development countries now, including Thailand and Indonesia, to give an educational opportunity to their citizens. Ministry of education in both of countries is pursuing several educational institutions to educate more people in their countries via internet, which is popular called e-learning. Several problems might occur in the middle of e-learning process. However, the show must go on. Several limitations in the e-learning technology can be delimited one by one by several innovations in the web technology. For education institutions in the developing countries, one limitation to hold the e-learning is the lack of bandwidth. In reality, every process in the e-learning website needs enough bandwidth to open the material of learning, do the group discussion, and do the examination. Doing the examination is one of important factors in the e-learning process because it is the evaluation part for the students to know how far they understand the contents of subject. For the students who have limitation in the bandwidth, do the exam smoothly without problem on the bandwidth can make them focus on the result. Decreasing the data transfer between the web server and student can reduce the bandwidth problem. It will reduce the e- learning web server load also. Using Ajax (Asynchronous JavaScript + XML) can be one of technique to solve the problem on the bandwidth. Ajax can minimize the amount of traffic between the client and the server. Fourth International Conference on elearning for Knowledge-Based Society, November 18-19, 2007, Bangkok, Thailand 24.1

Ridwan Sanjaya and Prof. Dr. Chaiyong Brahmawong Making sure that your Ajax application doesn't send and receive unnecessary information adds to its robustness [6]. Ajax is basically a web development technique which uses existing technologies like JavaScript and XML, which is able to deliver the web contents faster and more convenient to the students using only technologies that are already installed on the majority of modern computers. Only the specific part will be requested to E-learning web server. It will reduce E- learning web server load and reduce the data transfer from students computers. If the students access the examination in the same time, they can access the examination faster than usual from their computer. An Ajax application eliminates the startstop-start-stop nature of interaction on the Web by introducing an intermediary - an Ajax engine - between the user and the server. It seems like adding a layer to the application would make it less responsive, but the opposite is true [3]. Figure 1: Request specific part of webpage Ajax has ability to deliver all web contents better, smarter and richer using only technologies that are already installed on the majority of modern computers [1]. Developers use Ajax technologies to build Web applications with improved performance and interactivity, as well as responsive user interfaces [4]. The primary advantages of Ajax-style Web applications are less waiting and more control for the user [5]. Ajax accomplishes this by eliminating full-page post-backs in favor of smaller, incremental in-place updates; leveraging the client machine s processing power and temporal proximity by making the Web browser responsible for more aspects of the application execution; and exploiting modern Web browsers rich graphics capabilities transparency, shading, animation, Z-ordering, compositing, and so on to add more glitz and interactivity to the presentation of information. 2. Concepts Overview Ajax (Asynchronous JavaScript and XML) is the latest boom in the Web development world. Ajax helps developers narrow the gap between desktop and web applications. Google Maps, Google Gmail, Google Earth, Yahoo Flickr, and MS Outlook Express Web Version are some of the applications powered by Ajax [2]. There is no additional feature that must be added to users computer because Ajax is not a new technology. It is basically a web development technique which uses existing technologies like Asynchronous JavaScript and XML. Asynchronous means that users can make a request to a server and perform other actions while the server is processing users request. The response can be performed only in the specific part of webpage. In the classic web applications, the user has to wait and see the blank screen while the server is processing the request [2]. Ajax architecture is very simple; a user makes an initial request and, in response, the page with the Ajax engine is loaded. Thereafter, the user sends all requests to the Ajax engine through JavaScript function Special Issue of the International Journal of the Computer, the Internet and Management, Vol.15 No. SP3, November, 2007 24.2

Distance Examination using Ajax to Reduce Web Server Load and Student s Data Transfer calls, while the Ajax engine forwards requests to the server, parses the responses, and displays the HTML in the browser. Ajax engine is collections of JavaScript functions which use XmlHttpRequest object to make requests to the server. XmlHttpRequest is the main player in an Ajax application it handles all the communication with the server. JavaScript interacts with HTML code and makes Web pages and Ajax applications more active. Ajax uses asynchronous JavaScript, which an HTML page can use to make calls asynchronously to the server from which it was loaded to fetch XML documents. This capability lets an application make a server call, retrieve new data, and simultaneously update the Web page without having to reload all the contents, all while the user continues interacting with the program. Systems can use JavaScript-based XMLHttpRequest objects to make HTTP requests and receive responses quickly and in the background, without the user experiencing any visual interruptions. Figure 2: Ajax Architecture Ajax applications take advantage of dynamic HTML, which consists of HTML, Cascading stylesheets (CSS), and JavaScript glued together with the Document Object Model (DOM). Ajax uses XML to encode data for transfer between a server and a browser or client application. CSS gives Web site developers and users more control over how browsers display pages [4]. Document Object Model (DOM) is a programming interface that lets developers create and modify HTML and XML documents as sets of program objects, which makes it easier to design Web pages that users can manipulate. The DOM defines the attributes associated with each object, as well as the ways in which users can interact with objects. DHTML works with the DOM to dynamically change the appearance of Web pages. Working with the DOM makes Ajax applications particularly responsive for users. Several benefits of using Ajax can be gained by the developers and users, such as (1) high interactivity, Ajax applications are more interactive then classic web applications; (2) high usability, it is updating only relevant portion on each user request will improve the usability of users application; (3) high speed. Ajax applications are much faster then classic web application [2]. 3. Strategies Based on the concepts, e-learning website can adapt the benefits of Ajax, especially in the examination part of e- learning. The examination page should not request the entire page for each question but only the questions itself. The components for the page are web template, internal frame for the questions, the questions database, and the server side programming to show the questions from database. The web template is a web design or layout which is combined from several pictures and HTML codes. The web template is loaded once only when the user requests Fourth International Conference on elearning for Knowledge-Based Society, November 18-19, 2007, Bangkok, Thailand 24.3

Ridwan Sanjaya and Prof. Dr. Chaiyong Brahmawong for the examination page. To minimalist the size of web page and reduce the need of bandwidth, the web design should not full with pictures. The combination of colors can give an added value of the design without increasing the size of web page. http://ridwan.sanjaya.org /research/non-ajax for the Classic web. Figure 4: Implementation Figure 3: The Web Template The internal frame should be placed in the web template to show the questions. The content inside will be changed after the students submit the answer or cancel the examination. Using Ajax, the internal frame can be dynamically showing another question without having to reload all the web page. The students should not load all the web page but the question only. The questions database is needed as a bank of questions. It will be shown by the server side programming. Several served side programming languages, such as PHP, ASP.NET, JSP, and so on, can be used to open the questions database and show the question to the web page. 4. Implementation To provide the web based examination using Ajax, the university can develop a web application which has main page (index.php), examination page (examination.php), and ajax engine (ajax.js). The example of the web examination can be shown at http://ridwan.sanjaya.org/research/ ajax for the Ajax web and The Pseudo-code of main page (index.php) of the examination web page, Ajax Engine (ajax.js), Question page (examination.php) can be seen bellow. index.php Begin Create a web template Create an internal frame Load javascripts Call a javascript function to show a question End ajax.js Begin Check Ajax web browser support Collect parameters of request Send the request to server side programming Receive the result Send the result to the internal frame End examination.php Begin Start SESSION Connect to database Check the answer Give score and save to SESSION Show the question End Special Issue of the International Journal of the Computer, the Internet and Management, Vol.15 No. SP3, November, 2007 24.4

Distance Examination using Ajax to Reduce Web Server Load and Student s Data Transfer Based on the 10 questions which are prepared to students at http://ridwan.sanjaya.org/research/ajax, the total of web page size is 84 KB and total of loading time is 10.43 seconds. Table 1: Ajax web measurement Page Size Time Question #1 78 KB 6.92 s Question #2 622 b 310 ms Question #3 604 b 460 ms Question #4 629 b 330 ms Question #5 629 b 311 ms Question #6 629 b 321 ms Question #7 629 b 321 ms Question #8 629 b 321 ms Question #9 629 b 441 ms Question #10 632 b 310 ms Result Page 190 b 380 ms 84 KB 10.43 s At another experiment, to answer 10 questions which are prepared to students at http://ridwan.sanjaya.org/research/non-ajax, students will download 858 KB and they need 41.91 seconds to load and do the examination. The comparison of size and loading time can be shown at figure 5 and figure 6. Table 2: Classic web measurement Page Size Time Question #1 78 KB 5.47 s Question #2 78 KB 3.92 s Question #3 78 KB 2.73 s Question #4 78 KB 5.23 s Question #5 78 KB 2.95 s Question #6 78 KB 3.72 s Question #7 78 KB 2.90 s Question #8 78 KB 3.75 s Question #9 78 KB 2.77 s Question #10 78 KB 4.10 s Result Page 78 KB 4.37 s 858 KB 41.91 s 5. Conclusion Ajax is a great functional tool for web applications that is updating only relevant portion on each user request. Looking at the time comparison between Ajax and Classic examination web page, using Ajax can reduce the loading time of questions and reduce the bandwidth usage also. For the students who have limitation in the bandwidth, it can help them to do the exam smoothly without having problem on the bandwidth. Size Time 120000 100000 80000 60000 40000 20000 0 Size Comparison 1 3 5 7 9 11 Page Figure 5: Size Comparison 60000 50000 40000 30000 20000 10000 0 Time Comparison 1 3 5 7 9 11 Page Non-Ajax Ajax Non-Ajax Ajax Figure 6: Loading Time Comparison Reference [1] Crane, Dave, et al. (2006), Ajax in Action, Manning Publications Co., Greenwich. [2] Eginam. (2007). An Introduction to Ajax. http://www.topcoder.com/tc?module=sta tic&d1=features&d2=071706. Fourth International Conference on elearning for Knowledge-Based Society, November 18-19, 2007, Bangkok, Thailand 24.5

Ridwan Sanjaya and Prof. Dr. Chaiyong Brahmawong [3] Garrett, J. (2005). Ajax: A New Approach to Web Applications. http://www.adaptivepath.com/ publications/essays/archives/000385.php. [4] Paulson, Linda D (2005), Building Rich Web Applications with Ajax, Computer, October 2005. [5] Smith, Keith. (2006) Simplifying Ajax- Style Web Development, Computer, May 2006. [6] Zakas, Nicholas C, et al. (2006), Professional Ajax, Wiley Publishing Inc., Indianapolis. Special Issue of the International Journal of the Computer, the Internet and Management, Vol.15 No. SP3, November, 2007 24.6