This is a migrated thread and some comments may be shown as answers.

HtmlPlaceHolder +out of browser +script bundling

2 Answers 65 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
leblanc
Top achievements
Rank 1
leblanc asked on 15 Jan 2014, 07:57 AM
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 Answers, 1 is accepted

Sort by
0
leblanc
Top achievements
Rank 1
answered on 15 Jan 2014, 08:08 AM
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?

0
Zarko
Telerik team
answered on 17 Jan 2014, 11:24 AM
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 >>
Tags
HTMLPlaceHolder
Asked by
leblanc
Top achievements
Rank 1
Answers by
leblanc
Top achievements
Rank 1
Zarko
Telerik team
Share this question
or