READ Free Dumps For Microsoft- 70-480
Question ID 14938 | You are developing a web application that can function when users are not connected to
the Internet.
You need to check the Internet connectivity status of a user's browser.
Which method should you use?
|
Option A | Option A
|
Option B | Option B
|
Option C | Option C
|
Option D | Option D
|
Correct Answer | D |
Explanation Explanation: Navigator onLine Property The onLine property returns a Boolean value that specifies whether the browser is in online or offline mode. Example Find out whether the browser is online: var x = "Is the browser online? " + navigator.onLine; The result of x will be: Is the browser online? true Reference: Navigator onLine Property
Question ID 14939 | You develop a web application by using jQuery. You develop the following jQuery code:
(Line numbers are included for reference only.)
The web application exposes a RESTful web API that has an endpoint of/product/create.
You need to create a new product by using AJAX.
Which code segment should you insert at line 05?
|
Option A | Option A
|
Option B | Option B
|
Option C | Option C
|
Option D | Option D
|
Correct Answer | D |
Explanation Explanation: * url: /product/create This is the endproduct. * datatype: The type of data that you're expecting back from the server. * contentType (default: 'application/x-www-form-urlencoded; charset=UTF-8') Reference: jQuery.ajax()