Thanks Malcom;
MultiActionResult looks like what i need. I will explore this later . For
now i have hacked a simpler solution:
Add all the components in a json and pass the return the json. I realised
ClickUtils has a method for escaping html . This will make it possible for
me to shove the components into a json.
Something like this:
myjson.add('table', ClickUtils.escapeHTML(mytable.toString()));
myjson.add('form', ClickUtils.escapeHTML(myform.toString()))
Then on the client side:
$(form).replace(responseData.form)
$(table).replace(responseData.table)
Something like that.
Regards:
Josh
ps: I would like to use my non-official gmail on clicks mailing list but it
always gets rejected (505 - Not accepted here) . My address is
[email protected] if anyone can help.
On Mon, Jan 9, 2012 at 8:28 AM, Malcolm Edgar <[email protected]>wrote:
> Please see:
>
> http://code.google.com/a/apache-extras.org/p/ajax4click/wiki/jQueryAjax
>
> regards Malcolm Edgar
>
>
> On Mon, Jan 9, 2012 at 4:10 PM, Joshua Kamau <[email protected]> wrote:
>
>> Hi There ;
>>
>> Which is the best way to update multiple UI components via ajax? I would
>> specifically like to update a form and a table. Is there away of attaching
>> markup of the two or even more components to ActionResult ?
>>
>> Regards.
>>
>> --
>> Joshua Kamau
>> Software Engineer | Alliance Technologies | MCK Nairobi Synod Building
>> T + (0) 20 3860986 | F + (0) 20 3861615 | M + 254 732920014
>> www.A1ERP.com <http://www.a1erp.com/>
>>
>>
>>
>
--
Joshua Kamau
Software Engineer | Alliance Technologies | MCK Nairobi Synod Building
T + (0) 20 3860986 | F + (0) 20 3861615 | M + 254 732920014
www.A1ERP.com <http://www.a1erp.com/>