Using an Ajax call in my javascript. I'm not 100% sure if it would tie in or not but thought I would post. When I put in a print of the object.status it gives me 8. I tried redirecting the STDOUT of my server-side script I call and the contents print out perfect. This Ajax call does work, however, if the amount of data being sent to the server is smaller. If I select 5-8 items or so on a page and send to the server in an Ajax call it works but 12 or more causes the status to turn to 8 (readyState is 4). Seeing that the error mentioned here was 8 and linked to memory limitation I thought this may be the cause. Any further thoughts? Thanks for the reply as well.
12 or more is referring to the number of "items" that are being added to a "shopping cart". The exact size (amount) of data I'm not exactly sure the precise measurement on the pass and on the fail. I tried it on 2 more systems and the exact search results I try to add varies amongst machines BUT the number remains consistent on what can and cannot be added on each machine (i.e. allows 8 on one and fails on 9 always on machine 1, allows 12 and fails on 13 on another always, etc..,). The user is allowed to select radio buttons on what they want to add to the cart and THEN click a button to add the item (each item has hidden field values tied to them - script needs additional info per item). Where does one increase the size for this or can you? This obviously would be a poor solution - i.e. asking users to fix such a setting - but could you suggest an alternative approach? Thanks again for the responses.
I know what's being posted, just have to throw in a dialog to grab the content but since the amount of data varies from machine to machine would posting the length of the content help in diagnosing here? It doesn't just vary a little on each computer and between each computer. The amount of data able to be sent on each computer (without error) is about the same (on each attempt) but varies more dramatically between computers. Since it appears to be a winsock error where would I increase the memory allocated for that? What would be the best approach to avoid the error? I was thinking along the lines of breaking the one time AJAX call to add all items into a loop through the items being added instead, cut down on the amount of data sent on each call. Thanks again.
An existing Perl script is what's called. If I redirect the output to a file on successful runs and on error runs the content that should be passed back all looks pretty much the same. The only information passed back is xml content that has 2 tags - how many items on cart and the monetary value of what's on the cart.