Results 1 to 2 of 2

Thread: Loading HTML to div/iFrame

  1. #1
    Join Date
    Sep 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Loading HTML to div/iFrame

    Hi,

    I am designing a website for my small office, to be used by 10 people at the most - using Intranet.

    I have a DIV in a page which shows the internal articles search results. The Articles (help documents) are saved as html files in a sub folder and so show up as links in the search results.

    -> Hit search by inputting keyword.
    -> Search results displayed (multiple links) on the div named results.

    Currently the html page (search result) open in a new window when you click any of the result links.

    I am trying to get these links to open in the same DIV instead of a new window.

    Is this possible? If one cant load html content in DIV, is there some way to do it by using iFrames? (can I define an iFrame inside a div?

    Thanks for your help!!

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

    Default

    In some sense, no. But you can get around this using Ajax (a method of Javascript). Just google that as a place to start.
    Alternatively, yes, an iframe would be much simpler. Just set it up with the same dimensions (and perhaps other properties) as required, and it should work immediately.
    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

Similar Threads

  1. swf/xml not loading in HTML :(
    By great_dindi in forum Flash
    Replies: 0
    Last Post: 03-31-2011, 07:12 PM
  2. Loading an HTML file that automatically embeds itself into the iframe of another page
    By BrightStarPro in forum Looking for such a script or service
    Replies: 1
    Last Post: 07-12-2009, 07:36 AM
  3. loading html in DIV tag
    By ravimmrk in forum JavaScript
    Replies: 6
    Last Post: 05-28-2008, 07:33 PM
  4. Replies: 4
    Last Post: 08-28-2007, 03:48 AM
  5. Loading HTML
    By Cheng in forum HTML
    Replies: 6
    Last Post: 08-09-2006, 02:08 AM

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
  •