connection failed:Invalid payload for json - basic chat app failing in ie 8

25 views
Skip to first unread message

kevin

unread,
Feb 15, 2012, 9:10:32 PM2/15/12
to hoo...@googlegroups.com
i am using latest hookbox from here: https://github.com/hookbox/hookbox version ad280e86891cf3416e1db1716e6de3d613aee209

i have a very basic chat app: http://pastie.org/3391555
it works great in every browser [firefox, chrome,chromium, opera] except Internet Explorer 8.


The error message I get is this:

connection failed:Invalid payload for json


Can you please tell me how to fix this?
thanks!

Dax

unread,
Feb 16, 2012, 11:52:10 AM2/16/12
to Hookbox User Group
Hi Kevin,

The issue you encountered is because JSON.stringify in IE8 has a bug
[2]
Can you check if commit 1bb121773a11d2f2419e460d7c128948abc170ed [1]
fixes your issue?
Will put them to the hookbox repository once its ok.

[1] https://github.com/raikage/hookbox.git
[2] http://blogs.msdn.com/b/jscript/archive/2009/06/23/serializing-the-value-of-empty-dom-elements-using-native-json-in-ie8.aspx

Regards,
Dax

kevin

unread,
Feb 16, 2012, 1:24:04 PM2/16/12
to hoo...@googlegroups.com
Dax,
i just tried with your commit and it fixes the problem!! thanks so much.

http://img821.imageshack.us/img821/360/screenshot20120216at101.png

can confirm that it works both in ie8 and ie7
hookbox rocks!
thanks

kevin

unread,
Feb 16, 2012, 1:26:07 PM2/16/12
to hoo...@googlegroups.com
Dax,
i just tried with your commit and it fixes the problem!! thanks so much.


can confirm that it works both in ie8 and ie7
hookbox rocks!
thanks

On Thursday, February 16, 2012 8:52:10 AM UTC-8, Dax wrote:

Raikage

unread,
Feb 16, 2012, 11:06:10 PM2/16/12
to hoo...@googlegroups.com
Hi Kevin,

Glad it worked. Merged the changes to https://github.com/hookbox/hookbox
If you find other issues, let me know.

Regards,
Dax

Reply all
Reply to author
Forward
0 new messages