EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
July 19, 2025, 08:30:29 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
Howto overryde ajax method from POST to PUT in form
Pages: [
1
]
« previous
next »
Print
Author
Topic: Howto overryde ajax method from POST to PUT in form (Read 3213 times)
Vladzimir
Newbie
Posts: 4
Howto overryde ajax method from POST to PUT in form
«
on:
March 20, 2025, 02:15:07 AM »
Hi!
Howto overryde ajax method from POST to PUT in form submit methods?
Logged
jarry
Administrator
Hero Member
Posts: 2294
Re: Howto overryde ajax method from POST to PUT in form
«
Reply #1 on:
March 22, 2025, 06:42:05 PM »
Call this code before submitting a form to override any ajax parameters.
Code:
$.ajaxSetup({
beforeSend: function(xhr, settings) {
settings.type = 'PUT';
return true;
}
});
Logged
Vladzimir
Newbie
Posts: 4
Re: Howto overryde ajax method from POST to PUT in form
«
Reply #2 on:
March 26, 2025, 07:05:22 AM »
Quote from: jarry on March 22, 2025, 06:42:05 PM
Call this code before submitting a form to override any ajax parameters.
Code:
$.ajaxSetup({
beforeSend: function(xhr, settings) {
settings.type = 'PUT';
return true;
}
});
Thanks for your help!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...