I'm having a weird issue using jQuery's $.ajax function. When I pass 5 pieces of data, either by GET or POST, the script runs as I would like. However, when I have any more than 5, the script does not run. Does this have something to do with the amount of data that can get passed through an AJAX request?
Here's the relevant code...(the alerts are just to test if it's working)
When I run this, it works fine. (I get the "running ajax function" alert once for each instance of .barcrawl-stop-id there is, and then I get an alert with the returned AJAX data).
alert("running ajax function");
However, when I run it with another piece of data, for example, "stop4: stop4," I only see "running ajax function" once, and the script fails. Again, what could be causing this?