I have a view with some table data from database and i need to add button with poup dialog to edit it within a form, the button:
<a class="btn" data-toggle="modal" href="<?php
echo $this->url('admin', array(
'action' => 'manage',
'controller' => 'settings-api',
'id' => $formdata['id'])); ?>"
data-target="#edit_modal">Edit</a>
the popup container:
<div class="modal hide fade" id="edit_modal">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3>Edit form</h3>
</div>
<div class="modal-body">
</div>
</div>
in controller action i have something like this:
if ($this->request->isXmlHttpRequest())
$view->setTerminal(true);
$id = $this->getEvent()->getRouteMatch()->getParam('id');
$form->setData($data[$id]);
return $view->setVariables(array('form' => $form));
and when im clicking to the button i have a popup and firebug shows me that i have a GET to action with id i need, but if i close popup without postig a data and click again to another button with another id i have no request to the action no more, i have just popup with old data
Someone can tell me what im doing wrong??
I have used jquery from remote server and when i downladed it and connect it local from my server, its working, but why its dosent working with the romote?
And its still dosent working if im tring to set
Just working with
var_dump($form);