Results 1 to 3 of 3

Thread: getting images to load into div with html

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

    Default getting images to load into div with html

    1) Script Title: Dynamic Ajax Content

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    3) Describe problem: OK, I got the html document to load ok, but the images within said document don't load along with it. I even tried setting up the folder structure the same way as in the demo. How does the demo manage to get the images to load? What am I doing wrong here?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It's hard to say for sure without a link to your page.

    Generally the answer is that the image isn't where the code says that it is.

    Remember that once the external page's HTML is imported to the 'top' page, any paths to images on it are now relative to the location of the 'top' page, not to the external page. If there's ever any doubt, you can always use the absolute path.

    If you want more help:

    Please post a link to a page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Aug 2011
    Posts
    18
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    If you have the folder structure set up the same way, it should work.

    Are you getting the red x where the image should be? One quick way to diagnose with Chrome (or Firefox with Firebug installed) is to right click on the area where the image should be and select "Inspect Element". Then you can ascertain exactly where the browser is looking to find the images and diagnose the problem from there.

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
  •