Re: AJAX replacement for voting buttonsby b10m (Vicar)
|on Jan 03, 2007 at 12:23 UTC||Need Help??|
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 ;-)
All code is usually tested, but rarely trusted.