Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 9th, 2012  |  syntax: None  |  size: 0.51 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. After successfull Ajax form, update a list with mysql data via Ajax
  2. echo $this->Form->create('Client', array('url' => array('controller' => 'invoices', 'action' => 'save_data')));
  3.     echo $this->Form->input('firstname');
  4.     echo $this->Js->submit('speichern', array(
  5.  
  6.         'url' => array(
  7.             'controller' => 'invoices',
  8.             'action' => 'save_data'
  9.         )));
  10.  
  11.     echo $this->Form->end();
  12.     echo $this->Js->writeBuffer();
  13.     echo $this->Html->div(null, '', array('id' => 'feedback'));