www.webdeveloper.com
Results 1 to 3 of 3

Thread: Help: container tag content change with data from another HTML file

  1. #1
    Join Date
    Feb 2010
    Location
    chennai, India
    Posts
    2

    Cool Help: container tag content change with data from another HTML file

    hi,

    I want to dynamically change the content of a container tag (DIV for example) with the data of another container tag present in a different HTML file placed in a different folder

    My open HTML file is 'A.htm' placed in 'Folder A' and container id='old_data'

    My required content is inside the tag with id='new_data' present in file 'B.htm' and placed in 'Folder B'

    so, code in file A.htm may be

    > document.getElementById('old_data').innerHTML = <<What Comes Here >>

    Please Help. And Thank in advance.

    --sssun

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    You will have to load the 'Folder B' document into a hidden iframe or object, then extract the required data from it.
    Using a server side language would be a better option.
    At least 98% of internet users' DNA is identical to that of chimpanzees

  3. #3
    Join Date
    Feb 2010
    Location
    chennai, India
    Posts
    2

    Smile thanks for advice

    ThankQ.

    I will try your idea and i'll post back

    thanks again

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles