http://qs321.pair.com?node_id=592747


in reply to Re^2: AJAX replacement for voting buttons
in thread AJAX replacement for voting buttons

The last point requires some more text, so I'll comment on that here.

IMHO, your GM script (no matter funny and handy) will not help much. You still request a lot of pages and AFAIK, the content is still being returned to the client (we just ignore it at this point). Since we already receive the whole page back, why not strip out the relevant information to update the new "reputation"?

Also, why not update the "votes left" in the XP Nodelet at the same time? (I don't believe you do that now). That way, in the end, we end up with slightly more page requests, but at least it's fun ;-)

Right now, I'm actually putting more stress on the PM server, for usually I vote for a few nodes, then hit the Vote button and all is handled in a single page request. I see the amount of votes I have left, and I see the node's reputation. Now I launch a request for every single vote, and I have to launch another one, to see the result!

"I must admit I was not expecting to please everyone ;-)"

You've posted code to a critical (and often cynical) audience. Expect feedback ;-)

--
b10m

All code is usually tested, but rarely trusted.