我在ie7浏览器中遇到google javascript channel api的问题。它没有触发onOpen方法。我正在我的网页上加载talkgadget channel.js文件。
以下是代码:
// Not firing in production
onOpened = function(){ }
onMessage = function(){ }
// Create google channel
var cd_google_channel = new goog.appengine.Channel(channelId);
Channel_Socket = cd_google_channel.open();
Channel_Socket.onopen = onOpened;
Channel_Socket.onmessage = onMessage;
Channel_Socket.onerror = onError;
Channel_Socket.onclose = onClose;
请就此提出建议。