Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2008
    Posts
    21
    Thanks
    0
    Thanked 3 Times in 3 Posts

    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

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,349
    Thanks
    11
    Thanked 589 Times in 570 Posts
    what is jData host, and what does it do?
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •