Friday, February 3, 2012

Reading html source code ?!?!?!?!?

****************************************鈥?

PLEASE READ THE WHOLE DETAIL BEFORE ANSWERING

**************************************鈥?



I am trying to connect to either yahoo maps or google maps through C# pass 2 query string with 2 zipcodes, and read the distance from the html source code

example :Driving directions to Irvine, CA 92056

5.5 mi 鈥?about 12 mins

the problem is that they are using ajax or something similar, and somehow when i view the source code i cannot find these contents in the source code. Is there any way to access these contents?Reading html source code ?!?!?!?!?
The AJAX call (async javascript and XML or JSON) is used to call the mapping web service. This is not a way in which you have access to that application.



SInce you are already writing in C#, I recommend that you take a look at Microsoft Virtual Earth Live. at http://dev.live.com/virtualearth/mapcrun鈥?/a> This page has links to a "Live" API/toolkit that you should be able to use. I am sure there are many other ways to do this.Reading html source code ?!?!?!?!?
Ajax isn't HTML, you won't find that data in the source.

No comments:

Post a Comment