EasyUI Forum
March 29, 2024, 06:08:48 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: form onsubmit (param) clarification  (Read 8244 times)
chrwei
Full Member
***
Posts: 219


View Profile Email
« on: August 22, 2013, 01:10:10 PM »

when using "onSubmit: function(param){" is param supposed to be pre-filled with the form data?  the documentation doesn't say either way.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: August 22, 2013, 06:53:18 PM »

Yes, you can append extra submitting parameters in 'onSubmit' event. The code below shows how to do this.
Code:
$('#ff').form('submit', {
    url:...,
    onSubmit: function(param){
        param.p1 = 'value1';
        param.p2 = 'value2';
    }
});
Logged
chrwei
Full Member
***
Posts: 219


View Profile Email
« Reply #2 on: August 23, 2013, 06:24:37 AM »

when I do param.text_box_name I get undefined.
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!