| | |
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
![]() |
•
•
Join Date: Jan 2009
Posts: 2
Reputation:
Solved Threads: 0
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())
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 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)
<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>
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.
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Anaa framework problem
- Next Thread: Got a funny bit of javascript
| Thread Tools | Search this Thread |
ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug captchaformproblem checkbox close codes createrange() css cursor debugger dependent disablefirebug dom download dropdown editor element engine enter error events explorer ext file firefox form forms frameworks getselection google gwt gxt hiddenvalue highlightedword hint html htmlform ie7 ie8 iframe internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jsp jump listbox maps masterpage math media menu microsoft mp4 object onmouseoutdivproblem onreadystatechange paypal pdf php player position problem programming progressbar prototype redirect regex runtime safari scale scriptlets search security select size software sql text textarea unicode w3c window windowofwords windowsxp wysiwyg \n





