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

HTML Placeholder opens links in browser window

3 Answers 66 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
haider aslam
Top achievements
Rank 1
haider aslam asked on 03 Mar 2010, 01:22 PM
Hi,
    I am using HTML Place holder in a user control. Following is the XAML code:

<Grid>

        <telerik:ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" Height="650" Width="Auto" MaxWidth="1015" MaxHeight="740" VerticalAlignment="Top" HorizontalAlignment="Center"
                                SourceUrl="http://facebook.com"
                                x:Name="RadHtmlPlaceholder1" Visibility="Visible" />
    </Grid>

The problem i m facing is that when i open a URL e.g: Facebook.com It works fine, but as soon as i click a link within Facebook page, the linked  page opens up in the browser window instead of opening inside the HTML placeholder! I want all the links to open within the HTML place holder! Help needed!
Thanx

3 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 03 Mar 2010, 02:03 PM
Hello haider aslam,

It all depends on the Target attribute of the links you are clicking. If they are made to open in new window - we can't stop this.

Regards,
Valentin.Stoychev
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.
0
haider aslam
Top achievements
Rank 1
answered on 03 Mar 2010, 03:50 PM
Actually this behavior is not due to the Target attribute...When i open these links in normal browser window(not using the Html placeholder) they do not open in new window or tab! I have tried this using facebook.com!
0
Valentin.Stoychev
Telerik team
answered on 03 Mar 2010, 06:25 PM
Hi haider aslam,

Try loading the facebook.com into an iframe. The behavior should be the same. We don't deal with the pages that are loaded within the html placeholder. We just position the iframe according to the SL layout system.

Best wishes,
Valentin.Stoychev
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
haider aslam
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
haider aslam
Top achievements
Rank 1
Share this question
or