Problem with zend anx ajax [message #171405] |
Sat, 01 January 2011 23:30 |
Sarah
Messages: 30 Registered: December 2010
Karma:
|
Member |
|
|
Hi! I've a view with a grid and a year value
in my view
<script type="text/javascript">
$(function() {
$("button, input:submit, a",
".divSearch").button();
$("button, input:submit, a",
".divSearch").click(function() {
url = "../wssconsumi/recallws";
data = 'year=' + $("#ddlYear").val();
$.ajax({
type: "POST",
url: url,
data: data,
dataType: "html",
async: true,
success: function(resp) {
jQuery("#flex1").flexReload();
}
});
return false;
});
});
</script>
..
<td >Select year :
<select id="ddlYear" style="width:150px">
<?php
$current_year = (int)date('Y');
// for ($i=1990;$i<=$current_year;$i++)
for ($i=$current_year;$i>=1990;$i--){
echo '<option value="' . $i . '">' .
$i .'</option>';
}
?>
</select></td>
<td> <div class="divSearch"><button>Show records</
button></div> </td>
</tr>
in my controller
public function recallwsAction()
{
if ($this->getRequest()->isPost())
{
$data = $this->getRequest()->getPost();
$this->callws($data['year']);
exit;
}
}
But I think that app never goes in this action .... where is it my
error?
|
|
|