Hi,

I try to develop a dynamic ajax form containig an autocomplete field. Here is the idea:

I want to load a form dynamically via a link_to_remote function:


                                ‘url’=>’myModule/addEvent’);
link_to_remote(‘addEvent’,array(‘update’=>’myForm’,Select allCode:

myForm is a hidden div field which has to be update by my form workflow.

Now my addEvent action has a template addEventSuccess.php


            array(   ’use_style’ => ‘true’)); ?>
            array(   ’autocomplete’ => ‘off’),
<?php echo  input_auto_complete_tag(‘select_autocomplete_title’,”,’myModule/autocompleteEvent’,Select allCode:

If I call the action directly through my browser, the autocomplete field works fine. But calling it through the link_to_remote function has no success.

Any ideas how to fix this problem?

If I use it directly within my main template, there is no problem at all, but for a complex workflow I want to use the autocomplete field within different action templates.

Kind regards,
Christian

Read Answer


Related posts:

  1. Url Rewrite with data from the object
  2. My simple configuration for tinymce
  3. JSON tutorial does not work with IE
  4. Problem with integrated Ajax-Function
  5. Simple Jquery modal window and AJAX