How to Hide Page View Webpart Option E.g.: Refresh, Open in Visio, Close.

Hello all- Is there any way to hide Refresh, Open in Visio, Close option from Page Viewer Webpart, using Java script or client side method.
<script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
    $('#VwaToolbarButton').css('display','none');
    $('#VwaRefreshButton').css('display','none');
    $('#VwaButtonNormal').css('display','none');
   

Hi Kamal,
As I understand, you want to hide the Refresh, Open in Visio, Close option in the page viewer web part by JavaScript or client side method in SharePoint 2010.
You could add the custom CSS code to hide the Refresh, Open in Visio, Close option in the page by content edit web part.
 You could use CSS 'visibility: hidden’ or 'display: none’ to hide the buttons.
You could add the CSS code to content edit web part as below:
<style type="text/css">
//your custom css code.
</style>
The article below is about CSS syntax.
http://www.w3schools.com/css/css_syntax.asp
The article below is about three Ways to Insert CSS.
http://www.w3schools.com/css/css_howto.asp
Best regards,
Sara Fan
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • How to browse a folderstructure in a Page View webpart

    We use a Page View Webpart to display a folderstructure on our netwerkdrive. We can click on folders to walk down the tree structure or click on files to read or edit them.
    But, how can you walk back in that structure e.g. step-by-step, crumb-path, ...?
    Kind Regards, Karel Roos

    Wow,
    Life is sometimes really simple. Thank you very much for this very fast and helpfull answer. Today you made a least one person happy;-) Thnx!
    Kind Regards,
    Karel

  • How to hide Print and Filter option from dynamic ALV

    Hi,
    I have created the dynamic ALV. now User don't wan't Filter , export,print Option on the ALV dispaly.
    Could you please tell me How to hide Print and Filter option from dynamic ALV.
    Thanks and regards
    Amita.

    Hi,
    Please go through the following link to get an better idea on ALV.
    [https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/1190424a-0801-0010-84b5-ef03fd2d33d9&overridelayout=true]
    This is the code  which you have to write in  WDDOINIT
    DATA LO_CMP_USAGE TYPE REF TO IF_WD_COMPONENT_USAGE.
    LO_CMP_USAGE =   WD_THIS->WD_CPUSE_ALV_TEST( ).
    IF LO_CMP_USAGE->HAS_ACTIVE_COMPONENT( ) IS INITIAL.
      LO_CMP_USAGE->CREATE_COMPONENT( ).
    ENDIF.
    DATA LO_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
          LO_INTERFACECONTROLLER =   WD_THIS->WD_CPIFC_ALV_TEST( ).
            DATA LO_VALUE TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
            LO_VALUE = LO_INTERFACECONTROLLER->GET_MODEL(
    lo_value->IF_SALV_WD_STD_FUNCTIONS~SET_EXPORT_ALLOWED( abap_false ).
    lo_value->IF_SALV_WD_STD_FUNCTIONS~SET_PDF_ALLOWED( abap_false ).
    lo_value->IF_SALV_WD_STD_FUNCTIONS~SET_VIEW_LIST_ALLOWED( abap_false ).

  • Sharepoint 2010 page viewer webpart

    
    I am using Page viewer webpart to link asp.net site.
    If I enable or disable IE protected mode for Intranet and trusted sites then it is working fine.
    but if we disable one of the protected mode then javascript  doesn't work properly
    Is there any solution ?

    Protected Mode Windows Internet Explorer restricts websites from writing to the registry and file systems on the local
    computer
    what kind of Javascript you are running on your page, check error logged by IE protected mode "Explorer
    logs events when write access has been denied"
    See this URL for detail
    http://msdn.microsoft.com/en-us/library/dd565659(v=vs.85).aspx
    Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL
    INSQLSERVER.COM
    Mohammad Nizamuddin

  • Page Viewer Webpart not displaying some webpages

    Hello
    I have a SharePoint Server 2013 on-prem Publishing Site and the page viewer webpart is unable to display some webpages like Google homepage, etc. but is able to show webpages from a few other sites like internal SharePoint sites, skysports.com, etc.
    I am not able to see a pattern here. I first thought this might be caused due to some sites allowing authenticated access but now its not very consistent. Also, I tried the same with an Office 365 site and the results were exactly the same.
    Please help me to find out the reason for this issue.
    Thanks
    Parth

    Hi,
    According to your post, my understanding is that Page Viewer Webpart don’t display some webpages.
    There are many reasons for the block of the pages in the Page Viewer Web Part.
    For more information, you can refer to:
    IFrame is blocked in SharePoint 2013
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to hide page number in the table of content

    Hi,
    I'd like to know how to hide page number in the ToC. They show automatically, but at least for the headings of third ad fourth order I'd like to suppress/omit them.
    Thanks for any advice!

    You have in the Inpspector > Document tab > TOC > uncheck button for #'s

  • Page viewer webpart issue

    Hi Friends,
    Today, I inserted a Page viewer webpart on a SharePoint 2010 page and linked http://office.microsoft.com/en-us/sharepoint-server-help/introduction-control-user-access-with-permissions-HA101794487.aspx to
    that webpart.  But I got the below error when I opened that page
    Then, I went ahead and changed the URL in the webpart to https://microsoft.com.... Then, I got the correct page. Has anybody encountered this?  What is causing the issue here?
    Shonilchi..

    Hi Shonilchi,
    According to your description, you got an error when you inserted a Page viewer web part on a SharePoint 2010 page and linked
    http://office.microsoft.com/en-us/sharepoint-server-help/introduction-control-user-access-with-permissions-HA101794487.aspx to the web part.
    Based on your description, I did a test, below are my steps:
     1.Create a new page, and edit the page
     2.Click Insert ribbon under Editing Tools, and click Web Part
     3.Under Categories, select Media and Content, under Web Part, select Page Viewer, and click Add
     4.Click open the tool pane , then a message from webpart occurred, then click OK
     5.On the Link section, type
    http://office.microsoft.com/en-us/sharepoint-server-help/introduction-control-user-access-with-permissions-HA101794487.aspx, and click OK
     6.Everything worked well
    Below is a screenshot:
    Please have a try again.
    I hope this helps.
    Thanks,
    Wendy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to hide the view latest instance option for the reports in XIR3

    Created an access level and denied the rights "view document instances" and "view document instances that the user owns" in the access level.
    Applied this access level for a particular group on a particular folder.
    Login to Infoview and when view the history,there are no instances for a particular report under that folder.
    But we could still see the 'View Latest instance' option in the properties of the report and when click on it,we are able to view the report.
    As per the security assigned,the user should only be able to view the instances owned by him.
    Plz help me how to hide the option in INFOVIEW

    In 9.3.1 (not sure about 9.2) there is a table in your BIPlus repository which stores preferences/profile information, however, having a user simply log in to WA doesn't appear to automatically create a row for them in this table. (So this may not be a viable solution to your situation, I'm still looking for one myself.) This table stores lots of preference info such as whether or not to show the Main Menu, Toolbar, Masthead, etc. by default.
    To hide the View Pane, edit the data in the SHOW_INFO_PANEL column, change it from a 1 to a 0 and for that user the View Pane will not longer appear by default.
    HYA_USER_PREFS
    But again, this only works if you already see the user in the table otherwise I guess maybe they have to 'touch' their Preference before it creates an entry in that table. Haven't figured that part out yet, and Support didn't have any information.
    If anyone has found a way to maneuver through the table structures I'd love to hear any insight you can offer.
    Before you make any changes to the data in this table be sure to take adequate repository backups, and use caution as usual.
    I'm going to create a Shared Preference and have each user point to it the first time they log in - but then you lose the ability for each user to have their own personal folder as their default, so it's still not the ideal solution. Really wish there was a way for Admins to set certain prefs. A coworker reminded me under 7.? or 6.x things like View Pane were system-level settings which was easy to control, but now it's at the user level.
    Good luck,
    Karen

  • Page viewer webpart (set to network folder) works in ie11...but not ie9

    Hello all,
    I have configured a pvwp to point to a network folderon my app sever.
    Any user running ie 11 who opens the page containing the webpart can see the contents of the shared folder.
    Any user running ie 9 who opens the page containing the webpart sees a browsers error saying: Internet Explorer cannot display the webpage.
    If I have a user with IE 9 log in to sharepoint using a PC running IE 11 they are then able to see the content so it does not appear to be user permissions (in sharepoint or on the share) related.
    Does anyone have any ideas on this?
    Thank you!

    Hi,
    As I understand, page viewer web part works in IE11 but not in IE9 with same user account.
    Could you please test the issue on other browsers and see if it works? Make sure you are using 32-bit IE browser.
    Please perform the steps below on your IE9:
    1.Reset IE settings via Internet Explorer options > Advanced tab > Reset.
    2.Add your SharePoint sites to trusted sites or local intranet sites via Internet Explorer options > Security tab.
    3.Use Compatibility settings for your SharePoint sites.
    4.You could also try installing latest update to your IE 9.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to hide a view in NWDS?

    Hi,
    We need to hide an Iview based on the condition which will be on load. But that Iview is the first to load on running the application.
    Can anyone please help us how to make the view hide in NWDS without affecting other views?
    Thanks in advance,
    Indu

    In the view definition (SE11), set the maintenance flag for the field to "H".
    Thomas

  • How to hide a view in BDT

    Dear Experts,
    I have a screen and there is a tab which I would like to hide on the screen. I found out which view it isin BDT.
    But now I would like to hide the view, Can you please let me know how should I hide it so that it is not visible on the screen.
    As we hide the fields, what must must be done to hide the whole view in BDT.
    Many thanks in advance.
    Regards,
    Afroz
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Mar 24, 2010 2:11 PM

    hi,
    loop at screen.
    if screen-name = your fieldname.
    screen-active = 0.(screen-invisible = 1)
    modify screen.
    endif.
    endloop.
    Edited by: subas  Bose on Mar 24, 2010 5:21 PM

  • How to hide pages in reports when no data on it?

    hello,
    i have a master detail report,which has data on the master without data in the detail,so how can i hide pages which has no data on its detail?
    Thanks.

    Put the following In the format trigger of the repeating frame:
    return :cs_cnt > 0;
    Here cs_cnt is the summary column counting details per master.

  • Page Viewer Webpart getting error: This file is already open or in use.

    Management wants to have a Goal Chart to be updated daily with new information without having to get myself involved.  All they want to do is save to a Network location and have SharePoint Intranet site use this location to display.
    My background is an Intermediate power user, no development.  After researching I thought I could use the Page Viewer Web Part by using the File and then specify the Network location.  This worked only once. 
    When management or myself tries to save the updated PDF to the Network location get the following error message:  This file is already open or in use.
    Please let me know the best way for management to update a network location to update the SharePoint Intranet site. 
    System is SharePoint 2010 foundation.

    This is what I did and it works fine for the original document.  I want the user to be able to save to the same location on the Network to have the new PDF display within Sharepoint.  When I try to save over the original PDF, I get an error message
    when I try to save:  The file is already open or in use. 
    How do I get around getting this message. 

  • ReportViewer 2010:how to hide pdf in export option in reportviewer

    please help me out 
    how shoul i hide pdf in export option in reportviewer
    susana w

    Hi,
    This is the code which is used for ReportViewer 2008 and i need code for ReportViewer 2010. I don't want to change in the reportserver's RSReportSErver.Config
    file because same report server we are using for different projects where in some projects we require pdf and some we do not. Below is the code for reportviwer 2008 where the export button is rendered as a dropdown and in reportviwer 2010, Export button is
    redered as div element and all the export options like pdf,word,etc elements are rendered as div elements . So in code behind how can i access these export button options?
       private void CustomizeReportViewer(System.Web.UI.Control reportControl)
                foreach (System.Web.UI.Control childControl in reportControl.Controls)
                    if (childControl.GetType() == typeof(System.Web.UI.WebControls.DropDownList))
                        System.Web.UI.WebControls.DropDownList ddList = (System.Web.UI.WebControls.DropDownList)childControl;
                        if (ddList.ToolTip.Contains("Export"))
                            ddList.PreRender += new EventHandler(ddList_PreRender);
                    if (childControl.GetType() == typeof(System.Web.UI.WebControls.Button))
                        System.Web.UI.WebControls.Button ddList = (System.Web.UI.WebControls.Button)childControl;
                        if (ddList.UniqueID.Contains("ctl00_ContentPlaceHolder1_rptviewerByBrandBySentimentAttribute_ctl06_ctl04_ctl00_Button"))
                            ddList.PreRender += new EventHandler(ddList_PreRender);
                    if (childControl.Controls.Count > 0)
                        CustomizeReportViewer(childControl);
            // This is the event handler added from CustomizeRV 
            // We just check the object type to get what we needed. 
            // Once the dropdownlist is found, we check if it is for the ExportGroup. 
            // Meaning, the "Excel" text should exists. 
            // Then, just traverse the list and disable the "Excel". 
            // When the report is shown, "Excel" will no longer be on the list. 
            // You can also do this to "PDF" or if you want to change the text. 
            void ddList_PreRender(object sender, EventArgs e)
                if (sender.GetType() == typeof(System.Web.UI.WebControls.DropDownList))
                    System.Web.UI.WebControls.DropDownList ddList = (System.Web.UI.WebControls.DropDownList)sender;
                    System.Web.UI.WebControls.ListItemCollection listItems = ddList.Items;
                    if ((listItems != null) && (listItems.Count > 0) && (listItems.FindByText("Excel") != null))
                        foreach (System.Web.UI.WebControls.ListItem list in listItems)
                            if (list.Text.Equals("XML file with report data") || list.Text.Equals("CSV (comma delimited)") || list.Text.Equals("TIFF file") || list.Text.Equals("Word") || list.Text.Contains("PPS"))
                                list.Enabled = false;

  • Is it possible to manipulate page viewer webpart using jquery on page?

    I have an aspx page onto which I have added a page viewer web part to display a powerpoint file. I wanted to hide or remove the close button because closing returns to the library in which the file lives, which is not the desired behavior.
    my first solution was to hide the close button using jquery using the following
    <html>
    <head>
    <script language="javascript">
    $(document).ready(function()
    alert("hello");
    $(".cui-topBar1").hide();
    </script>
    </head>
    </html>
    I am reasonably certain that this function is called before the page has rendered the page viewer web part, meaning that the html element of interest is not even on the page, which in turn would explain why the function does not do what I desire.
    is there a way to trigger this function after the web part is rendered? or, is there a way to intercept the close event or its redirection so that I can send the user to the desired page? Perhaps it is as simple as adding html to hide web part elements,
    but that has not worked either.
    the ideal solution is to manage page redirection on close or prevent powerpoint viewer closing.
    sharepoint 2013 sp1 enterprise farm, self hosted.

    Hi Tony,
    Thanks for sharing the information. Have a good day.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • E-mail notification won't go away

    In the past 72 hours I have noticed that the little red number to tell me how many emails I have, won't disappear. At first it was just a 1, and now it's 2. When I actually have new mail, say 4 new ones, the number will read 6, i dump those or read t

  • Reports 9i Output in XML

    Hello, A client wants a report back in XML format. I know I can do this pretty easily by changing the DESFORMAT from PDF to XML. However, I don't want to show all the report layout tags in the output to the client. What's the easiest way to transform

  • PDF Acroform Javascript (WIN): Calculate Next Tuesday Date

    06/03/10 Greetings; I found a javascript that will calculate next Tuesday's date, but I can't seem to get it to work in Acrobat Pro v8 (Acroforms). Any assistance/guidance you can provide is most appreciated. Script: http://christian.lassem.com/js/ja

  • What product do you recommend if I need to merge different documents & email forms to fill out?

    What product do you recommend if I need to merge different documents & email forms to fill out?

  • Getting initial context using a cluster address

    I am having trouble getting initial context using a cluster address. My cluster has two WL 8.1 servers at localhost:8001 and localhost:9001. I set the hashtable to get the initial context as follows: env.put(InitialContext.PROVIDER_URL, "t3://localho