Sending feedback with javascript -- IP Control
<p>I have a feedback area in my site and works with javascript.What i want is that users can send feedback only one time per day. In order to do that, i will create a key and take users ip and send them into memcache.However, i stuck in feedback send area.</p>

<p>I have a view file and view calls sendFeedback js.</p>

<p>This is the sendFeedback js.</p>

<pre><code>function sendFeedback()
{
    if ($('#feedback_textarea').val() == '')
    {
        $('#feedback_submit_warning').show();
        return false;
    }
    else
    {
        var values = $('.feedback-form').serialize();
        var url = window.location;

        $('#feedback_submit_warning').hide();
        $('#feedback-send-bt').hide();
        $('#feedback_overlay').css({'height':'65px'});
        $('#feedback_body').css({'background':'transparent', 'padding-top':'0px', 'text-align':'center', 'line-height':'65px', 'font-size':'24px'});
        $('#feedback_body').html('&lt;p&gt;Lütfen bekleyin...&lt;/p&gt;');

        $.ajax(
        {
            type: "POST",
            url: '/json/common/sendFeedbackAjax',
            data: "action=send&amp;url="+url+"&amp;"+values,
            success: function(response)
            {
                $('#feedback_body').html('&lt;p&gt;Görüşleriniz alınmıştır, teşekkür ederiz.&lt;/p&gt;');

                setTimeout(function () {
                    hideFeedback();
                },2000);
            }
        });
    }
}
</code></pre>

<p>If user send feedback , system must return and id and users ip. then i want to send these key and ip to my controller. How can i do that ? </p>
