Ajax: post data when click on window actions in home page