Re: AjaxAutoComplete
No problem at all Tim. I will try a little bit more. Thanks to all! Stavros > On 12 Nov 2023, at 3:56 AM, webobjects-dev-requ...@lists.apple.com wrote: > > Send Webobjects-dev mailing list submissions to > webobjects-dev@lists.apple.com > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.apple.com/mailman/listinfo/webobjects-dev > or, via email, send a message with subject or body 'help' to > webobjects-dev-requ...@lists.apple.com > > You can reach the person managing the list at > webobjects-dev-ow...@lists.apple.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Webobjects-dev digest..." > > > Today's Topics: > > 1. Re: AjaxAutoComplete (D Tim Cummings) > 2. Re: AjaxAutoComplete (Samuel Pelletier) > 3. Re: Replay request (Andr? Rothe) > 4. Re: AjaxAutoComplete (Aaron Rosenzweig) > > > -- > > Message: 1 > Date: Sun, 12 Nov 2023 07:34:24 +1000 > From: D Tim Cummings > To: webobjects-dev@lists.apple.com > Subject: Re: AjaxAutoComplete > Message-ID: > Content-Type: text/plain; charset="utf-8"; Format="flowed" > > Hi Stavros > > Sorry to mislead you. I thought you were looking for the behaviour of > AjaxObserveField to send updated data back to the server immediately > rather than updating a container on the current page. There may be a way > to do what you ask but I have never tried it. Maybe you could put some > javascript in afterUpdateElement to update a different field which is in > an AjaxObserveField. > > Regards > > Tim > > On 10/11/23 20:55, Stavros Panidis wrote: >> Tim, >> >> Sorry!. I could not put it to work. I am sure that I am making >> something wrong. >> >> My AjaxAutocomplete is >> >> > class = "form-control" list = "$currentValuesForCustomers" selection = >> "$global" value = "$value" item = "$currentValue" /> >> >> And then I have a AjaxObserveField as follows >> >> >> > "invoiceslist" action = "$customerSelected"> >> >> Can you see what I am doing wrong? >> >> Stavros >> >> >> >>> On 9 Nov 2023, at 10:00?PM, webobjects-dev-requ...@lists.apple.com wrote: >>> >>> Send Webobjects-dev mailing list submissions to >>> webobjects-dev@lists.apple.com >>> >>> To subscribe or unsubscribe via the World Wide Web, visit >>> https://lists.apple.com/mailman/listinfo/webobjects-dev >>> or, via email, send a message with subject or body 'help' to >>> webobjects-dev-requ...@lists.apple.com >>> >>> You can reach the person managing the list at >>> webobjects-dev-ow...@lists.apple.com >>> >>> When replying, please edit your Subject line so it is more specific >>> than "Re: Contents of Webobjects-dev digest..." >>> >>> >>> Today's Topics: >>> >>> ??1. AjaxAutoComplete (Stavros Panidis) >>> ??2. Re: AjaxAutoComplete (D Tim Cummings) >>> ??3. Re: AjaxAutoComplete (Jesse Tayler) >>> >>> >>> ------ >>> >>> Message: 1 >>> Date: Thu, 9 Nov 2023 09:54:40 +0200 >>> From: Stavros Panidis >>> To: webobjects-dev@lists.apple.com >>> Subject: AjaxAutoComplete >>> Message-ID: >>> Content-Type: text/plain;charset=us-ascii >>> >>> Hi, >>> >>> Is there any trick available to make AjaxAutoComplete field >>> observable (by AjaxAobserveField) ? >>> >>> Many thanks in advance for your help >>> >>> Stavros >>> >>> -- >>> >>> Message: 2 >>> Date: Thu, 9 Nov 2023 20:00:33 +1000 >>> From: D Tim Cummings >>> To: webobjects-dev@lists.apple.com >>> Subject: Re: AjaxAutoComplete >>> Message-ID: >>> Content-Type: text/plain; charset=UTF-8; format=flowed >>> >>> Set parameter afterUpdateElement to "observe" and it will behave like it >>> is in an AjaxObserveField >>> >>> >> "$theCustomerName" afterUpdateElement = "observe" /> >>> >>> Tim >>> >>> On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote: >>>> Hi, >>>> >
Re: AjaxAutoComplete
That’s clever Samuel. Using the components as building blocks to piggy back from each other. Bravo :-) > On Nov 11, 2023, at 5:12 PM, Samuel Pelletier via Webobjects-dev > wrote: > > Hi, > > I managed to achieve your goal in my apps using this pattern : > - Create a submit js function using an AjaxSubmitButton > - Use the created function in afterUpdateElement on AjaxAutoComplete. > > "addLigneAvecFormat" action = "$selectionnerProduit" /> > > > Regards, > > Samuel > > >> Le 10 nov. 2023 à 05:55, Stavros Panidis via Webobjects-dev >> mailto:webobjects-dev@lists.apple.com>> a >> écrit : >> >> Tim, >> >> Sorry!. I could not put it to work. I am sure that I am making something >> wrong. >> >> My AjaxAutocomplete is >> >> > "form-control" list = "$currentValuesForCustomers" selection = "$global" >> value = "$value" item = "$currentValue" /> >> >> And then I have a AjaxObserveField as follows >> >> >> > "invoiceslist" action = "$customerSelected"> >> >> >> Can you see what I am doing wrong? >> >> Stavros >> >> >> >>> On 9 Nov 2023, at 10:00 PM, webobjects-dev-requ...@lists.apple.com wrote: >>> >>> Send Webobjects-dev mailing list submissions to >>> webobjects-dev@lists.apple.com >>> >>> To subscribe or unsubscribe via the World Wide Web, visit >>> https://lists.apple.com/mailman/listinfo/webobjects-dev >>> or, via email, send a message with subject or body 'help' to >>> webobjects-dev-requ...@lists.apple.com >>> >>> You can reach the person managing the list at >>> webobjects-dev-ow...@lists.apple.com >>> >>> When replying, please edit your Subject line so it is more specific >>> than "Re: Contents of Webobjects-dev digest..." >>> >>> >>> Today's Topics: >>> >>> 1. AjaxAutoComplete (Stavros Panidis) >>> 2. Re: AjaxAutoComplete (D Tim Cummings) >>> 3. Re: AjaxAutoComplete (Jesse Tayler) >>> >>> >>> -- >>> >>> Message: 1 >>> Date: Thu, 9 Nov 2023 09:54:40 +0200 >>> From: Stavros Panidis >>> To: webobjects-dev@lists.apple.com >>> Subject: AjaxAutoComplete >>> Message-ID: >>> Content-Type: text/plain; charset=us-ascii >>> >>> Hi, >>> >>> Is there any trick available to make AjaxAutoComplete field observable (by >>> AjaxAobserveField) ? >>> >>> Many thanks in advance for your help >>> >>> Stavros >>> >>> -- >>> >>> Message: 2 >>> Date: Thu, 9 Nov 2023 20:00:33 +1000 >>> From: D Tim Cummings >>> To: webobjects-dev@lists.apple.com >>> Subject: Re: AjaxAutoComplete >>> Message-ID: >>> Content-Type: text/plain; charset=UTF-8; format=flowed >>> >>> Set parameter afterUpdateElement to "observe" and it will behave like it >>> is in an AjaxObserveField >>> >>> >> "$theCustomerName" afterUpdateElement = "observe" /> >>> >>> Tim >>> >>> On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote: >>>> Hi, >>>> >>>> Is there any trick available to make AjaxAutoComplete field observable (by >>>> AjaxAobserveField) ? >>>> >>>> Many thanks in advance for your help >>>> >>>> Stavros >>>> ___ >>>> Do not post admin requests to the list. They will be ignored. >>>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>>> Help/Unsubscribe/Update your Subscription: >>>> https://lists.apple.com/mailman/options/webobjects-dev/tim%40triptera.com.au >>>> >>>> This email sent to t...@triptera.com.au >>> >>> >>> -- >>> >>> Message: 3 >>> Date: Thu, 9 Nov 2023 12:00:52 -0500 >>> From: Jesse Tayler >>> To: D Tim Cummings >>> Cc: webobjects-dev@lists.apple.com >>> Subject: Re: AjaxAutoComplete >>> Message-ID: <48f21de2-2301-4c1f-a473-25d1850a4...@oeinc.com> >>> Conte
Re: AjaxAutoComplete
Hi, I managed to achieve your goal in my apps using this pattern : - Create a submit js function using an AjaxSubmitButton - Use the created function in afterUpdateElement on AjaxAutoComplete. Regards, Samuel > Le 10 nov. 2023 à 05:55, Stavros Panidis via Webobjects-dev > a écrit : > > Tim, > > Sorry!. I could not put it to work. I am sure that I am making something > wrong. > > My AjaxAutocomplete is > > "form-control" list = "$currentValuesForCustomers" selection = "$global" > value = "$value" item = "$currentValue" /> > > And then I have a AjaxObserveField as follows > > > "invoiceslist" action = "$customerSelected"> > > > Can you see what I am doing wrong? > > Stavros > > > >> On 9 Nov 2023, at 10:00 PM, webobjects-dev-requ...@lists.apple.com wrote: >> >> Send Webobjects-dev mailing list submissions to >> webobjects-dev@lists.apple.com >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.apple.com/mailman/listinfo/webobjects-dev >> or, via email, send a message with subject or body 'help' to >> webobjects-dev-requ...@lists.apple.com >> >> You can reach the person managing the list at >> webobjects-dev-ow...@lists.apple.com >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Webobjects-dev digest..." >> >> >> Today's Topics: >> >> 1. AjaxAutoComplete (Stavros Panidis) >> 2. Re: AjaxAutoComplete (D Tim Cummings) >> 3. Re: AjaxAutoComplete (Jesse Tayler) >> >> >> -- >> >> Message: 1 >> Date: Thu, 9 Nov 2023 09:54:40 +0200 >> From: Stavros Panidis >> To: webobjects-dev@lists.apple.com >> Subject: AjaxAutoComplete >> Message-ID: >> Content-Type: text/plain;charset=us-ascii >> >> Hi, >> >> Is there any trick available to make AjaxAutoComplete field observable (by >> AjaxAobserveField) ? >> >> Many thanks in advance for your help >> >> Stavros >> >> -- >> >> Message: 2 >> Date: Thu, 9 Nov 2023 20:00:33 +1000 >> From: D Tim Cummings >> To: webobjects-dev@lists.apple.com >> Subject: Re: AjaxAutoComplete >> Message-ID: >> Content-Type: text/plain; charset=UTF-8; format=flowed >> >> Set parameter afterUpdateElement to "observe" and it will behave like it >> is in an AjaxObserveField >> >> > "$theCustomerName" afterUpdateElement = "observe" /> >> >> Tim >> >> On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote: >>> Hi, >>> >>> Is there any trick available to make AjaxAutoComplete field observable (by >>> AjaxAobserveField) ? >>> >>> Many thanks in advance for your help >>> >>> Stavros >>> ___ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>> Help/Unsubscribe/Update your Subscription: >>> https://lists.apple.com/mailman/options/webobjects-dev/tim%40triptera.com.au >>> >>> This email sent to t...@triptera.com.au >> >> >> -- >> >> Message: 3 >> Date: Thu, 9 Nov 2023 12:00:52 -0500 >> From: Jesse Tayler >> To: D Tim Cummings >> Cc: webobjects-dev@lists.apple.com >> Subject: Re: AjaxAutoComplete >> Message-ID: <48f21de2-2301-4c1f-a473-25d1850a4...@oeinc.com> >> Content-Type: text/plain; charset="utf-8" >> >> I have used Ajax quite easily on a couple of components and for some reason, >> implementing even the simplest test was failing on updating a component of a >> similar sort. >> >> Before I make a wholly new component ? are there flags or tests aside from >> jQuery which seems fine? I don?t readily see why this just isn?t seemingly >> observing and updating the way I expect? >> >> Thoughts? >> >>> On Nov 9, 2023, at 5:00 AM, D Tim Cummings via Webobjects-dev >>> wrote: >>> >>> Set parameter afterUpdateElement to "observe" and it will behave like it is >>> in an AjaxObserveField >>> >>> >> "$theCustomerName" afterUpdateElement = "ob
Re: AjaxAutoComplete
Hi Stavros Sorry to mislead you. I thought you were looking for the behaviour of AjaxObserveField to send updated data back to the server immediately rather than updating a container on the current page. There may be a way to do what you ask but I have never tried it. Maybe you could put some javascript in afterUpdateElement to update a different field which is in an AjaxObserveField. Regards Tim On 10/11/23 20:55, Stavros Panidis wrote: Tim, Sorry!. I could not put it to work. I am sure that I am making something wrong. My AjaxAutocomplete is class = "form-control" list = "$currentValuesForCustomers" selection = "$global" value = "$value" item = "$currentValue" /> And then I have a AjaxObserveField as follows "invoiceslist" action = "$customerSelected"> Can you see what I am doing wrong? Stavros On 9 Nov 2023, at 10:00 PM, webobjects-dev-requ...@lists.apple.com wrote: Send Webobjects-dev mailing list submissions to webobjects-dev@lists.apple.com To subscribe or unsubscribe via the World Wide Web, visit https://lists.apple.com/mailman/listinfo/webobjects-dev or, via email, send a message with subject or body 'help' to webobjects-dev-requ...@lists.apple.com You can reach the person managing the list at webobjects-dev-ow...@lists.apple.com When replying, please edit your Subject line so it is more specific than "Re: Contents of Webobjects-dev digest..." Today's Topics: 1. AjaxAutoComplete (Stavros Panidis) 2. Re: AjaxAutoComplete (D Tim Cummings) 3. Re: AjaxAutoComplete (Jesse Tayler) -- Message: 1 Date: Thu, 9 Nov 2023 09:54:40 +0200 From: Stavros Panidis To: webobjects-dev@lists.apple.com Subject: AjaxAutoComplete Message-ID: Content-Type: text/plain;charset=us-ascii Hi, Is there any trick available to make AjaxAutoComplete field observable (by AjaxAobserveField) ? Many thanks in advance for your help Stavros -- Message: 2 Date: Thu, 9 Nov 2023 20:00:33 +1000 From: D Tim Cummings To: webobjects-dev@lists.apple.com Subject: Re: AjaxAutoComplete Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Set parameter afterUpdateElement to "observe" and it will behave like it is in an AjaxObserveField Tim On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote: Hi, Is there any trick available to make AjaxAutoComplete field observable (by AjaxAobserveField) ? Many thanks in advance for your help Stavros ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/tim%40triptera.com.au This email sent to t...@triptera.com.au -- Message: 3 Date: Thu, 9 Nov 2023 12:00:52 -0500 From: Jesse Tayler To: D Tim Cummings Cc: webobjects-dev@lists.apple.com Subject: Re: AjaxAutoComplete Message-ID: <48f21de2-2301-4c1f-a473-25d1850a4...@oeinc.com> Content-Type: text/plain; charset="utf-8" I have used Ajax quite easily on a couple of components and for some reason, implementing even the simplest test was failing on updating a component of a similar sort. Before I make a wholly new component ? are there flags or tests aside from jQuery which seems fine? I don?t readily see why this just isn?t seemingly observing and updating the way I expect? Thoughts? On Nov 9, 2023, at 5:00 AM, D Tim Cummings via Webobjects-dev wrote: Set parameter afterUpdateElement to "observe" and it will behave like it is in an AjaxObserveField "$theCustomerName" afterUpdateElement = "observe" /> Tim On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote: Hi, Is there any trick available to make AjaxAutoComplete field observable (by AjaxAobserveField) ? Many thanks in advance for your help Stavros ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/tim%40triptera.com.au This email sent to t...@triptera.com.au ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com This email sent to jtay...@oeinc.com -- next part -- An HTML attachment was scrubbed... URL: <https://lists.apple.com/archives/webobjects-dev/attachments/20231109/a4ce1245/attachment.htm> -
Re: AjaxAutoComplete
I have used Ajax quite easily on a couple of components and for some reason, implementing even the simplest test was failing on updating a component of a similar sort. Before I make a wholly new component — are there flags or tests aside from jQuery which seems fine? I don’t readily see why this just isn’t seemingly observing and updating the way I expect? Thoughts? > On Nov 9, 2023, at 5:00 AM, D Tim Cummings via Webobjects-dev > wrote: > > Set parameter afterUpdateElement to "observe" and it will behave like it is > in an AjaxObserveField > > "$theCustomerName" afterUpdateElement = "observe" /> > > Tim > > On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote: >> Hi, >> >> Is there any trick available to make AjaxAutoComplete field observable (by >> AjaxAobserveField) ? >> >> Many thanks in advance for your help >> >> Stavros >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/tim%40triptera.com.au >> >> This email sent to t...@triptera.com.au > ___ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com > > This email sent to jtay...@oeinc.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete
Set parameter afterUpdateElement to "observe" and it will behave like it is in an AjaxObserveField "$theCustomerName" afterUpdateElement = "observe" /> Tim On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote: Hi, Is there any trick available to make AjaxAutoComplete field observable (by AjaxAobserveField) ? Many thanks in advance for your help Stavros ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/tim%40triptera.com.au This email sent to t...@triptera.com.au ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete in AjaxModalDialog
Hi Samuel, Yes that is basically what we did. We rolled back prototype to version 1.7 Regards, Ricardo > > On Dec 5, 2021, at 8:13 AM, Samuel Pelletier wrote: > > Hi Ricardo, > > I also noticed the problem outside modal dialog after testing it. After many > try and errors, I found a pattern. There is a problem with the latest > prototype.js clonePosition when the element is inside a float block (at > least). > > I simplified the clone position to use the new (prototype 1.7) Layout > functions and it fixes my problems. > > Here is the diff from my GitHub fork, can you give it a try on your apps. If > you have good results, I will create a pull request for the main Wonder > source. > > https://github.com/wocommunity/wonder/compare/master...spelletier:Fix_prototype_clonePosition?expand=1#diff-b6bffd9eba6821e533154f2617bd3a1c5ec0378a3cbbb2acce98ecd245e3a085 > > Regards, > > Samuel > > > >> Le 4 déc. 2021 à 22:55, Ricardo Parada a écrit : >> >> Hi Samuel, >> >> That sounds like a problem that we had that was solved by rolling back >> prototype.js to version 1.7 >> >> I believe wonder uses a more recent version, 1.7.3. We tried 1.7, 1.7.1, >> 1.7.2 and 1.7.3. >> >> I think all versions prior to 1.7.3 fix the display of AjaxAutoComplete. >> >> By the way, for us, the problem occurred outside ajax modal dialogs too when >> the page was scrolled if I remember correctly. >> >> But we also had other stuff that required Ajax dragging and for that we had >> to roll back all the way to the good old 1.7 >> >> I think I discussed this problem in the WebObjects slack channel and I may >> have included screenshots of what I was seeing. >> >> Hope that helps. >> >> Sent from my iPhone >> On Dec 3, 2021, at 3:27 PM, Samuel Pelletier via Webobjects-dev wrote: >>> >>> Hi, >>> >>> I want to use AjaxAutoComplete inside AjaxModalDialog and usually, it works >>> OK. A very strange problem occur when the main page is scrolled though, the >>> selection choices are displayed with a vertical distance from the textfield >>> that correspond to the vertical scroll of the main page bellow. >>> >>> It seems the javascript code compute this offset and set the absolute >>> position using it. This is fine on the scrolled contents but not inside a >>> modal dialog. >>> >>> Someone knows a work around for this problem ? >>> >>> Regards, >>> >>> Samuel >>> >>> >>> ___ >>> Do not post admin requests to the list. They will be ignored. >>> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >>> Help/Unsubscribe/Update your Subscription: >>> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com >>> >>> This email sent to rpar...@mac.com > ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete in AjaxModalDialog
Hi Ricardo, I also noticed the problem outside modal dialog after testing it. After many try and errors, I found a pattern. There is a problem with the latest prototype.js clonePosition when the element is inside a float block (at least). I simplified the clone position to use the new (prototype 1.7) Layout functions and it fixes my problems. Here is the diff from my GitHub fork, can you give it a try on your apps. If you have good results, I will create a pull request for the main Wonder source. https://github.com/wocommunity/wonder/compare/master...spelletier:Fix_prototype_clonePosition?expand=1#diff-b6bffd9eba6821e533154f2617bd3a1c5ec0378a3cbbb2acce98ecd245e3a085 Regards, Samuel > Le 4 déc. 2021 à 22:55, Ricardo Parada a écrit : > > Hi Samuel, > > That sounds like a problem that we had that was solved by rolling back > prototype.js to version 1.7 > > I believe wonder uses a more recent version, 1.7.3. We tried 1.7, 1.7.1, > 1.7.2 and 1.7.3. > > I think all versions prior to 1.7.3 fix the display of AjaxAutoComplete. > > By the way, for us, the problem occurred outside ajax modal dialogs too when > the page was scrolled if I remember correctly. > > But we also had other stuff that required Ajax dragging and for that we had > to roll back all the way to the good old 1.7 > > I think I discussed this problem in the WebObjects slack channel and I may > have included screenshots of what I was seeing. > > Hope that helps. > > Sent from my iPhone > >> On Dec 3, 2021, at 3:27 PM, Samuel Pelletier via Webobjects-dev >> wrote: >> >> Hi, >> >> I want to use AjaxAutoComplete inside AjaxModalDialog and usually, it works >> OK. A very strange problem occur when the main page is scrolled though, the >> selection choices are displayed with a vertical distance from the textfield >> that correspond to the vertical scroll of the main page bellow. >> >> It seems the javascript code compute this offset and set the absolute >> position using it. This is fine on the scrolled contents but not inside a >> modal dialog. >> >> Someone knows a work around for this problem ? >> >> Regards, >> >> Samuel >> >> >> ___ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com >> >> This email sent to rpar...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete
Louis: Always make sure that all Ajax elements have unique id’s. If the items in the list have a unique attribute like “employeeId” or something, in your java you can make the id = aac_employeeId. You can also generate id values like in some Wonder components: public String id() { String id = _id; if (id == null) { id = ERXWOContext.safeIdentifierName(context(), true); _id = id; } return id; } Then, different elements in the row could have id’s like: public String modalDialogId() { return rowModalDialog_ + id(); } public String checkboxId() { return rowCheckbox_ + id(); } public String autoCompleteId() { return “rowAutoComplete + id(); } Tim Worman UCLA GSEIS On Feb 13, 2015, at 1:25 PM, Louis Demers louisdem...@mac.com wrote: Hi, I successfully used AjaxAutoComplete in a few places in my app. I was able to get 2 AjaxAutoComplete to work in the same page but I get this “quouizy feeling I did it wrong but got it working anyway. But now I’m trying to use it inside a wo:repetition and not getting any luck. Is that possible ? I seem to remember discussion about setting unique element ID but could not locate anything in the mail archives. Pointers ? Thanks for any help PS: Here is how I got 2 AjaxAutoComplete to work in the same page. Partial .wo _ div div class = labelsold by:/div wo:AjaxAutoComplete value = $aSellerString list = $candidateSeller displayString = $aSeller.fullName item = $aSeller selection = $selectedSeller maxItems = 20 size = 20 / /div div class = info prewo:str value = $sal.soldBy.coordinates/wo:str /pre /div /div div class = cell div div class = labelsold to:/div wo:AjaxAutoComplete value = $aBuyerString list = $candidateBuyer displayString = $aBuyer.fullName item = $aBuyer selection = $selectedBuyer maxItems = 20 size = 20 / /div div class = info prewo:str value = $sal.soldTo.coordinates/wo:str /pre /div /div Partial .wo _ Partial .java ___ public String aSellerString; public Contact aSeller; private Contact selectedSeller; public String aBuyerString; public Contact aBuyer; private Contact selectedBuyer; // __ public NSArrayContact candidateSeller() { return Contact.suggestions(ec, aSellerString); } // __ public NSArrayContact candidateBuyer() { return Contact.suggestions(ec, aBuyerString); } // __ public NSArrayContact candidateBiller() { return Contact.suggestions(ec, aBillerString); } // __ public NSArraySpec candidateSpec() { return Spec.suggestions(ec, aSpecString); } // __ public Contact getSelectedSeller() { return selectedSeller; } public void setSelectedSeller(Contact selectedItem) { sal.setSoldByRelationship(selectedItem); selectedSeller = selectedItem; } // __ public Contact getSelectedBuyer() { return selectedBuyer; } public void setSelectedBuyer(Contact selectedItem) { sal.setSoldToRelationship(selectedItem); selectedBuyer = selectedItem; } // __ Louis Demers eng. www.obzerv.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/lists%40thetimmy.com This email sent to li...@thetimmy.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your
Re: AjaxAutoComplete not getting request
Hi,Yes it does. If I look in Safari's web inspector I see something like this (see below).The form data looks right - it has the correct value that I typed in. But the response is null and I don't see that it touches the handleRequest method of AjaxAutoComplete.Request URL:http://localhost/cgi-bin/WebObjects/METSAdminApp_1.woa/-/ajax/95.0.7.11.5.1.1.3.1.1.2.1.19.0.0.1.1.1.3Request Method:POSTStatus Code:200 OKRequest Headersview sourceAccept:text/_javascript_, text/html, application/xml, text/xml, */*Content-type:application/x-www-form-urlencoded; charset=UTF-8Origin:http://localhostReferer:http://localhost/cgi-bin/WebObjects/METSAdminApp_1.woa/-/wo/94.0.7.11.5.1.1.3.1.1.2.1.7.1User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2X-Requested-With:XMLHttpRequestForm Dataview URL encodede_0_7_11_5_1_1_3_1_1_2_1_19_0_0_1_1_1_3_field:OGResponse Headersview sourceConnection:closeContent-Length:31192Content-Type:text/htmlDate:Fri, 29 Jun 2012 21:03:03 GMTMS-Author-Via:DAVServer:Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.10 with Suhosin-Patch SVN/1.6.16Set-Cookie:wosid=emSii16ih6mVU52stftF5g; version="1"; path=/cgi-bin/WebObjects/METSAdminApp_1.woa, woinst=-; version="1"; path=/cgi-bin/WebObjects/METSAdminApp_1.woaThank you, Johnny MillerKahalawai Media Corp.www.kahalawai.com On Jun 29, 2012, at 10:59 AM, Amedeo Mantica wrote:Does the JS resources get loaded ?Sent from my iPhoneOn 29/giu/2012, at 16:42, Johnny Miller jlmil...@kahalawai.com wrote:Hi,I'm working on a project where I'm emulating frame sets. I have various editors that get loaded through a switch component depending on the selected object's type.In one of the editors I'm using the AjaxAutoComplete component but it is not working :(. I can see from the web inspector that the Ajax request is getting made but if put a logging statement in the handleRequest method of AjaxAutoComplete I can see that the request never reaches the component.As a test I put the AjaxAutoComplete up a level (into the component that has the switch component) and it worked as expected. Any advice on how I might be able to trouble shoot this?Thank you, Johnny MillerKahalawai Media Corp.www.kahalawai.com ___Do not post admin requests to the list. They will be ignored.Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)Help/Unsubscribe/Update your Subscription:https://lists.apple.com/mailman/options/webobjects-dev/amedeomantica%40me.comThis email sent to amedeomant...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete not getting request
OK. The component that was loaded through the switch subclassed a component that subclassed ERXNonSynchronizingComponent. I changed synchronizesVariablesWithBindings to return true and it started working. Do you think it possible to make it work with a non-synchronized component? Thank you, Johnny Miller Kahalawai Media Corp. www.kahalawai.com On Jun 29, 2012, at 10:59 AM, Amedeo Mantica wrote: Does the JS resources get loaded ? Sent from my iPhone On 29/giu/2012, at 16:42, Johnny Miller jlmil...@kahalawai.com wrote: Hi, I'm working on a project where I'm emulating frame sets. I have various editors that get loaded through a switch component depending on the selected object's type. In one of the editors I'm using the AjaxAutoComplete component but it is not working :(. I can see from the web inspector that the Ajax request is getting made but if put a logging statement in the handleRequest method of AjaxAutoComplete I can see that the request never reaches the component. As a test I put the AjaxAutoComplete up a level (into the component that has the switch component) and it worked as expected. Any advice on how I might be able to trouble shoot this? Thank you, Johnny Miller Kahalawai Media Corp. www.kahalawai.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/amedeomantica%40me.com This email sent to amedeomant...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete not getting request
I don't recall actually how does Ajax autocomplete is working. It uses the old scriptaculous autocomplete. I'll check on it. The old scriptaculous stuff should be thrown away. Sent from my iPhone On 29/giu/2012, at 17:46, Johnny Miller jlmil...@kahalawai.com wrote: OK. The component that was loaded through the switch subclassed a component that subclassed ERXNonSynchronizingComponent. I changed synchronizesVariablesWithBindings to return true and it started working. Do you think it possible to make it work with a non-synchronized component? Thank you, Johnny Miller Kahalawai Media Corp. www.kahalawai.com On Jun 29, 2012, at 10:59 AM, Amedeo Mantica wrote: Does the JS resources get loaded ? Sent from my iPhone On 29/giu/2012, at 16:42, Johnny Miller jlmil...@kahalawai.com wrote: Hi, I'm working on a project where I'm emulating frame sets. I have various editors that get loaded through a switch component depending on the selected object's type. In one of the editors I'm using the AjaxAutoComplete component but it is not working :(. I can see from the web inspector that the Ajax request is getting made but if put a logging statement in the handleRequest method of AjaxAutoComplete I can see that the request never reaches the component. As a test I put the AjaxAutoComplete up a level (into the component that has the switch component) and it worked as expected. Any advice on how I might be able to trouble shoot this? Thank you, Johnny Miller Kahalawai Media Corp. www.kahalawai.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/amedeomantica%40me.com This email sent to amedeomant...@me.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete ?
Hi Ted, I can't remember where I found this, but here is some basic CSS: .auto_complete { position:absolute; width:250px; background-color:white; border:1px solid #888; margin:0px; padding:0px; z-index:100; } .auto_complete ul { list-style-type:none; margin:0px; padding:0px; } .auto_complete ul li.selected { background-color: #ffb; } .auto_complete ul li { list-style-type:none; display:block; margin:0; padding:5px; cursor:pointer; } Hope that helps. Joe Joe Kramer jkra...@cyberapps.net On Wed, Mar 30, 2011 at 6:48 AM, Theodore Petrosky tedp...@yahoo.comwrote: anyone have an example of using an AjaxAutoComplete. I have it (almost) working on an AMD but I must be missing some CSS as the auto complete text is just floating over top of my other text (with a transparent background) so it is impossible to read. the docs don't say anything about CSS necessary for it to work. Ted ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/jkramer%40cyberapps.net This email sent to jkra...@cyberapps.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete ?
thanks, I searched on my HD for '.auto_complete' and I found similar CSS in the default_screen_stylesheet.css which is part of the ERModernDefaultSkin. It works, thanks again, Ted --- On Wed, 3/30/11, Joe Kramer jkra...@cyberapps.net wrote: From: Joe Kramer jkra...@cyberapps.net Subject: Re: AjaxAutoComplete ? To: Theodore Petrosky tedp...@yahoo.com Cc: webobjects-dev@lists.apple.com Date: Wednesday, March 30, 2011, 10:23 AM Hi Ted, I can't remember where I found this, but here is some basic CSS: .auto_complete {position:absolute; width:250px;background-color:white; border:1px solid #888; margin:0px; padding:0px;z-index:100; } .auto_complete ul { list-style-type:none; margin:0px; padding:0px;} .auto_complete ul li.selected { background-color: #ffb; } .auto_complete ul li { list-style-type:none; display:block; margin:0; padding:5px;cursor:pointer; } Hope that helps. Joe Joe kramerjkra...@cyberapps.net On Wed, Mar 30, 2011 at 6:48 AM, Theodore Petrosky tedp...@yahoo.com wrote: anyone have an example of using an AjaxAutoComplete. I have it (almost) working on an AMD but I must be missing some CSS as the auto complete text is just floating over top of my other text (with a transparent background) so it is impossible to read. the docs don't say anything about CSS necessary for it to work. Ted ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/jkramer%40cyberapps.net This email sent to jkra...@cyberapps.net ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Ajaxautocomplete to one relationship
Thanks David. I guess there is an inherent lack of genericity here. -- Dr. Mark Wardle Specialist registrar, Neurology (Sent from my mobile) On 29 Sep 2009, at 20:42, David LeBer dleber_wo...@codeferous.com wrote: On 2009-09-29, at 3:07 PM, Mark Wardle wrote: Hi all. I'm successfully using ajaxautocomplete but that results in a string. Fine for subsequent searching. Is there a unified component that will handle setting a to one relationship with a drop down populated by autocomplete? Otherwise I'll see whether I can roll my own! We have one, unfortunately it's implementation is pretty specific for the project it's used in and not really suitable for sharing: 1. It is D2W and tuned for our look. 2. It makes assumptions about the model (yes, I know, that is bad). The issue with using a autocomplete to do a lookup for a to-one relationship is that, as you mention, the autocomplete returns a string. You need to then guarantee that the attribute you are qualifying the found EO against is unique. For some EOs this is a non issue (qualifying countryName in the array of Country EOs). For EOs where this is not the case (productName in the array of Product EOs) we achieve this by appending a guaranteed unique value (i.e: productCode) to the the primary search attribute. ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site:http://codeferous.com blog:http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Ajaxautocomplete to one relationship
On 2009-09-29, at 3:07 PM, Mark Wardle wrote: Hi all. I'm successfully using ajaxautocomplete but that results in a string. Fine for subsequent searching. Is there a unified component that will handle setting a to one relationship with a drop down populated by autocomplete? Otherwise I'll see whether I can roll my own! We have one, unfortunately it's implementation is pretty specific for the project it's used in and not really suitable for sharing: 1. It is D2W and tuned for our look. 2. It makes assumptions about the model (yes, I know, that is bad). The issue with using a autocomplete to do a lookup for a to-one relationship is that, as you mention, the autocomplete returns a string. You need to then guarantee that the attribute you are qualifying the found EO against is unique. For some EOs this is a non issue (qualifying countryName in the array of Country EOs). For EOs where this is not the case (productName in the array of Product EOs) we achieve this by appending a guaranteed unique value (i.e: productCode) to the the primary search attribute. ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete - is it possible to have the equivalent of a noDisplayString?
I have 2 tabs in Ajax TabPanel. On the first tab Text Hinter works, but when I click Tab #2, I do not get the text hints. What do I have to do to get this to work on all tabs. Matt On Mon, Sep 21, 2009 at 8:01 PM, getsharp getsh...@gmail.com wrote: On 22/09/2009, at 6:08 AM, J Stephanos wrote: David: Unfortunately the text triggers an immediate search on the default string. It doesn't in my case. It is working as expected for me per the AjaxTextHinter javadoc example. I experience the same behaviour as David. AjaxTextHinter does work as per the example, but the presence of the text is seen as a change by AjaxObserveField. Sharpy. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mtt.stokes%40gmail.com This email sent to mtt.sto...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete - is it possible to have the equivalent of a noDisplayString?
I believe AjaxTextHinter in Wonder/Ajax is what you want. On Sep 21, 2009, at 11:33 AM, J Stephanos wrote: Wonder's AjaxAutoComplete works great - but is it possible to have the equivalent of a noDisplayString? Movie Name: [ enter a movie name here ] We'd like to provide some hint (enter movie name here) to the user, to enter a movie name in the field. It should disappear when you start typing in the text. Is this feature already there? Couldn't find it in the javadoc. TIA. --JSt ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to kieran_li...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete - is it possible to have the equivalent of a noDisplayString?
On 21-Sep-09, at 9:09 AM, Kieran Kelleher wrote: I believe AjaxTextHinter in Wonder/Ajax is what you want. This is really cool. I just tried it in an auto search field (like the example in AjaxExample2). Unfortunately the text triggers an immediate search on the default string. Do you know if there is a way to disable that behaviour so that the default text is just treated like a label and not treated as content of the text field? On Sep 21, 2009, at 11:33 AM, J Stephanos wrote: Wonder's AjaxAutoComplete works great - but is it possible to have the equivalent of a noDisplayString? Movie Name: [ enter a movie name here ] We'd like to provide some hint (enter movie name here) to the user, to enter a movie name in the field. It should disappear when you start typing in the text. Is this feature already there? Couldn't find it in the javadoc. TIA. --JSt ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists% 40mac.com This email sent to kieran_li...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/programmingosx %40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete - is it possible to have the equivalent of a noDisplayString?
Kieran: Thanks - Ajax*TextHinter* works beautifully! This is an example of* Y*et *A*nother *W*onder *N*ugget! David: Unfortunately the text triggers an immediate search on the default string. It doesn't in my case. It is working as expected for me per the AjaxTextHinter javadoc example. Thanks again. --JSt On Mon, Sep 21, 2009 at 1:21 PM, David Holt programming...@mac.com wrote: On 21-Sep-09, at 9:09 AM, Kieran Kelleher wrote: I believe AjaxTextHinter in Wonder/Ajax is what you want. This is really cool. I just tried it in an auto search field (like the example in AjaxExample2). Unfortunately the text triggers an immediate search on the default string. Do you know if there is a way to disable that behaviour so that the default text is just treated like a label and not treated as content of the text field? On Sep 21, 2009, at 11:33 AM, J Stephanos wrote: Wonder's AjaxAutoComplete works great - but is it possible to have the equivalent of a noDisplayString? Movie Name: [ enter a movie name here ] We'd like to provide some hint (enter movie name here) to the user, to enter a movie name in the field. It should disappear when you start typing in the text. Is this feature already there? Couldn't find it in the javadoc. TIA. --JSt ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists% 40mac.com This email sent to kieran_li...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/programmingosx% 40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete - is it possible to have the equivalent of a noDisplayString?
On 22/09/2009, at 6:08 AM, J Stephanos wrote: David: Unfortunately the text triggers an immediate search on the default string. It doesn't in my case. It is working as expected for me per the AjaxTextHinter javadoc example. I experience the same behaviour as David. AjaxTextHinter does work as per the example, but the presence of the text is seen as a change by AjaxObserveField. Sharpy. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete list width
On 08/04/2009, at 6:27 AM, Ricardo J. Parada wrote: Is there a way to set the width of the list of matches that an AjaxAutoComplete renders? Right now it seems to always match the width of the text field. You can achieve it by tweaking css, eg: .auto_complete ul { width:150px; } I managed to write some JavaScript that sets the width of the text field to 40px. But when I start typing in that text field I want the list of matches to be ~150px because it includes a long description and 40px makes it wrap around and looks ugly. Any ideas? The text field size can be set with a size = binding, no javascript required. Cheers, Sharpy.. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete and AjaxObserveField
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. Title: Hello World Main.wod Description: Binary data Main.java Description: Binary data ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete and AjaxObserveField
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.htmlMain.wodMain.java ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete
It seems that the trick for making it look like a search field can be accomplished by simply wrapping the AjaxAutoComplete in a div like this: div class=livesearch wo name=AutoComplete/ /div and then having a bit of javascript to find the input element inside the an element of class livesearch... and then just set the found element's type attribute to search. On Mar 25, 2009, at 11:08 PM, Ricardo J. Parada wrote: Can the AjaxAutoComplete be styled, i.e. if it accepted a class binding but I don't see one? Or maybe, instead of a text field could it be an input type=search so that it looks like the Safari search field. I know that only works in Safari but still... it would be nice. :-) Ricardo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/rparada %40mac.com This email sent to rpar...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com