how about this?
var myFiles = new Array(
"/foo1.html'',
"/foo2.html"
);
// create some container
getElementsByTagName('body')[0].appendChild(Builder.node('div',{id:'ajaxTest'}));
// go thru our array
for(var fileNum = 0; fileNum < myFiles.length; fileNum++) {
// make up a receiver div
$('ajaxTest').appendChild(Builder.node('div', {id:'myDiv'+fileNum,className:'ajaxResult'));
// do the call and put content in there
new Ajax.Updater('myDiv'+fileNum, myFiles[fileNum] , {
asynchronous: true, evalScripts: false
});
}
works perfect for me.. I just wrote this right in this little mail-window, so the Builder stuff is untested. I hope this approach works for you.
regards, Kjell
On 6/20/06, Sam <[EMAIL PROTECTED]> wrote:
var call1 = new Ajax.Updater(
'id1',
'/foo1.html',
{
method: 'post'
});
var call2 = new Ajax.Updater(
'id2',
'/foo2.html',
{
method: 'post'
});
Looks like there's no parameters. Would method: 'get' perform any better?
3 seconds? Is there a network problem or a large chunk of data?
Sam
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
