Mailing List webobjects-dev@wocommunity.org Message #112
From: Fabian Peters <webobjects-dev@wocommunity.org>
Subject: Re: [WO-DEV] CallActionMethod
Date: Thu, 25 Mar 2021 11:50:58 +0100
To: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
Hi Michele,

You could generate the button in WO, using AjaxDynamicElement. Take a look at Chuck's example class to get you started: <https://github.com/wocommunity/wonder/blob/master/Frameworks/Ajax/ERCoolComponents/Sources/er/coolcomponents/CCRating.java>

cheers, Fabian

> Am 25.03.2021 um 10:55 schrieb Michele Varano <webobjects-dev@wocommunity.org>:
>
>> Hello all
>>
>> I have a JavaScript based calendar that accesses a <div id='calendar'></div> in HTML.  The calendar(JavaScript) can be customized with custom data or given functions.
>> Now I need to call an Action Method by a button "onclick JavaScript ".
>>
>> My question is how do I build the Script code / URL to access the method, using Ajax? Is there support in Wonder to have non WO generated user interface elements making Ajax calls back into my application?
>>
>>
>> Many Thanks
>>
>>
>> Michele

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster