AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


READ Free Dumps For Microsoft- 70-480





Question ID 14982

You are developing a web page that will contain an animated logo. The web page currently
has a logo image on a canvas object.
You need to spin the logo image on the canvas.
Which method should you use?

Option A

context.rotate()

Option B

context.spin()

Option C

 context.translatePosition()

Option D

context.setTransform()

Correct Answer A
Explanation Explanation: The rotate() method rotates the current drawing. Example Rotate the rectangle 20 degrees: JavaScript: var c=document.getElementById("myCanvas"); var ctx=c.getContext("2d"); ctx.rotate(20*Math.PI/180); ctx.fillRect(50,20,100,50); Incorrect: not B: there is no canvas.spin method. Reference: HTML canvas rotate() Method


Question ID 14983

You develop an HTML application that is located at www.adventure-works.com. The
application must load JSON data from www.fabrikam.com.
You need to choose an approach for loading the data.
What should you do?

Option A

Add a crossdomain.xml file to the second server.

Option B

Configure Cross-Origin Resource Sharing (CORS) on the servers.

Option C

Load the data in a JavaScript timeout callback.

Option D

Reference the remote data as an XML resource.

Correct Answer B
Explanation Explanation: * Cross-origin resource sharing (CORS) is a mechanism that allows Javascript on a web page to make XMLHttpRequests to another domain, not the domain the Javascript originated from. Such "cross-domain" requests would otherwise be forbidden by web browsers, per the same origin security policy. CORS defines a way in which the browser and the server can interact to determine whether or not to allow the cross-origin request.[2] It is more powerful than only allowing same-origin requests, but it is more secure than simply allowing all such cross-origin requests. * You must use Cross Origin Resource Sharing It's not as complicated as it sounds...simply set your request headers appropriately...in Python it would look like: self.response.headers.add_header('Access-Control-Allow-Origin', '*'); self.response.headers.add_header('Access-Control-Allow-Methods', 'GET, POST, OPTIONS'); self.response.headers.add_header('Access-Control-Allow-Headers', 'X-Requested-With'); self.response.headers.add_header('Access-Control-Max-Age', '86400');

Send email to admin@getfreedumps for new dumps request!!!