PDA

View Full Version : Asynchronous load of Dynamic Ajax Content



CzechBoy
12-20-2006, 11:51 AM
1) Script Title:
Dynamic Ajax Content
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
3) Describe problem:
It happends now that some pages are waiting for the others, even when there is no connection between those pages. So I search for the best loading of pages. Now I use:

<body onload="ajaxpage('hledej', 'hledej_div');ajaxpage('zalozky', 'zalozky_div');ajaxpage('cal', 'cal_div');ajaxpage('note', 'note_div');ajaxpage('rss/?1', 'right');ajaxpage('rss/?2', 'rss2_div');<?=$body?>">

to load pages. Is it correct? Or shall I load page like this?:

<div id="hledej_div"></div>
<script type="text/javascript">
ajaxpage('hledej', 'hledej_div');
</script>

Or any better idea how to load many pages so it will act as much asynchronous as possible?

Thanks in advance