well I learned how to write it from a tutorial on and IBM site..
http://www-128.ibm.com/developerwork...jaxintro1.html im just finding a problem with connecting with a file using the request.open("GET", url, true); stuff..