Sorry - I should have answered your question, too...
Using JavaScript, you cannot get RGB values of specific pixels. The colour picker above does it by calculating what colour should be at what x and y coordinate, rather that what actually is there, I believe.
Hope this helps,
Dan