1 / 11

Basic AJAX with jQuery and PHP

Basic AJAX with jQuery and PHP. Chris Renner Informatics Manager & Web Developer VUMC Office of Grants & Contracts Management. Agenda. What is AJAX? What is jQuery ? Demonstration/Tutorial Resources Q&A. What is AJAX?. A synchronous J avaScript A nd X ML

huy
Download Presentation

Basic AJAX with jQuery and PHP

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Basic AJAX with jQuery and PHP Chris Renner Informatics Manager & Web Developer VUMC Office of Grants & Contracts Management

  2. Agenda • What is AJAX? • What is jQuery? • Demonstration/Tutorial • Resources • Q&A

  3. What is AJAX? • Asynchronous JavaScript And XML • A bundle of technologies used together to enhance user experience by altering displayed information on a web page without a page refresh. • Employs HTML, CSS and JavaScript on client (browser) side, plus any one of a number of server-side technologies. PHP is the most popular server-side technology in AJAX implementations.

  4. AJAX visual model

  5. What is jQuery? • A “JavaScript Library” that simplifies HTML and document traversing, event handling, animating, and AJAX interactions. • A short hand for writing JavaScript with fewer lines of code do to the same things. • “Write less, do more”

  6. jQuery Syntax Examples Standard js: varfoo = document.getElementById(‘bar’).value; jQuery: varfoo = $(‘#bar’).val();

  7. XMLHTTP Request with jQuery $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Nashville", success: function(msg){ alert( "Data Saved: " + msg ); } });

  8. Tutorial/Demo • Simple “tweeting” app

  9. Demo Q&A • Any questions?

  10. Resources • Beginning Ajax with PHP, Lee Babin, Apress, Amazon id: 1590596676 • http://www.jQuery.com • W3chools AJAX tutorial: http://www.w3schools.com/Ajax/Default.Asp

  11. Find Me Phone: 2-7404 Email: chris.renner@vanderbilt.edu Dept Website: http://www.mc.vanderbilt.edu/gcm Web Development Blog: http://www.chrisrenner.com

More Related