简体   繁体   中英

running Javascript from an external site in C# application

I'm think about building a Silverlight C# Windows phone application for buses in Israel, and I have a basic question(or is it?).

The bus site which I want to get the data from uses Javascript. You need to type in the city you want to get to, and it returns the list of stations in that city.

I'd like to somehow "get" this page, type the code in, and get the results - all in C#. I'm pretty much lost on where to start from. How do I "get" the site code? how do I run the Javascript action that returns the stations, from within C#? is that even possible?

您可以使用Fiddler来查看页面从何处获取其站点并直接读取站点,也可以将页面加载到Web浏览器控件并调用 Javascript操作,如果页面中存在此类脚本,则该操作将返回站点。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM