Javascript error in WP7 webBrowser control!

Discussion in 'Windows Phone 7' started by Stiekel, Jun 30, 2011.

  1. Stiekel

    Stiekel New Member

    Joined:
    Jun 30, 2011
    Messages:
    1
    Likes Received:
    0
    I need to develop a WP7 app, it has a Microsoft.Phone.Controls.WebBrowser control, and i set it's loaded event as:
    wb.IsScriptEnabled=true;
    string game_address ="http://192.168.1.26/start.html";
    wb
    .Source=newUri(game_address);

    start.html is a HTML5 app, and when i run this app in the Emulator, this app is not run as well, but it's output any warming.
    But I open this HTML5 app in the IE9 of Emulaor, it's work!
    I develop a C# desktop application as a test. with the same webbrowser control and event code, it's give a javascript error alert "expected identifier, string or number" ! i set wb.ScriptErrorsSuppressed = true, the error alert is not appear, but the HTML5 app still can't work!
    And i can open this HTML5 app current in my windows IE9 and other browsers like chrome and FF.

Share This Page