I'm trying to get Greasemonkey to automate the site for me, and I don't want to retrieve information one at a time. So I looked around and discovered jQuery. Being very new to Greasemonkey scripts, I still find this a bit tough, but if someone can point me in the right direction, it will help a lot. I want Greasemonkey to extract information in files that I believe are related to jQuery. When I launch Firebug on the page, I get:
http://www.trada.net/javascript/jquery-1.4.2.min.js http://www.trada.net/REST_Service/REST_Auction.svc/GetAuctionData?_=1306009003654
with this information inside:
{ "d": [ [ "", "", "y", "ZAR", "1", "49517", "8270, 8270, 8270, 7635, 8270", null, "1.34", "8270", "0:13:30", "", "12", "", "C", "30", null ], [ "", "", "y", "ZAR", "2", "49582", "6725, 6725, 7863, 9228", null, "***0.78***", "6725", "0:12:37", "", "5", "", "L", null, null ], [ "", "", "y", "ZAR", "3", "49058", "5153, 9216, 6058, 9216, 5153", null, "180.80", "5153", "0:00:59", "", "1100", "", "T", null, null ], [ "", "", "y", "ZAR", "4", "49581", "0051, 6692, 9555, 6692, 9555", null, "1.35", "0051", "0:00:14", "", "12", "", "T", null, null ], [ "", "", "y", "ZAR", "5", "49584", "6725, 6725, 9822", null, "0.93", "6725", "0:14:28", "", "5", "", "L", null, null ], [ "", "", "y", "ZAR", "6", "49583", "9822, 7863, 9228", null, "0.75", "9822", "0:15:05", "", "5", "", "L", null, null ], [ "", "", "y", "ZAR", "7", "49544", "0957, 0957, 0957, 0957, 0957", null, "10.00", "0957", "0:01:59", "", "55", "", "T", null, null ], [ "", "", "y", "ZAR", "8", "49575", "2110, 5661, 9295, 2110, 3809", null, "3.05", "2110", "0:00:13", "", "29", "", "T", null, null ], [ "", "", "y", "ZAR", "9", "49496", "7863, 5845, 7863, 7158, 7158", null, "2.41", "7863", "0:05:55", "", "10", "", "B", null, null ], [ "", "", "y", "ZAR", "10", "49524", "7863, 7863, 5845, 7863, 0764", null, "1.57", "7863", "0:05:49", "", "5", "", "B", null, null ], [ "", "", "y", "ZAR", "11", "49539", "7863, 7863, 0764, 2427, 2427", null, "1.92", "7863", "0:03:54", "", "10", "", "B", null, null ] ] }
I can understand the information, and it is updated every second, but how do I get Greasemonkey to interpret the information? Say, for example, I want each piece of information on line 4 to be read into its own variable:
"1.34", "8270", "0:13:30", "", "12", "", "C", "30", null
How do I get Greasemonkey to retrieve this information?
Thank you very much.