Hello everyone,

i'm an IT student (first year) and i've received a task to make a website for my school (fictional ofcourse).
Now i have an idea on how to make it,but after asking my teacher, he said i cant use iFrames but have to use AJAX instead. The code i'm looking for would be one to open a page into a specified <DIV> element without refreshing my entire page. I would hereby like to request a code for this from one of you more experienced coders :)

Thanks at forehand

I hope you are not holding your breath as you wait, since homework help is generally only given to those who demonstrate some effort.

These are not "code by request" forums. Post your code and state what problems you are having or ask specific questions about concepts you do not understand.

^ What they said.

Hmm,i dont want to give you the impression that i'm asking you people to do my homework, my problem is that i can't script in AJAX yet, and i'm just requesting a simple script for my problem (or a link to one). The site is supposed to be in XHTML and JavaScript,what i do know, i just wanted something extra for it and hoped i could get some help here.

There are some fine Ajax/Javascript libraries that exists:

http://jquery.com/
http://www.prototypejs.org

Are two very prominent ones, but there are countless others.
They all have Ajax examples and simplify working with the DOM etc.

This will help you out and get your things done in no time! Try these L I N K!

Thank you very much to you both,i will try it out :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.