Use DDE to control Bloomberg via Javascript - Object doesn't support method
===

I'm following the steps from http://stackoverflow.com/questions/3644304/how-to-open-a-specific-bloomberg-terminal-page-programmatically to control a Bloomberg terminal window via DDE (ActiveX/Javascript):


    xlApp = new ActiveXObject("Excel.Application");
    var app = xlApp.DDEInititate("winblp", "bbk");
    xlApp.DDEExecute(app,"<blp-1><home>MSFT US<EQUITY><GO>DES<GO>");
    xlApp.DDETerminate(app);
    app = "";
    xlApp.Quit();

However the callt o DDEInitiate is failing (IE8) with 'Object doesn't support this property or method' -- I can see the xlApp has been defined and an equivalent call in Visual Basic seems to work just fine:

    ch = DDEInitiate("winblp", "bbk")

Can anyone determine why the javascript isn't working?

Thank you


Ryan


