Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-15-2009, 04:09 AM   PM User | #1
Sephr
New Coder

 
Join Date: Dec 2008
Posts: 21
Thanks: 0
Thanked 3 Times in 3 Posts
Sephr is an unknown quantity at this point
IE8 Beta 2 Message Event Problem

Whenever I try to access event.data, event.origin, ect. when using IE8 beta 2 from a message event, it says "Error: 'data' is null or not an object". msdn says that IE 8 beta 2 supports the standard HTML5 message events and I remember some time ago I was able to make IE alert the message event data.

PHP Code:
function handleMessage(e) {
    
alert(e.data);
}
window.onmessage handleMessage;
window.postMessage('TEST','*'); 
Also uploaded here so you can test it out yourself.

This is the ONLY thing stopping me from adding support for IE8 beta 2 to my jData host script.

Edit: This is the msdn page: http://msdn.microsoft.com/en-us/libr...15(VS.85).aspx

Update: I just noticed it works when I use attachEvent for some reason.

Last edited by Sephr; 01-15-2009 at 04:26 AM.. Reason: found workaround
Sephr is offline   Reply With Quote
Old 01-15-2009, 01:42 PM   PM User | #2
rnd me
Senior Coder

 
rnd me's Avatar
 
Join Date: Jun 2007
Location: Urbana
Posts: 3,452
Thanks: 9
Thanked 466 Times in 450 Posts
rnd me is a jewel in the roughrnd me is a jewel in the roughrnd me is a jewel in the rough
what is jData host, and what does it do?
__________________
my site (updated 5/13)
STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.8% IE9:11.4% IE10:6.5%
rnd me is offline   Reply With Quote
Reply

Bookmarks

Tags
html5, ie8, postmessage

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:48 AM.


Advertisement
Log in to turn off these ads.