PDA

View Full Version : newb Q: change content of a page with a link and a .js


lawrie
01-11-2006, 02:27 PM
hey all

i'm not really up on my javascript coding, and i was wondering if someone might be able to provide a solution to this.

down one side of the page, i have a list of links. on the other side of the page, i have a blank space that i intend to fill with content. all i want to be able to do is to click on the link, and the content will pop into place.

i desperately don't want to use iframes, and i'm sure i've seen something similar done just with js.

i've previously written (very simple) javascript files where all the content was written into an array, and then a document.write(array[num]) was called, where num is random, and then i simply insert the javascript file where the content is needed.

any help would be greatly appreciated.

_Aerospace_Eng_
01-11-2006, 02:40 PM
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

lawrie
01-11-2006, 06:41 PM
thanks for that.