On my page I have four div tag that get populated by ajax calls
on a window.onload event
...
	
AjaxContrl.getContent(''div1'',''pb1.php'',''post'','''',''false'');
	
AjaxContrl.getContent(''div2'',''pb2.php'',''post'','''',''false'');
	
AjaxContrl.getContent(''div3'',''pb3.php'',''post'','''',''false'');
	
AjaxContrl.getContent(''div4'',''pb4.php'',''post'','''',''false'');
...
...
getContent: function(localDiv, localUrl, localMethod, localPars,
localEval)
	{
		new Ajax.Updater(
			localDiv,
			localUrl,
			{
				method: localMethod,
				parameters: localPars,
				evalScripts:localEval,
				onSuccess:this.AlertSuccess.bind(this),
				onFailure:this.AlertFailure.bind(this)
			});
		// Make sure the div is displayed.
		$(localDiv).style.display=''block'';
	},
 Each loads as its called, the way I coded it. The problem is say the
content on pb2.php is large it will not let pb3.php and pb4.php load
until it is finished. I want the code to fire and load the pages in
any particular order just to load and to display the page when it is
ready.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---