Comparing
#4 with
#5
Content
[...]
The URL of the AJAX request is relative: "index.php?r=app/ajaxProcessor". It makes 2 assumptions:
* The page that initiates the call has an URL ending with "index.php" or its directory.
* Yii reads the route (controller and action) through the GET parameter "r".
With a recent version of Yii, both assumptions arcan be wrong
with the default configurdepending on the configuration of the application.
### The solutions
**You can't guess the webservice URL in pure Javascript!** This URL will depend on the configuration of the application. So there are at least 2 solutions that mix in PHP and JS:[...]