Re: Invoking action method from javascript

2008-02-29 Thread Paranoid_Fabio
Ok. Thank you. I will try this way. Paranoid_Fabio wrote: > > Hello. I've an action that populates a table with some info. In each row, > there's a button to delete the entry and the associated object from the > DB. > In my action class I've a list (something like a queue) of the ID that > will

Re: Invoking action method from javascript

2008-02-29 Thread Dave Newton
--- Paranoid_Fabio <[EMAIL PROTECTED]> wrote: > I don't want to invoke a removeAction for every click...but I think it's > the only way..isn't it? You could keep a JavaScript variable containing a comma- (or whatever-) separated list of IDs to remove and submit that value on submission, parse the

Re: Invoking action method from javascript

2008-02-29 Thread Paranoid_Fabio
Thank you. In fact I don't have a removeAction, but only a removeMethod() in the same action that display and populate the list. Because I don't want to remove the element from the DB on click, I only want to add the clicked ID to a remove queue. Then all the remove queue will be processed by a re

Re: Invoking action method from javascript

2008-02-29 Thread Richard Sayre
you can say, document.location.href = '?myId=' + myId; This will cause the whole page to refresh, so you should probably have a prepare method if you have any data that needs to be populated on that page (ie your table). I personally would use Ajax to make the call, having a full page refresh on