• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AjaxAutoComplete and AjaxObserveField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxAutoComplete and AjaxObserveField


  • Subject: Re: AjaxAutoComplete and AjaxObserveField
  • From: "Ricardo J. Parada" <email@hidden>
  • Date: Fri, 03 Apr 2009 13:45:36 -0400


Thanks... I did not know I could use AjaxSubmitButton like that.

If I understood correctly, you are using an AjaxSubmitButton with the functionName binding which causes the AjaxSubmitButton to become a javascript function instead of a button. Then from your AjaxAutoComplete you use the afterUpdateElement to invoke that function when the user selects something from the list of matches. The function when invoked submits the form and calls the action bound to the AjaxSubmitButton. Right?

:-)

I'm gonna play with the AjaxSubmitButton some more... I see it has other bindings, i.e. formName and formSerializer.


On Apr 3, 2009, at 9:53 AM, Ramsey Gurley wrote:


On Apr 2, 2009, at 7:22 PM, Ricardo J. Parada wrote:

Hi,

I have an AjaxAutoComplete. The user types something, the list of matches is displayed, then the user selects from the list and the selected item is entered in to the AjaxAutoComplete text field. Now, when the user tabs out of the AjaxAutoComplete text field I want the value of the text field submitted in an ajax request and update an AjaxUpdateContainer.

I thought, oh that's simple, I just wrap the AjaxAutoComplete in an AjaxObserveField. But as soon as I do that my AjaxAutoComplete no longer does autocompletion in response to key strokes. They don't get along.

Any ideas how I could accomplish this? I want to submit the value from the text field when the user tabs out of the field (onblur maybe). And update an ajax update container. :-)


Hi Ricardo,

Here's an example I put together based on a tip David LeBer provided on the wonder list two weeks ago. Just start typing "container" and it will give you a list. Select a container and it will auto populate a wobrowser with items.


<Main.html><Main.wod><Main.java>

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >AjaxAutoComplete and AjaxObserveField (From: "Ricardo J. Parada" <email@hidden>)
 >Re: AjaxAutoComplete and AjaxObserveField (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: maven.
  • Next by Date: Re: maven.
  • Previous by thread: Re: AjaxAutoComplete and AjaxObserveField
  • Next by thread: maven.
  • Index(es):
    • Date
    • Thread