Results 1 to 2 of 2

Thread: Load a div from another page into a div or iframe into another page

  1. #1
    Join Date
    Nov 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow Load a div from another page into a div or iframe into another page

    hey guys,

    i'm trying to load into a div or iframe a div from another page by id.

    i know i might be able to do it with jquery but i need some guidance

    thanks

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    You'd need Ajax to load the content.
    And you'd need to parse that content to separate the targeted div.

    It would be much easier if you control the other page, if you can just separate it and include it into both pages, rather than having to separate it from one.

    I suppose you could use a script that would load the whole page then remove all elements except that div.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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