Skip to main content

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?


Comments

  1. You can either use Fiddler to see where page get its stations from and read stations directly or you can load page to web browser control and invoke Javascript action that returns the stations if such script exists in page.

    ReplyDelete

Post a Comment

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?