AshishJoshi-asj / zfdatagrid

Automatically exported from code.google.com/p/zfdatagrid
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Suggestion: Make AJAX even more simple #165

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Current:
1. in Controller: 
  $grid->setAjax('gridDIV');
  $this->view->table = $grid->deploy();
2. in Script:   
  <div id="gridID"><?php echo $this->table;?></div>

Suggestion: 
- deploy() returns '<div id="{{gridID}}">'.$this->deploy().'</div>')
- gridID comes from ::factory()
- maybe if ->setAjax() called with no parameters, than setting AJAX id to
{{gridID}}

1. in Controller: 
  $grid->setAjax();
  $this->view->table = $grid->deploy();
2. in Script:   
  <div id="doesntMatter"><?php echo $this->table;?></div>

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
0.6alpha

Please provide any additional information below.
This way it will not be important to pay attention on HTML ID be equal to
AJAX ID we give in ->setAjax() call

Original issue reported on code.google.com by vlatko.b...@gmail.com on 14 Feb 2010 at 4:03

GoogleCodeExporter commented 9 years ago
Hi,

Done.

Thanks for the suggestion 

Best Regards,
Bento Vilas Boas

Original comment by pao.fre...@gmail.com on 14 Feb 2010 at 5:13

GoogleCodeExporter commented 9 years ago
Verified

Original comment by vlatko.b...@gmail.com on 16 Feb 2010 at 11:59

GoogleCodeExporter commented 9 years ago

Original comment by bento.vi...@gmail.com on 3 Mar 2010 at 4:56