Trouble with the hosted website from a page viewer web part. (Sahrepoint 2010)

Hi everyone,
I am facing trouble with sharepoint and I would like some help.
I use Sharepoint 2010 and I have included a page viewer page part in one the pages I 've created that hosts another website. Although most of the functionality of the hosted website is there, some functions of it don't work. These functions are apply buttons
or downloading documents buttons. My guess is that the web part has to update dynamically and it should be independent from the Sharepoint page.
Is there a way to do this? It is important that the website is hosted in the since at the same page I have s guide on how to use the hosted website.
If this can't be done using a page viewer webpart I am open to other suggestions as well.
Thanks in advance!
Sakis

Is it possible that the hosted website page is using HTML5 of other functionality that isn't supported by the IE-8 restriction in the SharePoint master page? We've run into that before, where the page wouldn't work in the page viewer. I also had problems
where Chrome/Firefox wouldn't display a pager viewer when it crossed hosts/changed protocol.
What I had to do was add some javascript/Jquery to pop up another window to view the page if I wasn't on IE, getting out of the restriction of the SharePoint master page. If I was in IE the page viewer webpart worked.  Not ideal, but maybe you could
adapt - they could see your instructions on the page but work with the host page on another.
<script type="text/javascript" src="/Javascript/JQuery/JQueryMin-1.8.2.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var isIE = /*@cc_on!@*/false || document.documentMode;
if(!isIE) {
window.open('http://fmgblog/measure/email/dashboard.php');
}); // end of document ready
</script>
Robin

