{"id":47319,"date":"2023-11-13T01:17:28","date_gmt":"2023-11-13T01:17:28","guid":{"rendered":"https:\/\/essays.homeworkacetutors.com\/2023\/11\/ajax-java-project\/"},"modified":"2023-11-13T01:17:28","modified_gmt":"2023-11-13T01:17:28","slug":"ajax-java-project","status":"publish","type":"post","link":"https:\/\/www.colapapers.com\/us\/ajax-java-project\/","title":{"rendered":"Ajax\/Java project"},"content":{"rendered":"<p>Question description<\/p>\n<p>For this project you will modify a small AJAX script to add some additional capabilities.\u00a0 Ultimately, your project will consist of 5 files:proj7.html (the main project page)proj7.js (your JavaScript)message1.txtmessage2.txtmessage3.txtThe model you will use is the\u00a0Ajax Demo Program. Using that program as a foundation, do the following:Modify the message files so that your name will display somewhere in the message.\u00a0Modify proj7.html so that the script is removed to a separate file (proj7.js)Modify the html file so that 3 additional buttons are placed on a line below the current buttons.\u00a0 These buttons will be labeled RED, BLUE, and BLACK.Modify the proj7.js script so that a single function is added to change the color of the text in the message.\u00a0 The buttons themselves should pass the desired color to the function when calling it, i.e. the function should handle any color passed to it.The project should work like a sample that will be shown to you in class.\u00a0 The change must be done using this method and NOT by refreshing the entire page.This is the code that will be adjusted:ajax.html<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\"><html ><head><script type=\"text\/javascript\">function loadXMLDoc(url){if (window.XMLHttpRequest){\/\/ code for IE7+, Firefox, Chrome, Opera, Safarixmlhttp=new XMLHttpRequest();xmlhttp.open(\"GET\",url,false);xmlhttp.send(null);}else{\/\/ code for IE6, IE5xmlhttp=new ActiveXObject(\"Microsoft.XMLHTTP\");xmlhttp.open(\"GET\",url,false);\/\/ Do not send null for ActiveXxmlhttp.send();}document.getElementById('test').innerHTML=xmlhttp.responseText;}<\/script><title>MIS 4530 Ajax Sample<\/title><\/head><body><\/p>\n<div id=\"test\">\n<h2>Let AJAX change this text<\/h2>\n<\/div>\n<p><button type=\"button\" onclick=\"loadXMLDoc('test1.txt')\">Message 1<\/button><button type=\"button\" onclick=\"loadXMLDoc('test2.txt')\">Message 2<\/button><button type=\"button\" onclick=\"loadXMLDoc('test3.txt')\">Original<\/button>\u00a0<\/body><\/html>test1.txt<\/p>\n<p>There are several reasons you might want to use AJAX:<\/p>\n<ul>\n<li>Reduce the amount of data flowing from the server to the client<\/li>\n<li>Speed up the web page<\/li>\n<li>Make the application act more like a local app than a web page<\/li>\n<li>Allow filtering at the client end to prevent corrupted data from being\u00a0sent to the server<\/li>\n<\/ul>\n<p>test2.txt<\/p>\n<p>Most good web developers have many things in their toolboxes, including JavaScript, php, mysql, xml, and html. These tools all lead to robust, interactive web pages and add to the capability of the developer to to design flexible, artistic, and useful web pages.<\/p>\n<p>test3.txt<\/p>\n<h2>Let AJAX change this text<\/h2>\n<p>This will show what the above code will look like:\u00a0http:\/\/www.eiu-mis.net\/samples\/ajax\/ajax.htmlAll that really needs to be done is to add a\u00a0RED, BLUE, and BLACK button horizontally under the message buttons and when those buttons are clicked it will change the color of the message shown regardless of which message is clicked.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Question description For this project you will modify a small AJAX script to add some additional capabilities.\u00a0 Ultimately, your project will consist of 5 files:proj7.html (the main project page)proj7.js (your JavaScript)message1.txtmessage2.txtmessage3.txtThe model you will use is the\u00a0Ajax Demo Program. Using that program as a foundation, do the following:Modify the message files so that your name [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,6515,8569,8567,8568,8570],"tags":[5882,6803,4009,7294,7293],"class_list":["post-47319","post","type-post","status-publish","format-standard","hentry","category-dissertation-writing","category-essay-writing","category-homework-assistance","category-online-assignment-help","category-paper-writing-services","category-write-my-essay-2","tag-best-essays-uk","tag-dissertation-topic-help","tag-do-my-essay-assignment-in-ireland","tag-essay-for-sale-australia","tag-help-with-writing-an-essay"],"_links":{"self":[{"href":"https:\/\/www.colapapers.com\/us\/wp-json\/wp\/v2\/posts\/47319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.colapapers.com\/us\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.colapapers.com\/us\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.colapapers.com\/us\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.colapapers.com\/us\/wp-json\/wp\/v2\/comments?post=47319"}],"version-history":[{"count":0,"href":"https:\/\/www.colapapers.com\/us\/wp-json\/wp\/v2\/posts\/47319\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.colapapers.com\/us\/wp-json\/wp\/v2\/media?parent=47319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.colapapers.com\/us\/wp-json\/wp\/v2\/categories?post=47319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.colapapers.com\/us\/wp-json\/wp\/v2\/tags?post=47319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}