Thursday, January 16, 2020

Lab 11 Reflection

       Lab 11 was tied in with changing content on a website page utilizing AJAX. What AJAX does is enable site pages to be refreshed without stacking the whole page. Utilizing jQuery's .heap() technique, content from a .txt record can be stacked onto a website page and change the page's substance. The manner in which I actualized this on my site page's HTML was making content between <p> labels with an extraordinary id and a catch that would change the content utilizing AJAX. I made a .txt record with content I needed to supplant the first content on my page. I connected my HTML to the jQuery library and made a document.ready() work in my content. This capacity called another capacity that joined a .tick() work onto my catch which itself appended the .heap() capacity to my section and took the name of my .txt record as a parameter, something important to stack the new content. Presently, at whatever point I clicked my catch, the content from the .txt record would stack rather than the default content. This was a very simple lab and all I really had to do was include this in my script tag, however, I see that this can be easily added to any of my sites and it is definitely possible that I will use this in my other labs and projects.

No comments:

Post a Comment

G4C #3 Report

G4C #3 GET THE PARTY STARTED Brian Sherpa The Issue: A significant percentage of Americans are currently dissatisfied with both political...