Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy is ZendX Autocomplete not working?
    primarykey
    data
    text
    <p>I'm setting up my first ZendX_JQuery_Form. In my controller, I've got the following code:</p> <p>$form = new ZendX_JQuery_Form ();</p> <p>$date1 = new ZendX_JQuery_Form_Element_DatePicker ( 'date1', array ('label' => 'Date:' ) ); $form->addElement ( $date1 );</p> <p>$elem = new ZendX_JQuery_Form_Element_AutoComplete( 'ac1', array('label' => 'Autocomplete:')); $elem->setJQueryParams(array('source' => array('New York','Berlin','Bern','Boston'))); $form->addElement($elem); $this->view->form = $form;</p> <p>And I'm including the required code in my Boostrap:</p> <p>$view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");</p> <p>So the DatePicker is working perfect. But the AutoComplete field is just a plain text box, nothing showing up. And I can't figure out why.</p> <p>Viewing the source, jQuery is being included ok (obviously is because the DatePicker works) and the events have been set up :</p> <pre><code>$(document).ready(function() { $("#date1").datepicker({}); $("#ac1").autocomplete({"source":["New York","Berlin","Bern","Boston"]}); </code></pre> <p>});</p> <p>This is in the header:</p> <pre><code>&lt;script type="text/javascript" src="/js/jquery/js/jquery-1.4.2.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"&gt;&lt;/script&gt; </code></pre> <p>And the correct field is there:</p> <pre><code>&lt;input type="text" name="ac1" id="ac1" value="" /&gt; </code></pre> <p>I'm dumbfounded! Please help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload