Timeline for My AJAX API plugin isn't working
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 11, 2013 at 5:56 | comment | added | Gavin Mannion | more bad syntax.. thanks for the help it's working now :) | |
Jan 11, 2013 at 5:56 | vote | accept | Gavin Mannion | ||
Jan 11, 2013 at 5:54 | comment | added | Gavin Mannion | Okay now that my syntax is correct I can see the post to admin-ajax.php and this is the response <b>Warning</b>: call_user_func_array() expects parameter 1 to be a valid callback, function 'LogHit_callback' not found or invalid function name in <b>/usr/www/users/rfdsff/wp-includes/plugin.php</b> on line <b>406</b><br /> | |
Jan 11, 2013 at 5:35 | comment | added | Mateusz Hajdziony |
But then you haven't included the closing bracket after alert( r ); , that's why you have a syntax error.
|
|
Jan 11, 2013 at 5:26 | comment | added | Gavin Mannion | Sorry bad editing on my side, the comma existed in the actual code | |
Jan 11, 2013 at 5:21 | comment | added | Mateusz Hajdziony | There should be a comma after <code>data</code> and before <code>function</code> in your JavaScript. Check my example. Just copy the code from my example, you have syntax errors all over the place. | |
Jan 11, 2013 at 5:10 | comment | added | Gavin Mannion | Just saw an error now "Uncaught SyntaxError: Unexpected token ) " after my return | |
Jan 11, 2013 at 5:05 | comment | added | Gavin Mannion | I can't find the ajax request using Chromes developer tools.. what should I be looking for? I changed the alert/return issue and updated the main post but still nothing | |
Jan 11, 2013 at 4:50 | history | answered | Mateusz Hajdziony | CC BY-SA 3.0 |