Click to See Complete Forum and Search --> : Trying to get the visible context from a web page


mikahl
April 6th, 2010, 05:59 AM
My problem:

How can I read (text) context from a web page, which uses scripts?

For example:

If I want to read the name of the player in given url:

http://whitesox.mlb.com/components/team/player/bio_iframe.html?is_mug_shot=true&roster_cid=cws&cid=cws&player_id=455113


CInternetFile helps if I want to read "Page source", but now I need to evaluate java-functions (scripts)?

Any hints how this can be solved (in practise)?

hoxsiew
April 6th, 2010, 07:33 AM
Short of writing your own javascript interpreter, your pretty much screwed. HTTP has come a long way from the days when its content was more or less a text file with hyperlinks.

Depending on what the javascript actually does, you may be able to sleuth it and find that it eventually links to some hard data source, but that's beyond the scope of this forum.