Welcome Guest, Not a member yet? Register   Sign In
Can't post with JQuery
#16

[eluser]Razican[/eluser]
[quote author="pickupman" date="1303840023"]In Firebug, click on the Console tab. This is probably where you are seeing your log messages already. When the blur or keyup is fired, you should see in your console some like
+POST '/yoururl/controller/method/' 200 OK

If you click on the + beside POST you should be able to see what variables where posted, and what was returned by the server under the Response tab.

Your code looks correct.

Try placing an alert before your $.post to see if the event is being fired. Silly to ask, but are you linking to the proper jQuery source?[/quote]

I have tried to do debuging in Firebug and I get this:

Code:
http://127.0.0.1/path/to/registration/request 500 Internal Server Error 41ms

POST:
Code:
username=+

Reply:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
&lt;html &gt;
&lt;head&gt;
&lt;title&gt;Error&lt;/title&gt;
&lt;meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /&gt;
&lt;style type="text/css"&gt;

::selection{ background-color: #E13300; color: white; }
::moz-selection{ background-color: #E13300; color: white; }
::webkit-selection{ background-color: #E13300; color: white; }

body {
    background-color: #fff;
    font: 13px/20px normal Helvetica, Arial, sans-serif;
    color: #4F5155;
}

a {
    color: #003399;
    background-color: transparent;
    font-weight: normal;
}

h1 {
    color: #444;
    background-color: transparent;
    border-bottom: 1px solid #D0D0D0;
    font-size: 19px;
    font-weight: normal;
    margin: 0 0 14px 0;
    padding: 14px 15px 10px 15px;
}

code {
    font-family: Consolas, Monaco, Courier New, Courier, monospace;
    font-size: 12px;
    background-color: #f9f9f9;
    border: 1px solid #D0D0D0;
    color: #002166;
    display: block;
    margin: 14px 0 14px 0;
    padding: 12px 10px 12px 10px;
}

#container {
    clear: both;
    margin: 10px;
    border: 1px solid #D0D0D0;
    -webkit-box-shadow: 0 0 8px #D0D0D0;
}

p {
    margin: 12px 15px 12px 15px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    <div id="container">
        <h1>An Error Was Encountered</h1>
        <p>The action you have requested is not allowed.</p>    </div>
&lt;/body&gt;
&lt;/html&gt;

I have the CRSF cookie in my browser. But when I put in the config file $config['csrf_protection'] = FALSE; It works! why?


Messages In This Thread
Can't post with JQuery - by El Forum - 04-24-2011, 01:37 PM
Can't post with JQuery - by El Forum - 04-25-2011, 09:37 PM
Can't post with JQuery - by El Forum - 04-26-2011, 03:47 AM
Can't post with JQuery - by El Forum - 04-26-2011, 06:47 AM
Can't post with JQuery - by El Forum - 04-26-2011, 07:43 AM
Can't post with JQuery - by El Forum - 04-26-2011, 07:48 AM
Can't post with JQuery - by El Forum - 04-27-2011, 08:25 AM
Can't post with JQuery - by El Forum - 04-27-2011, 02:00 PM
Can't post with JQuery - by El Forum - 04-28-2011, 12:04 AM
Can't post with JQuery - by El Forum - 04-28-2011, 03:31 AM
Can't post with JQuery - by El Forum - 04-28-2011, 06:30 AM
Can't post with JQuery - by El Forum - 04-28-2011, 06:45 AM
Can't post with JQuery - by El Forum - 04-28-2011, 06:59 AM
Can't post with JQuery - by El Forum - 04-28-2011, 07:39 AM
Can't post with JQuery - by El Forum - 04-28-2011, 12:56 PM
Can't post with JQuery - by El Forum - 04-30-2011, 05:07 AM
Can't post with JQuery - by El Forum - 04-30-2011, 12:37 PM
Can't post with JQuery - by El Forum - 04-30-2011, 01:37 PM
Can't post with JQuery - by El Forum - 04-30-2011, 03:04 PM
Can't post with JQuery - by El Forum - 05-01-2011, 03:25 AM
Can't post with JQuery - by El Forum - 05-01-2011, 04:25 AM
Can't post with JQuery - by El Forum - 05-01-2011, 04:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB