小编zmo*_*eca的帖子

从子域读取Javascript Cookie

在子域名 - a.test.com上 - 我正在尝试读取.test.com上设置的cookie.如果我在JS中使用document.cookie,我所得到的只是来自a.test.com的cookie.从.test.com读取cookie的语法或路由是什么?

我很确定你可以阅读 - 从子域到fqdn - 但你不能读下来 - fqdn到子域.

谢谢!

javascript cookies

12
推荐指数
1
解决办法
1万
查看次数

原型1.6.1的Internet Explorer 7和8问题 - 由于错误c00ce56e无法完成操作

我不知所措.我发现了一些提到IE需要指定响应类型的东西,我将其更改为text/html,这对我没有任何帮助.

有错误:

由于错误c00ce56e无法完成操作.prototype.js,第1564行

指向prototype.js:

if((readyState > 2 && !Prototype.Browser.IE) || readyState == 4) {
  this.status       = this.getStatus();
  this.statusText   = this.getStatusText();
  this.responseText = String.interpret(transport.responseText); <!--- ERROR is here --->
  this.headerJSON   = this._getHeaderJSON();
}
Run Code Online (Sandbox Code Playgroud)

从href中的onClick()调用的函数:

function f(op, cl) {
    if(op && cl) {
            new Ajax.Updater('favorites-' + cl, '/fav.php',
            {
                    onComplete: function(transport) {
                            if(transport.responseText == 1 && cl) $('favorites-' + cl).remove();
                            else return transport.responseText;
                            },
                    onException: function(r, e) {
                                    alert('Updater ' + e);
                            },
                    method: 'get',
                    parameters: { cl: cl, op: op }, …
Run Code Online (Sandbox Code Playgroud)

internet-explorer prototypejs

1
推荐指数
1
解决办法
2847
查看次数