Elementary introduction to using jQuery ajax and the yii framework

Comparing #3 with #5

Content

[...]
~~~
[javascript]
ajaxCall = function(a){
jQuery.ajax({
// The url must be appropriate for your configuration;
// this works with the default confi
g of 1.1.11
url: 'index.php?r=app/ajaxProcessor',
type: "POST",
[...]
* 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:
[...]