js does not work - Controller and js file
<p>I try to solve a problem , but it does not work. In controller,</p>

<p>I have this code,</p>

<pre><code>public function sendFeedbackAjax() {
        $feedback = $this-&gt;params('feedback_textarea');
        $ip = $_SERVER['REMOTE_ADDR'];
        $to = 'sinemalar@nokta.com';
        $subject = 'Sinemalar Görüş Bildirimi';
        $message = 'URL: ' . $this-&gt;params('url') . '&lt;br/&gt;&lt;br/&gt;E-posta adresi: ' . $this-&gt;params('feedback_email') . '&lt;br/&gt;&lt;br/&gt;' . $feedback;
        $headers = 'MIME-Version: 1.0' . "\r\n" .
                'Content-Type: text/html; charset="UTF-8"' . "\r\n" .
                'From: noreply@sinemalar.com' . "\r\n" .
                'Reply-To: noreply@sinemalar.com' . "\r\n";

        $uid = $_SERVER['REMOTE_ADDR'] . 20;       
        $user = NCore::cache()-&gt;remoteCache-&gt;get($uid);



        if ($user != null) {
               $this-&gt;sendJSONResponse('Error');
        } else {
         NCore::cache()-&gt;remoteCache-&gt;set($uid, $ip, 60 * 60 * 24);
             mail($to, $subject, $message, $headers);
            $this-&gt;sendJSONResponse('OK');

        }
    }
</code></pre>

<p>It checks cache server; if there is key there, it sends   <code>$this-&gt;sendJSONResponse('Error');</code> else it sends   <code>$this-&gt;sendJSONResponse('OK');</code></p>

<p>but in JS side I try this:</p>

<pre><code>$.ajax(
        {
            type: "POST",
            url: '/json/common/sendFeedbackAjax',
            data: "action=send&amp;url="+url+"&amp;"+values,
            success: function(response)
            {
                if(response == 'OK')
                {

                    $('#feedback_body').html('&lt;p&gt;Görüşleriniz alınmıştır, teşekkür ederiz.&lt;/p&gt;');

                    setTimeout(function () {
                        hideFeedback();
                    },2000);
                }

                else
                {
                    $('#feedback_body').html('&lt;p&gt;Error&lt;/p&gt;');
                }




        }
</code></pre>

<p>but it does not work. What might be the reason? </p>
