You are wrapping the row with the updateContainer. Try wrapping the contents:

> <tr>
>     <td class="maincontentbold">Malignant Disease:</td>
>     <td><WEBOBJECT NAME=UpdateComponent><WEBOBJECT 
> NAME=SiteOfDiseasePopUpButton></WEBOBJECT></WEBOBJECT></td>
> </tr>


I was trying to see if I could find an example in anything I did in the past (I 
have been working with D2W this past year)


On Mar 9, 2015, at 11:59 AM, Calven Eggert <[email protected]> wrote:

> Hi,
> 
> I'm learning AJAX and I'm following the Dependent List Example but am having 
> weird results.  The result is the observed field is duplicated at the top of 
> the webpage.  When I view source in Chrome, the observed field is only found 
> once in the HTML at the proper place.  Here is my code:
> ...
> <tr>
>     <td class="maincontentbold">Site Group:</td>
>     <td><WEBOBJECT NAME=SiteGroupPopUpButton></WEBOBJECT><WEBOBJECT 
> NAME=SiteObserveField></WEBOBJECT></td>
> </tr>
> <WEBOBJECT NAME=UpdateComponent>
> <tr>
>     <td class="maincontentbold">Malignant Disease:</td>
>     <td><WEBOBJECT NAME=SiteOfDiseasePopUpButton></WEBOBJECT></td>
> </tr>
> </WEBOBJECT>
> ...
> 
> SiteGroupPopUpButton: WOPopUpButton {
>     id = "groupPopupID";
>     displayString = currentItem.displayName;
>     item = currentItem;
>     list = siteGroupArray;
>     noSelectionString = kNoneSelected;
>     selection = siteGroupSelection;
> }
> SiteObserveField: AjaxObserveField {
>     observeFieldID = "groupPopupID";
>     updateContainerID = "observerID";
>     fullSubmit = false;
> }
> UpdateComponent: AjaxUpdateContainer {
>     id = "observerID";
> }
> SiteOfDiseasePopUpButton: WOPopUpButton {
>     displayString = currentItem.displayName;
>     item = currentItem;
>     list = siteGroupSelectionSites;
>     noSelectionString = kNoneSelected;
>     selection = currentCase.siteOfDiseaseLookup;
> }
> 
> SiteGroupPopUpButton is the field that the user will change (observed field) 
> and SiteOfDiseasePopUpButton (Malignant Disease) is the popup that should 
> change accordingly.  When the Site Group popup is changed the phantom popup 
> at the top of the page does change appropriately but the real popup does not. 
> (not sure if images are allowed in this email list but one is included just 
> in case, so you can see the phantom popup at the top of the page)
> 
> What am I doing wrong?
> 
> Calven
> 
> <screenshot.png>
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to