Lab #11 AJAX Load
Within this lab, I was instructed to create a webpage that uses jQuery's .load method in order to load text from an external text file and display it on the webpage. This would involve AJAX which is imbedded inside of jQuery which I linked to the page as well as the external text file.
In order to accomplish the completion of this lab, I created an external text file and included it in my files. To make sure this lab functioned properly, I linked the jQuery library and used the .load method within jQuery to obtain my text file and embed it into the document. In other words, the jQuery uses the .load method from AJAX to load my text file and then replace the div within my document. That's why when you press the button, the text that says it is to be modified by AJAX, will be changed into this text. In addition, everything that you are reading once you click the external text button is on the external text file.
Web designers could find this skill to be useful because with it, they would be able to store data without having to go and change in within the HTML, CSS or JavaScript and instead display it in a separate file. In addition to this, they can recall that data whenever they want and use it in their webpage due to AJAX existing within jQuery.

Comments
Post a Comment