DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   prototype successive ajax.updater requests fail on Windows only (http://www.daniweb.com/forums/thread165850.html)

pixclinic Jan 3rd, 2009 2:39 pm
prototype successive ajax.updater requests fail on Windows only
 
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!

pixclinic Jan 3rd, 2009 3:10 pm
Re: prototype successive ajax.updater requests fail on Windows only
 
I just found out that the PC used to test this did accessed this from an http instaed of https. Never mind! works fine!


All times are GMT -4. The time now is 8:36 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC