Menu

[Solved]4 B Observe Following Code Snippets Web Page Written Using Javascript Jquery Code Snippet Q37281175

4 (b) Observe the following code snippets of a web page written using Javascript and/or jQuery. For each code snippet: (1) ex4 (b) Observe the following code snippets of a web page written using Javascript and/or jQuery. For each code snippet: (1) explain what it does (at your best, on the basis of the little information provided), (2) say if, after the web page is initially loaded, its execution requires further communication with the server or it is handled at the client’s side: 1. $ (“p”).find (“.odd”) . load (“text.txt”); 2. $.get (“subscribe.php”, function (a,b) falert (a); 3. $.get (“subscribe.php”, (name Alice, x, “json”) [8 marks (c) Imagine you have been contracted to develop a web application “Musicals” that allows users to see ongoing performances in a new theatre located in London, and to book tickets online. Your project was successful. Now you want to convince your customer to fund an extension of the project, where “Musicals” is not only a web page, but also a web service. Provide a concrete usage scenario that could convince your customer that such extension is 4 marks] worthwhile (e.g., will extend their business). (d) A WSDL interface may include tags like <type>, <message> sportType>, <port> and <binding>, Moreover, WSDL allows developers to use ad hoc tags, for example to describe the inner structure of messages. This could possibly cause name clashes. Explain how name clashes could happen and how they can be [5 marks] avoided. Show transcribed image text 4 (b) Observe the following code snippets of a web page written using Javascript and/or jQuery. For each code snippet: (1) explain what it does (at your best, on the basis of the little information provided), (2) say if, after the web page is initially loaded, its execution requires further communication with the server or it is handled at the client’s side: 1. $ (“p”).find (“.odd”) . load (“text.txt”); 2. $.get (“subscribe.php”, function (a,b) falert (a); 3. $.get (“subscribe.php”, (name Alice, x, “json”) [8 marks (c) Imagine you have been contracted to develop a web application “Musicals” that allows users to see ongoing performances in a new theatre located in London, and to book tickets online. Your project was successful. Now you want to convince your customer to fund an extension of the project, where “Musicals” is not only a web page, but also a web service. Provide a concrete usage scenario that could convince your customer that such extension is 4 marks] worthwhile (e.g., will extend their business). (d) A WSDL interface may include tags like , sportType>, and , Moreover, WSDL allows developers to use ad hoc tags, for example to describe the inner structure of messages. This could possibly cause name clashes. Explain how name clashes could happen and how they can be [5 marks] avoided.

Expert Answer


Answer to 4 (b) Observe the following code snippets of a web page written using Javascript and/or jQuery. For each code snippet: (… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *