allow autoComplete only on autocomplete action requests
a test like
if($controller->action == "autocomplete")
{
// do the logic
}
then when calling $ajax->autoComplete() specify the action to be
autocomplete.
if you don't want that, specify some parameters along with the
autocomplete call, add {parameters: ...}
or name you text field in some way it's only interesting for
autoComplete
something like data[autoComplete][q]
Regards.
On Feb 4, 2:36 pm, "Nik Chankov" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am using AutocompleteComponent writen from gwoo.
>
> it look like that this component is started every time when the Ajax
> Request is called, instead to be active only when AutoComplete request
> is called.
>
> This conflicts with other ajax responces, like observeField function
> and instead of getting the desired content I am getting the content
> generated from the AutocompleteComponent startup function.
>
> I make small test and I am put at the start of the function startup /
> in AutocompleteComponent/ return false;
> then the functionality from observeField is ok, but of course this way
> stop me using the AutoComplete. ;)
>
> There is no problem if I am using $ajax->submit(). In that case
> everything working as expected, but AutoComplete and observeField are
> in conflict.
>
> Is there any experienced with that problem?
> I will appreciate if anybody comment this strange behaviour.
>
> Thanks in advance
> Nik Chankov
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---