I figured it out, sorry for the trouble. It was a simple naming issue.
On Jan 6, 5:07 pm, ojonam <manojo10...@xxxxxxxxx> wrote:
> I am migrating from AjaxHelper to JsHelper (as the former is
> deprecated), and am converting $ajax->autoComplete calls in the
> following way (I stay with Prototype JS): for a given
> $ajax->autoComplete('div', 'url', array());
> I now get the following (much more blown-up in size):
> <?php echo $this->Form->text('field', array('id' => 'field_id')));?>
> <div id="div_choices" class="autocomplete"></div>
> echo $this->Html->scriptBlock(
> "new Ajax.Autocompleter(
> For those who know, you can customize the css so that the resulting
> "autocomplete" div will be nicely rendered.
> With AjaxHelper, this worked perfectly fine, but I do not get the
> rendering to take place when I use JSHelper. Playing with firebug, I
> notice that if I change the div class name from "autocomplete" to
> something else and back, I get the correct rendering.
> My question therefore is: does JsHelper do some kind of pre-loading of
> the js files which makes css rendering incompatible? If so, how do I
> react to that?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at