Similar Messages

  • How to dynamically change link in Page Viewer Web Part SharePoint 2010?

    Newbie Question:
    Situation:
    a) Created: Two Site Pages page 1 & page 2
    b) Page 1: Includes simple hyperlink text Example - Home | About Us | Contact etc
    c) Page 2: Includes Page Viewer Web Part that includes link to an existing web site (this site has all of the pages) and the olde site is shown in SharePoint site
    Complication:
    a) I want the users to click on Page 1 - About Us etc
    b) The View on Page 2 - page viewer link should be dynamically updated to About Us . If user clicks on contact us on Page 1..the page 2 view should change dynamically to Contact US
    ASK:
    a) How do I dynamically update the links in Page Viewer web part using minimal coding (if possible)
    Any Guidance will be greatly appreciated.

    Hello,
    You can also used the another appoch,
    Create your custom webpart , then add the PageViewer Webpart at run time,Create webpart property for the custom webpart to change the url and add the PageViewer webpart runtime,
    I have created the custom webpart property to specified the url at the tine of edit the webpart
    Here is the code
    using System;
    using System.ComponentModel;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.WebControls;
    using System.Collections;
    using Microsoft.SharePoint.Publishing.WebControls;
    using Microsoft.SharePoint.WebPartPages;
    namespace MyNameSpace.MyPageViewer
    [ToolboxItemAttribute(false)]
    public class MyPageViewer : System.Web.UI.WebControls.WebParts.WebPart
    private string _customUrl = "http://yourdefaulturl";//Specified default url
    [WebBrowsable(true)
    , Personalizable(true)
    , Bindable(true)
    , Browsable(false)
    , DefaultValue("")
    , Category("Custom Page Viewer Properties")
    , WebPartStorage(Storage.Shared)
    , FriendlyName("PageViewer URL")
    , Description("PageViewer URL")]
    public string CustomUrl
    get { return _customUrl; }
    set {if (string.IsNullOrEmpty(value) == false) { _customUrl = value; } }
    #endregion
    public MyPageViewer()
    this.ChromeType = PartChromeType.None;
    protected override void OnInit(EventArgs e)
    EnsureChildControls();
    base.OnInit(e);
    protected override void CreateChildControls()
    string pageViewerUrl = CustomUrl;
    Microsoft.SharePoint.WebPartPages.PageViewerWebPart pageViewerWebPart = new Microsoft.SharePoint.WebPartPages.PageViewerWebPart();
    if (!string.IsNullOrEmpty(pageViewerUrl))
    pageViewerWebPart.ContentLink = pageViewerUrl;
    pageViewerWebPart.ChromeType = PartChromeType.None;
    pageViewerWebPart.Height = "382";
    pageViewerWebPart.Width = "682";
    this.Controls.Add(pageViewerWebPart);
    protected override void OnLoad(EventArgs e)
    base.OnLoad(e);
    protected override void OnPreRender(EventArgs e)
    base.OnPreRender(e);
    Hope this will help you
    Hiren Patel | Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • Adding Page View Web Part with dynamic URL based on visited mysite user

    Problem:
    I want to add an iframe (using Page View Web Part for example) on all mysite users front page (person.aspx) with following address:
    http://webservice/calendar?user=name
    The property "name" represents a dynamic value based on which person the user is visiting. Hence if i open "Tom Hanks" mysite profile, the iframe will show content from http://webservice/calendar?user=Tom%Hanks
    (This is a custom made calendar from Domino)
    Any suggestions welcome.
    -Terje

    Hi,
    The Page Viewer Web Part is basically an HTML IFRAME. We can use a Content Editor Web Part with an IFRAME and a little JavaScript to meet your requirement.
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/d9a06d93-93d2-4340-a491-c7d0d5d4fdf3/how-to-dynamically-change-link-in-page-viewer-web-part-sharepoint-2010?forum=sharepointgeneralprevious
    More information:
    http://stackoverflow.com/questions/20981226/sharepoint-2013-get-current-user-javascript
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Issue in treeview control along with page viewer web part showing the sub sites from MMS

    hi,
    Am having a treeview control populates  with values from  MMS - Managed Metadata Service.
    [ Products ]
    ----->ms office 
                ----->word
                ----->excel
                 ---->powerpoint
    -------->Collaboration
                     ---->   sharepoint 2003
                     ---->  moss 2007
                     ----> sp 2010
                     -----> lync
     all these  values excel, word, powerpoint are sub sites created under ms-office site collection.
    and  sharepoint 2003, mos 2007, sp 2010, sp 2013 are  sub sites created under collaboration.
    now, on the page load, end user clicks on word and he should navigate to the  sub site "wordsite"  and it should show the home page of word sub site.
    we have created a  page viewer web part and  assigned the url property of the page viewer to the sub site url.
    but the issue is, when end user clicked  on the child node "powerpoint", the  page did a Post Back and treeview control immediately collpased and it shows the Products [top level - parent node] only.
    Am unable to set the current selected value- ie  here its excel and show the excel node in the trewview.
    how can i get this child tree node as the selected node.
    help is  highly appreciated!

    Check if below can help
    http://thechriskent.com/2012/05/09/changing-the-default-expansion-of-metadata-navigation-on-initial-page-load/

  • Page Viewer Web Part with horizontal scrollbar

    Hi,
    I added a page viewer webpart to a sharepoint 2013 website and placed a reporting services report url on it, however in some users the browser shows a horizontal scroll bar and cuts the report area. This is not version related because
    I can see it well in IE10 in one user and in others it shows the reported problem.
    Seems to be browser settings. Any ideas?
    Thank you

    Hi,
    According to your post, my understanding is that some users’ browser shown a horizontal scroll bar in the page view web part.
    You can disable the horizontal using the CSS style as the following.
    <style type="text/css">
    #WebPartWPQ3 {
        OVERFLOW-X: hidden !important
    </style>
    Note: the WebPartWPQ3  is the webpart ID.
    You can find the ID as the following thread:
    http://sharepoint.stackexchange.com/questions/29649/disable-horizontal-scroll-bar-on-navigation-web-part-in-sharepoint-2010
    Instead of using page viewer web part, you can also use the content edit web part with IFrame, and some JavaScript to achieve it.
    For more information:
    http://majidbaig.blogspot.in/2012/07/page-viewer-web-part-dynamic-height.html
    There is a similar thread for your reference.
    http://stackoverflow.com/questions/368480/removing-scrollbars-from-content-editor-page-viewer-webpart
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Hiding the outline section of PPT converted to HTML in Page Viewer web part

    Hello,
    I've converted the PPT (Office 2010) to HTML using .SaveAs command. I'm adding this HTML on my SharePoint site in a page viewer web part. I get an outline section for PPT which shows all the slides. By default, I want the outline section to be closed (collapsed)
    so that I see PPT slide in full view.
    Has anyone done this before?
    Thanks,
    Ajit

    Hi Ajit,
    When we save PPT as HTML page, the PPT HTML page uses a lots of html pages and JavaScript functions to show the slides in a web browser. When we click "Outline" button, we can be able to show or hide the outline. Actually, this button uses JavaScript to
    do so.
    In this case, in order to show full page on load, we can simulate the action that clicking the "Outline" button onload.
    Open the PPT HTML folder(if we save PPT to HTML, there will have a folder)
    Open the file outline.htm with text editor
    Modify the Load function to be:
    function Load() {
        if (IsWin("PPTOtl")) {
            LoadOtl();
            parent.gOtlLoaded = true;
            var btn = new TxtBtn(
            "nb_otl", "nb_otlElem", parent.ToggleOtlPane, GetOtlState);
            if (btn != null) {
                btn.SetPressed();
                btn.Perform();
            return
        if (g_supportsPPTHTML) {
            if (IsWin("PPTNav")) {
                LoadNav("NavObj", UpdNav);
                parent.gNavLoaded = true;
                return
            if (IsWin("PPTOtlNav")) {
                LoadNav("OtlNavObj", UpdOtlNav);
                parent.gOtlNavLoaded = true;
                return
    Once we done, and upload the files to SharePoint again, the page viewer web part will show the PPT in full page.
    If there is anything unclear, please feel free to ask.
    Thanks,
    Jinchun Chen
    Jinchun Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff AT microsoft.com(Please replace AT with @)

  • Crystal Report Viewer in Sharepoint Page Viewer Web Part

    In our SharePoint setup, we have a web part that contains links that either hides or shows three other web parts (page viewer web part).  When entering the page, the first web part is shown and the other two are "hidden".  Clicking on the links will toggle through these three web parts.  Link 1 = Web Part One Visible, Web Part Two and Three Hidden.  Link 2 = Web Part Two Visible, Web Part One and Three Hidden.  Link 3 = Web Part Three Visible, Web Part One and Two Hidden.
    Our problem involves the CrystalReportViewer.  We have created a page that allows us to open the last successful instance of a report with the viewer.  This works correctly when calling the link directly from IE.  When we place this link in either the second or third web part, the report does not show.  The viewer borders will appear but the report itself will not.  If the .aspx is placed in the first part, the report appears without issue.  We do not want the .aspx to be called by the first web part and need it to load in one of the other two.  We can get the report to show in the other web parts if you right click on the empty space where the report should be and hit refresh.
    What do we need to do to get the report to load correctly in either of the two web parts?  We have looked at several options and can not get anything to work.  We didnt have this issue when using BOE XI R2 with an .asp opening the reports.  Please let me know if more info is needed.  We are running BOE XI R3.1 currently.
    Thanks

    We havent tried that.  We changed the link in the web part to access an html page that claims that the report is loading.  It states in the html that if the page doesnt load to "click here" which redirects to the crystalreportviewer.  Its a temp fix for it.  One thing we are looking at is the 64 bit version of the Sharepoint integration kit.  That may contain a reportviewer webpart.
    Thanks for the reply.
    Brian

  • Display CRM 2013 Dashboard in SharePoint 2010 Page Viewer web part

    Hello,
    I am trying to add a simple CRM 2013 dashboard to a SharePoint 2010 web page (Page Viewer web part).  The page shows the banner only - the dark blue banner from CRM, but that is it.  No data, no headers, etc.
    Is this a permissions issue?  The SP and CRM servers and user are all on the domain.
    Thanks,

    Hello,
    I believe I found the answer to this issue.  The GUID for the dashboard needs to be copied from customizations/Dashboards in Settings.  Then the URL ends up looking [something] like this (note: this is just a sample) -
    http://SERVERNAME/ORGNAME/Dashboards/Dashboard.aspx?dashboardid=NNNNNNNNNNNNNNNNNNNNNNNNN
    Server name and org name and GUID (sample below shown as "NNNNNNNNNNNNNNNNNNNNNNNNN") needs to be replaced with the correct GUID of your entity to make the URL valid.  This is just a sample, not meant to be used in a production
    environment. 

  • Embedded .htm loses functionality in Page Viewer Web Part

    Hello,
    I have a .htm file with the entire web content folder, generated by another application, stored in a Document Library on my SharePoint site. This web page contains 3 zones (html framesets with frames): The first one containing a tree-view where the user
    can select a specific "model" to view, the second one is the main part where the "model" with all it's "objects" is displayed and the third one which displays the selected "model's" or "model object's"
    properties.
    The problem is that when I use the Page Viewer Web Part to embed this web page into a SharePoint page, clicking an "object" into the second zone, does not display it's properties into the third one. Though, selecting a "model" from the
    tree-view, displays the model into the second zone amd it's properties into the third as it normally should.
    Can anybody, please, help me solving this issue?
    Thank you!

    Hi Arun,
    If you are login with your credentials it doesn't matter either it is admin machin or a any other machine.
    Check If it is problem with only your system it could be some browser issue .Try in other browser in your system and  let us know your result.
    Whenever you see a reply and if you think is helpful, click &quot;Vote As Helpful&quot;! And whenever you see a reply being an answer to the question of the thread, click &quot;Mark As Answer

  • Windows authentication of Sharepoint Page viewer Web Part applications

    Hi,
    I am working on a new Sharepoint portal which will have Page viewer Web Parts hosting asp.net applications. The standalone applications those are hosted are using windows authentication. my requirment is, when the client logs in to sharepoint need to authenticate
    all web parts with same user credentials so that then don't need to log in again. those asp.net applications are hosted as standalone also out side sharepoint. Can some one advise me how to do that?..
    Thanks
    Ram

    We havent tried that.  We changed the link in the web part to access an html page that claims that the report is loading.  It states in the html that if the page doesnt load to "click here" which redirects to the crystalreportviewer.  Its a temp fix for it.  One thing we are looking at is the 64 bit version of the Sharepoint integration kit.  That may contain a reportviewer webpart.
    Thanks for the reply.
    Brian

  • Master Page Header and Footer in Page Viewer Web Part

    Hi.
    I created a View in Pages Library to view specific folders.
    After that i added one Page Viewer web part to one of the aspx page.
    There in the Page Viewer web part properties Link i have provided the url of the view.
    It is displaying the folders but at the same time it is displaying the master page header and footer inside the web part.
    Now i need to display the folders alone inside the Page Viewer web part.
    Please let me know how to exclude the master page header and footer inside the Page Viewer web part?
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    I think that is the default behavior of the page viewer webpart.
    In the page viewer web part,your just enter the url of the website.So that is treated as webpage and it is displaying as per page.
    http://meritsolutions.com/meritmatters/archives/576-Displaying-a-File,-Folder-or-Web-Page-in-the-Page-Viewer-Web-Part.html
    If you want to display a folder, type in a network path to that folder under Link and the folder content will be displayed. 
    Find the more details about page viewer webpart in msdn
    http://office.microsoft.com/en-in/sharepoint-server-help/page-viewer-web-part-HA010024045.aspx

  • Dynamically Link OneNote Page to SharePoint 2010 Page Viewer Web Part

    I'm trying to display a OneNote page within a SharePoint 2010 Page Viewer web part whereby the OneNote page can be edited by users with read/write permission, but not having any success. 
    I was able to save the OneNote page as a web page (.mht) file and display it as a static page within the SharePoint Page Viewer web part.
    Any suggestions on how it can be done would be greatly appreciated.
    Thanks!

    I'm afraid there might be no way to integrate OneNote with SharePoint as your requirment. Sorry.
    Tony Chen

  • Page Viewer Web Part Not Displaying

    I've added a Page Viewer to my SharePoint site underneath a Content Editor. When I'm editing the Page Viewer Web Part I can see the page but if I close the Web Part editor the page doesn't display.
    If I move the Page Viewer Web Part above the Content Editor it displays but the Content Editor does not.
    Anyone have any ideas?

    Do you have HTML or a script written in your Content editor? maybe the code isn't properly formatted with proper opening of elements or closing of elements? I'd start there. Also try using the F12 in your IE browser to inspect the HTML the page is displaying.
    That might help zero in on the problem.
    Alex

  • Keeping Page Viewer Web Part Content Exclusive to Each Workspace Instance

    I would like the Page Viewer Web Part to display different content for each instance in the workspace. The Shared Documents list already does this, but for some reason, when I display content in the Page Viewer, it applies to all instances.
    I'm using the workspace for meetings and I would like to display the respective agenda for each meeting date.

    This is how i was able to do it. Edit html source.
    <div align="center"><marquee id='scroll_news4' bgcolor=#ff9966 "><font color="#000000" size="+1" ><strong>Outlook is down! IT is working on it! </strong></font></marquee></div>
    <input type='Button' value='Stop' id ='b1' onClick='button_click()';>
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    function button_click()
    if(document.getElementById('b1').value=="Start"){
    document.getElementById('b1').value="Stop";
    document.getElementById('scroll_news4').start();
    }else{
    document.getElementById('b1').value="Start";
    document.getElementById('scroll_news4').stop();
    // End -->
    </script>

  • Modify the data source of a data view web part

    I have a dataView web part deployed in a template in multiple site collection. This dataView hasn't any query set up, so it loads a lot of items and this is slowing down my system.
    Now I want to programmatically put a query overriding the existent (empty) one and I'm doing like this:
    System.Web.UI.WebControls.WebParts.WebPart y = (System.Web.UI.WebControls.WebParts.WebPart)item;
    Microsoft.SharePoint.WebPartPages.DataFormWebPart z = (Microsoft.SharePoint.WebPartPages.DataFormWebPart)item;
    StringBuilder dataSourceString = new StringBuilder("<%@ Register TagPrefix=\"sharepoint\" Namespace=\"Microsoft.SharePoint.WebControls\" Assembly=\"Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c\" %>");
    dataSourceString.Append("<%@ Register TagPrefix=\"WebPartPages\" Namespace=\"Microsoft.SharePoint.WebPartPages\" Assembly=\"Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c\" %>");
    dataSourceString.Append("<sharepoint:SoapDataSource runat=\"server\" SelectUrl=\"http://intranet.contoso.com/sites/spc/_vti_bin/lists.asmx\" InsertUrl=\"\" UpdateUrl=\"\" DeleteUrl=\"\" SelectAction=\"http://schemas.microsoft.com/sharepoint/soap/GetListItems\" InsertAction=\"\" UpdateAction=\"\" DeleteAction=\"\" SelectPort=\"ListsSoap\" InsertPort=\"\" UpdatePort=\"\" DeletePort=\"\" SelectServiceName=\"Lists\" InsertServiceName=\"\" UpdateServiceName=\"\" DeleteServiceName=\"\" AuthType=\"Basic\" AuthUserName=\"contoso\\administrator\" AuthPassword=\"pass@word1\" WsdlPath=\"http://intranet.contoso.com/sites/spc/_vti_bin/lists.asmx?WSDL\" XPath=\"\" ID=\"SoapDataSource3\">");
    dataSourceString.Append("<SelectCommand><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><GetListItems xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\"><listName>Jobs</listName>");
    dataSourceString.Append("<Query><Where><Eq><FieldRef Name=\"Title\" /><Value Type=\"Text\">2012_080_A_0</Value></Eq></Where></Query>");
    dataSourceString.Append("<rowLimit>9999</rowLimit></GetListItems></soap:Body></soap:Envelope></SelectCommand><InsertCommand></InsertCommand><UpdateCommand></UpdateCommand><DeleteCommand></DeleteCommand></sharepoint:SoapDataSource>");
    z.DataSourcesString = dataSourceString.ToString();
    manager.SaveChanges(z);
    In my code, I can see the DataSourceString changing, but if I refresh the page it is still loading all the data: why?!

    Hi,
    According to your description, my understanding is that you want to change the data view web part datasource programmatically.
    We need to override the databind method like below:
    public class ExtendedDataFormWebPart : DataFormWebPart
    public override void DataBind()
    this.DataSource = your own data source;
    base.DataBind();
    Here is a detailed code demo for your reference:
    http://jamestsai.net/Blog/post/How-to-query-cross-site-lists-in-DataFormWebPart-Part-1-Build-your-own-data-source-for-DataFormWebPart.aspx
    Best Regards
    Jerry Guo
    TechNet Community Support

Maybe you are looking for

  • How do I poll multiple email accounts?

    Hi. I'm switching from a Linux based PC to a Mac mini as my primary computer. (One reason only, a silent computer) In my Linux system I have several accounts that I poll through fetchmail with cron. Now I'm wondering if there is available in OSx an e

  • Pages 09 Saving using applescript automatically makes a package

    I can manually save a document as a flat file, but when I run my applescript, it saves as a package, even though "Save new documents as packages" in the Preferences is unchecked. Is this the same issue as this thread? http://discussions.apple.com/thr

  • IPhone 4 went off and doesn't turn on!

    Hey, I was watching a video on Vimeo on my iPhone 4 then I put it in my pocket. After 15 min, I tried to turn it on; it wouldn't turn on! I tried to charge it, tried hard reset, and tried connecting it to MBP, but nothing worked. Someone at the store

  • Pygrub and arch linux

    I had install xen on arch linux and now I am attempting to install arch linux as guest. Archlinux works fine as hvm but when I try to use pygrub I get this error message. Traceback (most recent call last):   File "/usr/lib/xen/bin/pygrub", line 876,

  • How assign own customer iView tag layout to your iViews

    HI all, I try to create a customer lay-out for my iView. When I search over sdn I find a lot about how to create a tag lay-out for your iView. I followed the instructions in the blog and sap help and I up loaded the created par file in the portal.  W