prototype successive ajax.updater requests fail on Windows only

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved
Reply

Join Date: Jan 2009
Posts: 2
Reputation: pixclinic is an unknown quantity at this point 
Solved Threads: 0
pixclinic pixclinic is offline Offline
Newbie Poster

prototype successive ajax.updater requests fail on Windows only

 
0
  #1
Jan 3rd, 2009
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())



JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <script type="text/javascript">
  2. function chargeAll() {
  3. chargeOrder('56423');
  4. chargeOrder('56425');
  5. chargeOrder('56426');
  6. ...
  7. ... other orders here ...
  8. ...
  9. chargeOrder('56435');
  10. chargeOrder('56439');
  11. }
  12.  
  13. function chargeOrder(order_id) {
  14. $thecontainer = 'container_'+ order_id;
  15. var pars = 'oID='+ order_id;
  16. new Ajax.Updater(
  17. 'message_'+order_id,
  18. 'https://www.thesite.com/charge_ajax.php', {
  19. method: 'post',
  20. parameters: pars
  21. });
  22.  
  23. }
  24. </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!
Last edited by pixclinic; Jan 3rd, 2009 at 2:43 pm.
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 2
Reputation: pixclinic is an unknown quantity at this point 
Solved Threads: 0
pixclinic pixclinic is offline Offline
Newbie Poster

Re: prototype successive ajax.updater requests fail on Windows only

 
0
  #2
Jan 3rd, 2009
I just found out that the PC used to test this did accessed this from an http instaed of https. Never mind! works fine!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC