List guild members in JS via JSON

90 Blood Elf Paladin
8865
Hi.
I really haven't done much with JavaScript in the past (except a small amount of JQuery)

I am simply trying to get a list of guild members from the JSON feed here:
http://us.battle.net/api/wow/guild/Arthas/Knights%20of%20Shadow?fields=members&jsonp=?

I need the end result to be a string variable it in the following format:
[ Member1, Member2, Member3, ]
that can act as search terms for use in a simple JQuery Autocomplete list (see demonstration below):
http://jsfiddle.net/AgpaN/184/

Thanks for your help
Reply Quote
Look into JSON.parse then u could loop through the stuff you get back. Underscore.js has some nice tools for that if you are going to be doing lots of scripting and don't mind the overhead.
Edited by Kaga on 9/10/2012 7:27 PM PDT
Reply Quote

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Forums Code of Conduct

Report Post # written by

Reason
Explain (256 characters max)

Reported!

[Close]