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

javascript errors on Bing.com (and other web sites)

3 Answers 76 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
arthurd
Top achievements
Rank 1
arthurd asked on 06 Aug 2010, 09:16 PM
I am trying a simple example of loading http://bing.com in the html placeholder (which is inside a tile view item). I am using Q2 2010 release.

I am always getting error from the bing javascript in function sj_be(_d, "keydown".......

At first I thought if was a generic problem with Bing in iframe but I tried it using the iframe demo at http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe and it worked without error messages.

I get the IE dialog about debugging and if I ignore the error, everything seems to work correctly from that point on.

I have also had javascript errors on Google but they are not as easily reproducable as on bing. I can use other URLs just fine. Seems to be related to certain site javascript incompatibility.

Any ideas?

3 Answers, 1 is accepted

Sort by
0
arthurd
Top achievements
Rank 1
answered on 07 Aug 2010, 01:07 AM
I forgot another detail that might be relevant.

The html placeholder is in a tile view item but I am using a transition to swap in/out the pages of tile view.

I will try to simplify my test by removing use of transition.

If that works then I will need a way to monitor when the transition is complete and only set the Url in my view model (bound to the SourceUrl) when the transition is complete.
0
arthurd
Top achievements
Rank 1
answered on 07 Aug 2010, 01:44 PM
To simplify my test (to eliminate tile view item or transition as problem area), I built a new Silveright 4 project with Telerik Q2 2010. I still get javascript errors on bing.com. I am using IE8.

Here is the entire XAML.

 

 

 

 

<UserControl x:Class="RadControlsSilverlightApp1.MainPage"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" 
      
    <Grid x:Name="LayoutRoot">
        <telerik:RadHtmlPlaceholder HorizontalAlignment="Stretch"  VerticalAlignment="Stretch" Margin="10" SourceUrl="http://bing.com" />
    </Grid>
</UserControl>

 

 

 

 

 

 

 

 

 

0
Miroslav
Telerik team
answered on 11 Aug 2010, 04:38 PM
Hi arthurd,

Yes, some sites may have functionality that does not work in an iframe.

I can see the same exception on bing.com even if I place an IFrame over the SL application. It is also present in the w3schools test page:

http://screencast.com/t/NjhlNWVmM

It is best to show only html that you have control over.

Also if you want to display just rich text, I can suggest using our new RadRichTextBox.

All the best,
Miroslav
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
HTMLPlaceHolder
Asked by
arthurd
Top achievements
Rank 1
Answers by
arthurd
Top achievements
Rank 1
Miroslav
Telerik team
Share this question
or