I don’t know the answer, but I know that I have seen it before!
I have also used that bit of code a few months ago (but not any more). I remember seeing some site where people were asking your same question, and there was some solution there, try Googling a bit more.
My problem is massupdate working so slow, and i want create tasks in the queue
So the way I see is create new Action and asynchronous call javasript, but now new problem with “Select All”
If you can group all your actions under one SQL UPDATE, it can be much faster. So if the situations are typical, like filtering for everything related to a Contact, and then mass updating that, then you can design your action around that same filter.
If, however, you want a completely generic update of whatever the user selects, then you have to do it like your trying now…