开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