PDA

View Full Version : Accessing Other Frames Source, possible?


Zlixar
01-01-2003, 06:04 AM
i am not really an "expert" with javascript so this may be impossible or extremely easy:

i have 2 frames, one is another site, i cannot change it individually, the other i control, and of course the parent page. i want to get ahold of the second frames source in frame one. it would be nice if there were a frame2.window.document.source but there isnt from what ive found :(. also frame2 is a perl/cgi file so i cannot dl its source using conventional "source snooper" methods... also perl is an option but i was hoping thered be the easier way of 2 frames, one stealing the others and auto posting to a pl file with it, thats why its on this forum :) . so if this insanely easy or impossible id appreciate help. also im really tired so im babbleing. Thank you and happy new year (i just noticed its 12:03, and im sitting at home, kinda sad)

whammy
01-01-2003, 06:13 AM
You can't access another domain's content with javascript, at any rate, if that's the case you are familiar with the "Access Denied" error.

You could rip the contents server-side, include what you ripped in your frames dynamically using server-side scripting, and interact with that, but if it's not your content you will most likely (appropriately) get sued... :)

Zlixar
01-01-2003, 06:16 AM
maybe in perl? the problem is, im making my new online gaming guild for Battle.net Warcraft III a uber site. i want to have the site automaticly update there records. www.battle.net has pages of user records. if i can get the page i want's source into a perl file i could locate there stats and update em. i might post this on the perl forum then. but that i know of, perl can only steal files, not there output, such as a .pl files output, which is were the stats pages and generated :(

whammy
01-01-2003, 06:19 AM
You should be able to parse the HTML server-side (with Perl or whatever), but it may not be easy!

Too bad that this site you want the stats from isn't running a .NET web service... ;)