Click to See Complete Forum and Search --> : AJAX with images problem


ForeverIrise
10-11-2005, 04:07 AM
This is reallllllly confusing me.

http://www.foetaige.com/imagetest.php

I am constructing a page with no tables and no iframes. It incorporates AJAX to open a different page in a different <div> tag. As you can see, it WON'T open .jpg, .jpeg, .txt files in the different div tag area. It WILL open .htm, .php etc.

Image 1 is the same image that I have in page 1 image 1 only like I said this is opening an html file with a <img> tag embedded.

Ok so we see what works and what doesn't work.

NOW, check this out.

http://www.foetaige.com/sites/images/day.php

You see it say:

.day
photo 01 with an image underneath it.

http://www.foetaige.com/

Click on the .day link under the ..images portion of the menu.

....

Where is the image?

If you look at the source it has:

<li><a href="javascript://" onClick="getContent('sites/images/day.php','main')">.day</a></li>

Why is the image appearing when it calls it from the index file to open in the div with the id tag "main" yet it will work with the example I put on top with the imagetest.php file?

This is really confusing me and I hope I didn't confuse anyone else.