Javatpoint Logo
Javatpoint Logo

Backbone.emulateHTTP()

Backbone.emulateHTTP is used when you want to work with a legacy web server that doesn't support Backbone's default REST/HTTP approach. If you set this option to true, it will fake PUT, PATCH and DELETE requests with a HTTP POST, setting the X-HTTP-Method-Override header with the true method.

Syntax:

Let's take an example.

See this example:

Test it Now

Output:

Save the above code in emulatehttp.html file and open this file in a new browser.

BackboneJS emulatehttp Model



Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA