Event Handling & AJAX. IT210 Web Systems. Question. How do we enable users to dynamically interact with a website? Answer: Use mouse and keyboard to trigger Events (e.g., “click”, “hover”, press ctrl key) that call functions (Event Handlers)
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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
IT210 Web Systems
Connects DOM element, Event,
and Event Handler together
<button onclick = “PlayMusic()”
HTML element tied to an
Code that executes when an event
occurs; typically a function
Something that a user
or the page does
asyncRequest.open('GET',“myScript.php?q="+str, true );
Fig. 15.6 | XMLHttpRequest object properties.
Fig. 15.7 | XMLHttpRequest object methods. (Part 1 of 2.)