Problem with zend anx ajax

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi! I've a view with a grid and a year value

in my view

            <script type="text/javascript">

                  $(function() {

                    $("button, input:submit, a",
                    $("button, input:submit, a",
".divSearch").click(function() {

                             url = "../wssconsumi/recallws";
                             data = 'year=' + $("#ddlYear").val();


                                      type: "POST",
                                      url: url,
                                      data: data,
                                      dataType: "html",
                                      async: true,
                                      success: function(resp) {

                                return false;



    <td >Select year :
                     <select id="ddlYear" style="width:150px">


                           $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>';


               <td> <div class="divSearch"><button>Show records</
button></div>  </td>

in my controller

         public function recallwsAction()
               if ($this->getRequest()->isPost())

                 $data = $this->getRequest()->getPost();

But I think that app never goes in this action .... where is it my

Re: Problem with zend anx ajax

On 1/1/2011 6:30 PM, Sarah wrote:
Quoted text here. Click to load it

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.

Re: Problem with zend anx ajax

Sarah wrote:

Quoted text here. Click to load it

You *think* you know, or do you *actually* know?  How about debugging your
code before posting?

Quoted text here. Click to load it

You have not debugged, and you are not posting the URL that should cause it
to be called or tell anything of the surrounding circumstances that are
necessary to help you.

And I am sorry to say that based on your postings, here and in
comp.lang.javascript, and your ongoing blindly throwing in frameworks
without getting the basics right first, you are not quite ready for Zend
Framework and its rather complex, MVC-based approach.

Try building simpler things first, *a lot* simpler ones to be sure (and
don't start with frameworks, they keep you from learning how things work).  
Rome wasn't built in a day.

Your code style, at least that on Usenet, is a god-awful mess, too.  Please
get some tutorial on code style, or a better newsreader that does no include
all those extra spaces and newlines for a start.  TIA from my eyes.

Danny Goodman's books are out of date and teach practices that are
positively harmful for cross-browser scripting.

Site Timeline