...

View Full Version : importing a div from another page



direwolf
02-23-2005, 08:48 AM
I know absolutely nothing about javascript or any *real* kind of scripting. My "coding" abilities do not go beyond html and batch files. Though I did manage to customize a copy/paste thumbnail image viewer script to display different text below each different picture. (hahahahaha)

I have a hunch that someone here can help me out. Hopefully, someone might be kind enough to do so.

Here's my problem. I am working on a website for my DF2 A&D squad. We have a server who's current info can be found on this page:
http://24.222.31.166/_dfpad/df2wm.dll/servers2/df2/?gt=3893

I would like to import some of the source code from that page (namely a certain link tags (title="") attribute, but I realize that this is a pipedream since the free host server that our website is on doesn't support cgi/perl or php.

Since I can't do that, however, I would glady settle for importing one certain div from that page. This one:


<div id="theContent">
(blah, blah, div contents here)
</div>

I have a feeling that it can be done with a "hidden" iframe to load the above-linked page, then a innerhtml or getelementbyid-somethin-or-other. It's just way beyond me. I would be extremely appreciative if someone could help me out with how to do this.

Thank you just for taking the time to read this.
TheDireWolf

Kor
02-24-2005, 08:35 AM
I have a feeling that it can be done with a "hidden" iframe to load the above-linked page,

Only if the page in iframe has the same domain, otherwise you may try an ActiveX/XMLHTTP solution.

See: http://www.codingforums.com/showthread.php?t=46088



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum