Please look at the test.html that uses the XMLHttpRequest object. (To see the source code, on the test.html frame do: right click -> This Frame -> View Frame Source.) Due to crossdomain restrictions, this code will not work as-is on most browsers but you can run it on your Eclipse web browser (you R-click on it and use: Open with -> Web Browser).
For this project, you will use the
Your HTML web page must have 3 sections:
How to URL-encode the address to send it to zillow: use the
How to extract the Zestimate value from the zillow XML response: use the method getElementsByTagName('amount').
NOTE: You should neither post nor deploy your project on a public web server. But if you are curious to know how to do this properly, here are the directions (don't do this for this project). To bypass the crossdomain restriction (ie, to send AJAX requests across domains), you need to create a proxy on the same server that you deploy your web application. More specifically, you can create the following proxy.php script:
Last modified: 01/31/13 by Leonidas Fegaras