I am trying to make an ajax call by passing named parameters:
$this->Js->link('Save',array(
'controller' => 'screens',
'action' => 'create') + $this->params['named'],
array( 'update' => '#results'));
However the named parameters passed in above call are incorrect (though they are correct when passed without ajax):
Example results:
Without Ajax: http://paste.ubuntu.com/546338/
With Ajax: http://paste.ubuntu.com/546337/
Escaping the Ajax URL might help, but how can I do that (or some other way) ?
P.S. : the problem persists only with the Js Helper, if I use the Ajax helper then the data passes correctly. However, the Ajax helper is depreciated and is not recommended.
What Leo means is this: