I would like to make multiple Ajax calls from my index.html.
One call comes from $(document).ready() function. Second one is invoked from .on("click") event outside the $(document).ready() loop.
Unfortunately, the second call seemingly takes success callback from the first call. I tested this by calling a.php in first call and b.php in second call. Both calls end up in a.php, and both have identical parameters. Is there a way to make this work in Craft?