ajax can be set to post or get method