Question

when I try to use the controller/action in the jquery function for an url . I have a

NetworkError: 404 Not Found

displayed in firebug . this how I am calling in my jquery function .

 <?php $Url =Router::url(array('controller'=>'SessionModelsController','action'=>'transaction_ticker'),true); ?>
 function tick4(){
         $.ajax({
            type: "POST",
          url: '<?php echo $Url; ?>', ...

I have tried this too and it is the same problem .

>  var myBaseUrl = '<?php echo $this->Html->url('/'); ?>';
> 
function tick4(){
    $.ajax({
        type: "POST",
        url: myBaseUrl + "SessionModelsController/transaction_ticker",

thank you.

EDIT : the problem is resolved when I Have deleted

Controller

from

SessionModelsController

. and have used SessionModels

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top