I figured it out, sorry for the trouble. It was a simple naming issue.

On Jan 6, 5:07 pm, ojonam <manojo10...@gmail.com> wrote:
> Hi,
>
> 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>
>
> and the following javascript:
>
> echo $this->Html->scriptBlock(
>                 $this->Js->domReady(
>                 "new Ajax.Autocompleter(
>                         'field_id',
>                         'div_choices',
>                         'url'
>
>                 )"
>                 )
>         );
>
> 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?
>
> Thanks,
> ojonam

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 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to