HTML Placeholder opens links in browser window

4 posts, 0 answers
  1. haider aslam
    haider aslam avatar
    11 posts
    Member since:
    Jan 2010

    Posted 03 Mar 2010 Link to this post

    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
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 03 Mar 2010 Link to this post

    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.
  3. DevCraft banner
  4. haider aslam
    haider aslam avatar
    11 posts
    Member since:
    Jan 2010

    Posted 03 Mar 2010 Link to this post

    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!
  5. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 03 Mar 2010 Link to this post

    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.
Back to Top