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
Re: Problem with zend anx ajax [message #171406 is a reply to message #171405] Sat, 01 January 2011 23:31 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 1/1/2011 6:30 PM, Sarah wrote:
> 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?
>

Is your javascript working? That's the first place to start. Try
comp.lang.javascript (where AJAX questions are handled).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Wed Nov 27 03:52:19 GMT 2024

Total time taken to generate the page: 0.05070 seconds