Which three actions should you perform in sequence?
You create an HTML5 application that includes JavaScript. The application performs several AJAX requests. One AJAX request retrieves order information from a
web service and then sends the information back to a webpage within the application.
You must create a custom event. You have the following requirements:
The webpage must contain an HTML element named ordersListing that will receive the custom event notification.
The event name must be ordersReceived.
The event must pass a custom value named orderCount.
The event must run a JavaScript method named showOrdersReceivedCount after the orders Listing HTML element receives the event.
Do not allow other DOM elements to receive the event.
Allow the event to be cancelled.
Send the event into the event system.
You need to implement the custom event to notify specific DOM elements of the AJAX response.
Which three actions should you perform in sequence? (Develop the solution by selecting the required code segments and arranging them in the correct order.)
Select and Place:
How does the page render?
How should you complete the relevant code?
Which code segment should you use to replace the Loader…
You are developing an HTML5 web application that displays the current temperature whenever a button is clicked. The following code provides this functionality.
When the temperature is loaded, the status property on the loader instance does not change. You need to ensure that the status property on the loader instance is
updated when the temperature is loaded.
Which code segment should you use to replace the Loader function?
Which HTML should you use?
You are developing a customer web form that includes the following HTML.
<input id = “txtValue” />
A customer must enter a value in the text box prior to submitting the form.
You need to add validation to the text box control.
Which HTML should you use?
Which JavaScript code segment should you use?
You are developing a customer web form that includes the following HTML.
<label id=”txtValue”X/label>
Information from the web form is submitted to a web service. The web service returns the following JSON object.
{
“Confirmation”: “1234”,
“FirstName”: “John”
}
You need to display the Confirmation number from the JSON response in the txtValue label field.
Which JavaScript code segment should you use?
Which line of code should you insert at line 03?
You are developing a web page that enables customers to upload documents to a web server. The page includes an HTML5 PROGRESS element named
progressBar that displays information about the status of the upload.
The page includes the following code. (Line numbers are included for reference only.)
An event handler must be attached to the request object to update the PROGRESS element on the page.
You need to ensure that the status of the upload is displayed in the progress bar.
Which line of code should you insert at line 03?
You need to authenticate to the WCF service
You need to ensure that the data validation requirement…
You are developing a customer contact form that will be displayed on a page of a company’s website. The page collects information about the customer.
If a customer enters a value before submitting the form, it must be a valid email address.
You need to ensure that the data validation requirement is met.
What should you use?
How should you develop the form?
You are developing a form that captures a user’s email address by using HTML5 and jQuery.
The form must capture the form elements as a string.
You need to implement this functionality.
How should you develop the form? (To answer, drag the appropriate code segment to the correct target or targets in the answer area. Each code segment may be
used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)
Select and Place: