Client-Side Scripting

NOTICE - You will need to use an XML Proxy or some sort of HTTP proxy for this to work as most browsers have Cross Site Scripting(XSS) protections which will prevent normal operation. You could also use various techniques to get around this limitation, like JSONP.

Client-side scripting access facilitates access via languages like JavaScript, ActionScript, etc. Access this way requires use of a special kind of key that is not associated with a hostname. This is offered to facilitate linking to our site or for other interesting ideas.

The following methods are accessible with these specialty keys.

For more detailed information, please contact webmaster@votesmart.org.

HTTP Proxy

For those that would like full data access or would like to use JavaScript without hacking around cross domain scripting problems, there is a solution, an HTTP proxy.

Troy Wolf has some useful PHP scripts that will act as an HTTP proxy. The scripts class_http.php and it's dependent proxy.php. Basically, it just changes your GET request to this:

There are also plenty of other scripts in different languages to handle this if you don't have or would rather not use PHP.

Note: This script does not care who uses it. You may want to add a check to make sure the requests are limited or add some form of simple authentication. Otherwise it could be open to abuse for whatever the user intends to use it for, potentially crippling your server.