PDA

View Full Version : Several Dynamic-Ajax-Content-Areas on 1 page



Stepan
01-05-2007, 06:48 PM
1) Script Title: Dynamic Ajax Content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

3) Describe problem: I have 3 DAC areas on 1 page. Is it possible to make all of them show own page right after loading? I mean without clicking a link?

This works only for one of them (changing variables here gives no result) -

<script type="text/javascript">
ajaxpage('test.htm', 'rightcolumn') //load "test.htm" into "rightcolumn" DIV
</script>

Stepan
01-05-2007, 07:06 PM
The problem was solved easily :) by just adding 2 more lines:

<script type="text/javascript">
ajaxpage('test.htm', 'rightcolumn')
ajaxpage('test2.htm', 'rightcolumn2')
ajaxpage('test3.htm', 'rightcolumn3')
</script>