locked
JavaScript error invalid character on MFC DHtmldialog RRS feed

  • Question

  • Dear all,


    I have a simple MFC dhtml dialog program which using DHtmldialog implication.





    Following is the html source which just use res:\\ protocol to include javascript to show alert message.

    ===================Dialog.html=======================================
    <html>
    
    <head>
    <script src="res://Res.dll/JS/#101" type="text/javascript"></script>
    </head>
    
    <body>DHtmldialog Hello World!!</body>
    
    </html>
    
    =================================================================






    Following is the javascript source code in resource dll.
    ===================Dialog.js========================================
    alert( 'Hello World' );
    
    =================================================================









    It can work fine on XP/Vista but canot work well on Windows 7(32bit v7077) when resource dll path with Chinese/Japan character.

    Ths issue is popup IE javascript error message which like this.

    ===================IE Javascript error message============================
    Line: 1
    Char:1
    Error: Invalid Character
    Code: 0
    URL: res://Res.dll/JS/#101
    
    =================================================================


    It means there will be no problem when resource dll path is "D:\resource\", but it cannot work on "D:\資源\" in Windows7







    I have searched internet and find the solution(setting Local Zone) of similiar problem like in IE7 on WinXP, but it cannnot fix this issue.

    The MFC version is MFC v9.



    Does anyone can provide tip or idea?

    Thanks for you help in advance.
    • Moved by nobugz Saturday, April 25, 2009 3:27 PM beta software (From:Visual C++ General)
    Saturday, April 25, 2009 2:55 PM

Answers

  • Hello Ethan,

     

    Thank you for your post!  I would suggest posting your question in the 'Microsoft Developer Network > .NET Development Forums > JScript for the .NET Framework ' located here:  http://social.msdn.microsoft.com/Forums/en-US/netfxjscript/threads


    Have a great day!

    Thanks!


    SachinW Tier 2 Application Support Server and Tools Online Engineering Live Services Team
    • Proposed as answer by SachinW Monday, April 27, 2009 5:04 AM
    • Marked as answer by SachinW Wednesday, May 20, 2009 9:04 AM
    Monday, April 27, 2009 5:04 AM