Ajax post not working
===

I am trying to post a form via ajax. Its giving me "405 Method Not Allowed" error. The same html file works if i put the url in the action part of html form and submit it manually on a button click(so its not a csrf issue..rite?). 

what could be the problem?