Hi Gus,

Yeah, I'm looking for a Javascript event (callback hook) that I can  
use to determine whether there is no selectable record any longer  
(select list emptied), or that the selected record is selected no more.

I don't think the afterUpdateElement helps, as far as I can tell it  
only fires when a record from the auto complete list is selected, not  
when the control is cleared.

Ian

On 10 Sep 2008, at 16:19, Gustavo Carreno wrote:

>
> Hey Ian,
>
> I'm guessing that it's more of a Javascript thing you're looking for.
> I'm assuming that the JS that is produced to trigger the AJAX call for
> the afterUpdateElement does not check for empty but it could if you
> have a look at it.
>
> Cheers,
> Gus
>
> 2008/9/10 Ian M. Jones <[EMAIL PROTECTED]>:
>>
>> Hi there, first time posting to this list I think, but I have read
>> many great answers on this list while working with CakePHP, so thanks
>> are due to all those who help others out here.
>>
>> I expect this is something really easy, but I can't find the  
>> answer...
>>
>> When using the $ajax->autoComplete input, is there an event I can
>> catch for when the user clears the input and therefore no drop down  
>> is
>> displayed or deletes a few characters so that a once selected record
>> isn't any longer?
>>
>> At the moment, when the user selects an auto-complete record I update
>> a div with extra details of that record through the  
>> afterUpdateElement
>> event, but I haven't been able to find the trigger for then clearing
>> that div.
>>
>> Thanks in advance for any help.
>>
>> Ian
>> ________________________________________
>> IMiJ Software
>> http://www.imijsoft.com
>> http://www.ianmjones.net (blog)
>>
>>
>>>
>>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to