|
AjaxUpdateLink has a “functionName” binding that does exactly what you are after.
Likewise, if you want to synchronize some variables with a form submission, AjaxSubmitButton also has a “functionName” binding.
:-)
> On Mar 25, 2021, at 6:50 AM, Fabian Peters <webobjects-dev@wocommunity.org> wrote:
>
> 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
>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list <webobjects-dev@wocommunity.org>.
> To unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
> To switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
> To switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
> Send administrative queries to <webobjects-dev-request@wocommunity.org>
>
|
|