Hello
I have this POST example using jQuery:
$.post('myurl',{
somefield1: 123,
somefield2: 'abc',
}).done(function(data) {
// some stuff
});
Question is - how to use POST using F7 post (https://framework7.io/docs/request.html#post)
thank you.
like its in the docs
app.request.post('myurl', {
somefield1: 123,
somefield2: 'abc'
}, function (data) {
// some stuff
});
/* or with promise API */
app.request.promise.post('myurl', {
somefield1: 123,
somefield2: 'abc'
})
.then(function (data) {
// some stuff
});
3 Likes
Awesome, thank you so much.