Log in

View Full Version : Synchronizing data from a website.


ricksfiona
07-04-2003, 12:31 PM
I belong to a gym and would like to my Pocket PC to synchronize to the following information on their website:

Hours, phone numbers and what classes are held on what days and times.

All of this information is located on the gym location's home page, which is directly accessible without doing a search or navigating through a menu system. Copying the URL once you get to the location page will get you there everytime.

I think this would be a good beginner project that could lead to other things... I know I could parse the information from the website. That's the easy part.

I would like to create a program with a nice interface on the Pocket PC, have ActiveSync synchronize with the website and possibly do some simple look-ups from the data. Possibly synchronize with a couple of other gym locations as well. I also want stability and a small footprint. Visual tools are cool, but they tend to be bloggy and tempermental.

What would be the better way to approach this... I've done some Pascal and DOS C programming in the past. To be honest, I pick up programming quite quickly, so I'm not really intimidated by it and working on something like this shouldn't be major I would think.

Visual CE looks cool. Share your thoughts?

Shaun Stuart
07-04-2003, 03:20 PM
Would Avantgo mobile custom channels give you what you need ?

https://my.avantgo.com/home/index.html?referer=http%3A%2F%2Favantgo.com%2Ffrontdoor%2Findex.html

ricksfiona
07-05-2003, 12:17 AM
Would Avantgo mobile custom channels give you what you need ?

https://my.avantgo.com/home/index.html?referer=http%3A%2F%2Favantgo.com%2Ffrontdoor%2Findex.html

Good idea and I tried it. Unfortunately the formatting of the website didn't come out very well and it's not very usable. Doh! Any other ideas out there?

JordanMills
07-08-2003, 06:49 PM
Clip what you need and keep it in a custom data structure, or export it to scaled down HTML. You'll want to do something like bind (if you'll pardon my vbscript, it should give you an idea of how the object works):objIE = CreateObject("InternetExplorer.Application")
strHtml = objIE.Document.Body.InnerHTML
strText = objIE.Document.Body.OuterHTML
intLenHours = 50 ' number of characters to copy in the hours section
strHours = Mid(strText, InStr(strText,"Hours"), intLenHours)
Set objIE = Nothing

Or something like that. objIE.Document.Body.InnerHTML gives you the HTML source of the page, objIE.Document.Body.OuterHTML gives you the rendered text display of the page. I'm working on this for my (GPL, darnit) weather bar.