HtmlPlaceHolder +out of browser +script bundling

3 posts, 0 answers
  1. leblanc
    leblanc avatar
    56 posts
    Member since:
    Aug 2010

    Posted 15 Jan 2014 Link to this post

    We have a RadWindow hosting a RadHtmlPlaceholder for the login screen:
    https://gg.improvingrestaurants.com/

    if you go the website and review the script errors you will notice there are None.


    If you install locally the out of browser version and open the app - it shows script errors.
    This happened once we migrated to script bundling.

    Why does it have a problem out of browser but not when running in the browser?  What is the implementation difference of
    HtmlPlaceHolder?

    Thanks,

    lm




  2. leblanc
    leblanc avatar
    56 posts
    Member since:
    Aug 2010

    Posted 15 Jan 2014 Link to this post

    It looks like it is the WebBrowser using IE7 .

    http://stackoverflow.com/questions/5529615/webbrowser-control-and-javascript-errors

    Is there anyway to suppress the error or workaround recommended?

  3. DevCraft banner
  4. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 17 Jan 2014 Link to this post

    Hi leblanc,
    The implementation difference in the RadHtmlPlaceholder is that in out-of-browser applications it uses the Microsoft WebBrowser control and in browser it uses an IFrame. As far as I understand the issue is that by default the WebBrowser renders pages in IE7 standards mode. The easiest fix/workaround that I found is to add an "x-ua-compatible" attribute to your page:
    <meta http-equiv="x-ua-compatible" content="Edge" />
    or
    <meta http-equiv="x-ua-compatible" content="IE-9" />
    You can read more about this attributes here, here and here.
    I hope I was able to help you and if you have more questions please feel free to ask.

    Regards,
    Zarko
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top