Changes between Version 10 and Version 11 of Doc_Plugins
- Timestamp:
- Jun 1, 2009 11:52:36 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Doc_Plugins
v10 v11 155 155 { 156 156 $rcmail = rcmail::get_instance(); 157 $rcmail->output->command('plugin.somecallback', array(' response' => 'done.'));157 $rcmail->output->command('plugin.somecallback', array('message' => 'done.')); 158 158 } 159 159 }}} … … 161 161 ''Processing response data on the client again:'' 162 162 {{{ 163 function some_callback_function(e) 164 { 165 $('#somecontainer').html(e.response); 166 } 167 }}} 163 function some_callback_function(response) 164 { 165 $('#somecontainer').html(response.message); 166 } 167 }}} 168 169 Please note that the callback function can only receive one single argument. Therefore you need to pack all the response data into an array which will automatically be converted into a javascript object. 168 170 169 171
