/    Sign up×
Community /Pin to ProfileBookmark

AJAX with images

This is reallllllly confusing me.

[url]http://www.foetaige.com/imagetest.php[/url]

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.

[url]http://www.foetaige.com/sites/images/day.php[/url]

You see it say:

.day
photo 01 with an image underneath it.

[url]http://www.foetaige.com/[/url]

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.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@ForeverIriseauthorOct 11.2005 — Anyone any ideas?
×

Success!

Help @ForeverIrise spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...