Hi everyone

I having some cross browser issues with prototype's ajax.Updater

I have a js function call chargeAll(), that calls the same chargeOrder() function using the ajax.Updater several times, with different order IDs.

chargeAll is built dynamically, retrieving all the order IDs from the db.

Here is the javascript code for these two functions (I use this to process credit cards in batch from a single page that displays rows of orders and a button triggers chargeAll, which calls all the chargeOrder())

<script type="text/javascript">
function chargeAll() {
chargeOrder('56423');
chargeOrder('56425');
chargeOrder('56426');
...
... other orders here ...
...
chargeOrder('56435');
chargeOrder('56439');
}

function chargeOrder(order_id) {
		$thecontainer = 'container_'+ order_id;
		var pars = 'oID='+ order_id;
		new Ajax.Updater(
		'message_'+order_id,
		'https://www.thesite.com/charge_ajax.php', {
		method: 'post',
		parameters: pars
});
		
}
</script>

This works perfectly on Mac (I see all the successive responses coming back in all my lines containers - approved or declined - , but not on Win: I just see my spinning gif, it's stuck.

Obviouslsy, prototype doesn't handle simultaneous calls very well for Win platforms

Any clue? Let me know your thoughts about this

Thanks!

I just found out that the PC used to test this did accessed this from an http instaed of https. Never mind! works fine!

This question has already been answered. Start a new discussion instead.