Atitit. Best practices for form editing dwr jq easyui
1. Submit Form 1
2. Form Verification 1
3. Use meger to save and update data.
3.1. filter: :( MP> do) 1
3.2. 2. Convert (MP> do) 2
3.3. valider 2
3.4. Default Value Setting problems... (do only) 2
4. Form echo (edit mode) 2
1. submit the form
Jq d serize
Easyuui yanen l...
Dwr3 Korean is the simplest...
Function save ()
{
VaR OBJ = DWR. util. getvalues ("formx ");
Alert (OBJ );
// Svsc. Save (OBJ );
Svsc. save_pojo (OBJ );
}
When easyui is used, the DWR date control cannot be up... which is not an ID? Name is divided into two controls, lan... SWR is based on ID... sub-accounts use JQ to do not have name Val >>> ID control Val. After submitting, go to OK ..
Zi Hao
Author: old wow's paw attilax iron, email: [email protected]
Reprinted please indicate Source: http://blog.csdn.net/attilax
2. Form Verification 3. Data Storage replaces the Save & update method with the meger Method
DWR submits a map... it seems that it can be convert... not copy prop daog do... meger go to OK lan ..
Save with basehbdao ..
3.1. filter: :( MP> do)
It is used to repair int-type data null processed by DWR> 0... problems... no recovery becomes null
3.2. 2. Convert (MP> do) 3.3. valider
3.4. Default Value settings... (do only) 4. Form echo (edit mode)
JQ bneng implt
Easyui can load... However, you must specify formid
Dwr3 is the most simplified...
Function editload ()
{
Svsc. getone (1, function (data)
{
// DWR. util. setvalue ("formx", data );
// Todox o7e not nemcm formid
DWR. util. setvalues (data );
});
}
Editload ();