Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    importing a div from another page

    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.dl...2/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:
    Code:
    <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

  • #2
    Kor
    Kor is offline
    Red Devil Mod Kor's Avatar
    Join Date
    Apr 2003
    Location
    Bucharest, ROMANIA
    Posts
    8,478
    Thanks
    58
    Thanked 379 Times in 375 Posts
    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: Searching Text on Pop Up Window
    KOR
    Offshore programming
    -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •