Annet,

> Question 1) in your post you say that when you type something into the
> INPUT field that triggers the autocomplete,... How does the
> application know it is an autocomplete field, (_class="ac_input" ?)

Yes.

> Question 2) then you continue ... The autocomplete creates an ajax
> call to the supplied handler function (in my case /handlers/cityAC the
> first parameter in $('#city').autocomplete("/b2c/handlers/cityAC",
> {maxItemsToShow:12});) sending it whatever was typed in a parameter
> named q. I am using the pengoworks plugin so I guess its q in my
> application too?

Yes.

> Question 3) In your post on May 8, 11:32 I read the following lines:
> ...
> I haven't got a clue where to put these lines of code in my
> application and what their purpose is. I hope you will help me getting
> this auto-complete field to work, thanks for your time and effort.

In my app I needed autocompletes (ACs) and some had cascaded fields.
The javascript to handle it all was getting complex so I coded a
couple of functions that create the jQuery code for my ACs and the
cascades. In your case you don't need any of that, you are hardcoding
the ACs as mentioned:

> But you can just place the JS code directly there using:
> $("#{{=field_id}}").autocomplete(...) ;

So you did an excellent job again, is it working?.

Denes.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to