FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Problem with zend anx ajax
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Problem with zend anx ajax [message #171405] Sat, 01 January 2011 23:30 Go to previous message
Sarah is currently offline  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?
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Google calendar and apps
Next Topic: PHP
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 02:09:47 GMT 2024

Total time taken to generate the page: 0.03981 seconds