reading a post from another site with a html page
I have a static html page with jQuery that receives a post from another website. I need to be able to read the information in the post and store the data in a cookie, but the page is a static html page 开发者_C百科and has to stay that way.
Anyone have any ideas?
If you are receiving the information from the other website via an $.ajax() call in JSON or XML format then you can use the jQuery Cookie plugin (https://github.com/carhartl/jquery-cookie) to take the returned information and store it in a cookie.
Hope this helps.
精彩评论