EasyUI Forum
December 06, 2025, 11:50:59 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how to send form input in json not in form submit  (Read 13164 times)
azizkhani
Newbie
*
Posts: 37


View Profile Email
« on: January 02, 2015, 08:10:45 AM »

i have a form and send data by json and ajax but when i use easy ui form data send by application/form not application/json
and server raise exception how can id do it ?
plz help me
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: January 02, 2015, 08:41:16 AM »

To submit a form, just call the 'submit' method of form.
Code:
$('#ff').form('submit',{
  url:...,
  success:function(result){
    console.log(result);
  }
});
Logged
azizkhani
Newbie
*
Posts: 37


View Profile Email
« Reply #2 on: January 04, 2015, 07:39:34 AM »

To submit a form, just call the 'submit' method of form.
Code:
$('#ff').form('submit',{
  url:...,
  success:function(result){
    console.log(result);
  }
});




i want to chage this parameter

type : 'DELETE',
dataType : 'json',
contentType : 'application/json; charset=utf-8'


how can do it?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!