js:
function _search() { $.ajax({ type: 'GET', url: 'frontend.views.get_content', dataType: 'json', success: function (json) { alert('success') }, error: function () { alert('error') } }); } $('.btn').click(_search); html:
<button type="submit" class="btn">Search</button> In general, trying to make an ajax request, I get nothing - no error, no successful completion, I watch the fire bug - I see the same thing.
The question is how to track down the error , and what methods of control / debuggers can you recommend?
return false;Read - romeo