Changes between Version 10 and Version 11 of AJAX/Dojo/RefactoredFormSubmit
- Timestamp:
- Feb 11, 2007, 10:49:13 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AJAX/Dojo/RefactoredFormSubmit
v10 v11 73 73 {{{ 74 74 function validate() { 75 var fNode = dojo.byId('xForm') ;76 var fParms = dojo.io.encodeForm(fNode) ;75 var fNode = dojo.byId('xForm') 76 var fParms = dojo.io.encodeForm(fNode) 77 77 var bindArgs = { 78 78 url: ".", … … 83 83 postContent: fParms, 84 84 error: function(type, error){ 85 // handle error here 86 // var errorBox = dojo.byId('errorMsg'); 87 // errorBox.childNodes[0].nodeValue = error; 88 alert(error.message); 89 return false; 85 // Handle errors for the XMLHTTPTransport here. 86 alert(error.message) 87 return false 90 88 }, 91 89 load: function(type, data, evt){ … … 93 91 if(type == 'load'){ 94 92 var myDiv = dojo.byId('errorBox1') 95 // XXX not sure what to do if the data is JSON or93 // XXX Not sure what to do if the data is JSON or 96 94 // something else.. 97 95 var json = dojo.json.evalJson(data)