• 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: AjaxObserveField problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxObserveField problems


  • Subject: Re: AjaxObserveField problems
  • From: Pascal Robert <email@hidden>
  • Date: Mon, 01 Apr 2013 12:48:24 -0400

Le 2013-03-29 à 17:01, Matthew Ness <email@hidden> a écrit :

> Hi Pascal,
>
> What happens when you sit the </wo:if> and <wo:else> flush against each other (something I always do), and have the entire html block sit inside the AUC?

If I keep the if and else, but that the update container is the parent container of the observe field, the content just disappear. If I remove the if and else, it works just fine.

>
> On 30/03/2013, at 5:33 AM, Pascal Robert wrote:
>
>> I'm having a problem with a AjaxObserveField. I'm using it with a WOPopUpButton so that if the selected value of the pop up is not empty, the pop up won't show, and it will display some attributes of the selection.
>>
>> Structure:
>>
>>  <wo:AjaxUpdateContainer id="supplier_info">
>>    <wo:if condition="$purchaseOrder.supplier">
>>     <wo:str value="$purchaseOrder.supplier.company" />
>>    </wo:if>
>>  </wo:AjaxUpdateContainer>
>>
>>  <div>
>>    <wo:else>
>>      <wo:AjaxObserveField updateContainerID="supplier_info" action="$justRefresh">
>>        <wo:popUpButton style="width: 150px;" list="$suppliers" item="$supplierItem" displayString="$supplierItem.company" selection="$purchaseOrder.supplier" noSelectionString="Please select a supplier..." />
>>      </wo:AjaxObserveField>
>>    </wo:else>
>>   </div>
>>
>> When I select a value in the list, I see a POST request being made, but I have a breakpoint in the justRefresh method and I never reach it. What is happening here?
>>
>> Request URL:http://127.0.0.1:56277/cgi-bin/WebObjects/MyApp.woa/ajax/zcYVC5w6HwxHyW7sPqLFkM/8.0.13.5.1_u=supplier_info&1364581831478
>>
>> Request Method:POST
>>
>> Query parameters:
>>
>> _u=supplier_info&1364581831478
>>
>> Form Data:
>>
>> 	• 0.13.5.1.25.17.1.1:5
>> 	• _partialSenderID:0.13.5.1.25.17.1.1
>> 	• AJAX_SUBMIT_BUTTON_NAME:0.13.5.1.25.17.1
>>
>>
>> _______________________________________________
>> 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
>
>
> --
> Matt.
>
> http://logicsquad.net/
>
>


 _______________________________________________
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


  • Prev by Date: Re: Weird problem with D2W rules
  • Next by Date: Re: Weird problem with D2W rules
  • Previous by thread: Re: Weird problem with D2W rules
  • Next by thread: Small note about the Association, WOWODC and myself
  • Index(es):
    • Date
    • Thread