Pagina de start a forumului castiga bani din jocuri
Inregistrare • Cautare • FAQ • Membri • Grupuri • Autentificare
Traditional Web Application

 
Raspunde la subiect    Pagina de start a forumului castiga bani din jocuri » Tutorial AJAX Subiectul anterior
Subiectul urmator
Traditional Web Application
Autor Mesaj
wap-klub
Junior 2
Junior 2


Data inscrierii: 12/Noi/2010
Mesaje: 34

Mesaj Traditional Web Application Raspunde cu citat (quote)
1 First, the application shows a list of employees to pick from. (AjaxBasics/Demos/EmployeeAdmin.jsp)
Traditional Web Application Traditional Web Application
1 When the user chooses an employee, the server returns a new page (FIRST REFRESH) and a form is displayed. (AjaxBasics/Demos/EditEmployee.jsp)
Traditional Web Application Traditional Web Application
3 The user can then edit the employee data (e.g, change "Andrew" to "Andy") and submit the form. The server then returns the new page (SECOND REFRESH). (AjaxBasics/Demos/EditEmployee.jsp)
Traditional Web Application Traditional Web Application
4 To get back to the employee list to begin the process of modifying another employee's data, the user would have to click on the "Employee List" link (THIRD REFRESH).
An Ajax Web Application

Ajax makes this process much simpler for the user. Records, and even individual fields of a record, can be edited one at a time without full page refreshes. This method is illustrated below.
Like with the traditional method, the Ajax application shows a list of employees to pick from. (AjaxBasics/Solutions/EmployeeAdmin.html)
Traditional Web Application Traditional Web ApplicationWhen the user chooses an employee, the page doesn't reload. Instead, an Ajax call to the server is made, the server returns the HTML form and JavaScript is used to display the form on the page.Traditional Web Application Traditional Web ApplicationThe user can then edit the form fields. Each time a changed form field loses focus the change is sent to the server with Ajax, the server-side code updates the data in the database and sends back the updated list of employees to the browser. JavaScript is again used to display the updated list on the page.Traditional Web Application Traditional Web ApplicationThe employee list is updated to reflect the changes made. Notice "Andrew" has been changed to "Andy" in the list. A message is displayed letting the user know that the database was updated. (see footnote)Traditional Web Application Traditional Web Application
12/11/2010 18:34 Vezi profilul utilizatorului Trimite mesaj privat
Afiseaza mesajele pentru a le previzualiza:    
Raspunde la subiect    Pagina de start a forumului castiga bani din jocuri » Tutorial AJAX Ora este GMT + 2 ore
Pagina 1 din 1

 
Mergi direct la: 
Nu puteti crea un subiect nou in acest forum
Nu puteti raspunde in subiectele acestui forum
Nu puteti modifica mesajele proprii din acest forum
Nu puteti sterge mesajele proprii din acest forum
Nu puteti vota in chestionarele din acest forum


Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro