Read content of web

I want to create one class can read content(rows, columns of table) of dynamic web. but I can't.
Help me!

You may find this java.net.URL tutorial useful: http://java.sun.com/docs/books/tutorial/networking/urls/index.html

Similar Messages

  • Relative Path for Jquery into Content Editor Web Part

    Hi;
    I'd add a Content Editor Web Part (CEWP) to a web part zone. I'd edit that CEWP in HTML view and add my script which load Jquery and my question :  how to use a relative
    path for Jquery :
    <SharePoint:ScriptLink Name="SP.js" runat="server" OnDemand="true"
      Localizable="false" />
    <script src="/sites/XXX/Style%20Library/Scripts/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    My code
    </script>
    Regards

    Hi;
    Firstly, I have used : 
    <script src="/Style%20Library/Scripts/jquery.min.js" type="text/javascript"></script>
    But any result and any change and If I add /Sites/XXX/ : it works correctly ?
    My code is :
    <SharePoint:ScriptLink Name="SP.js" runat="server" OnDemand="true"
        Localizable="false" />
    <script src="/sites/XXX/Style Library/Scripts/jquery.min.js" type="text/javascript"></script>    
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(displayTitle, "SP.js");
    var site;
      var context;
      function displayTitle() {
        //Get the current client context
        context = SP.ClientContext.get_current();
        //Add the site to query queue
        site = context.get_web();
        context.load(site);
        //Run the query on the server
        context.executeQueryAsync(onQuerySucceeded, onQueryFailed);
    function onQueryFailed(sender, args) {
      alert('request failed ' + args.get_message() +
        '\n' + args.get_stackTrace());
    function onQuerySucceeded(sender, args) {
        $("#layoutsTable table th span").html("Bienvenue sur le site " + site.get_title() + " - Direction Technique");
        $("#zz17_V4QuickLaunchMenu ul.root li span:contains('Biblioth')").parent().parent().hide();
        $("#zz17_V4QuickLaunchMenu ul.root li span:contains('Listes')").parent().parent().hide();
    </script>

  • Content query web part is not working after chaning the DNS entry

    Hi all,
    We have a content query web part in the sharepoint site but it is not working after changing the DNS Entry for the web site ipaddress from one server to other . But it is working fine on the server, if we try to access the site from other system content
    quey server its not working fine and its giving error message as bellow.
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.
    Can anyone help me to fix this issue please.

    I have custom XSLT . But it is working fine before changing the dns entry as soon as we change the DNS entry the content quey web part is not working. I tried to delete the content query web part and add it once again to the page, As soon as content query
    web part is added to the page the fallowing error message is displayed.
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.
    Can anyone help me to fix this issue please.

  • Does the Target Audiences setting work for Content Search Web Part Snippets?

    I am attempting to create a page layout in SharePoint 2013 that contains a Content Search Web Part snippet. 
    I only want the CS Web Part to appear for certain users in a defined SP Group. 
    I set the Target Audience property during the generation of the snippet. 
    Unfortunately, the target audience property does not affect the appearance of the web part. 
    It appears all the time, even when the current user is not a member of the named SP group.
    Here is my snippet, the group I am targeting in called "US Region":
    <!--CS: Start Content Search Snippet--><!--SPM:<%@Register Tagprefix="spsswc" 
    Namespace="Microsoft.Office.Server.Search.WebControls" Assembly="Microsoft.Office.Server.Search, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>--><!--SPM:<%@Register Tagprefix="a2e8ead9d" 
    Namespace="Microsoft.Office.Server.Search.WebControls" Assembly="Microsoft.Office.Server.Search, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>--><!--MS:<spsswc:ContentBySearchWebPart runat="server"
    AlwaysRenderOnServer="False" ResultType="" DataProviderJSON="{&quot;QueryGroupName&quot;:&quot;Default&quot;,&quot;QueryPropertiesTemplateUrl&quot;:&quot;sitesearch://webroot&quot;,&quot;IgnoreQueryPropertiesTemplateUrl&quot;:false,&quot;SourceID&quot;:&quot;8413cd39-2156-4e00-b54d-11efd9abdb89&quot;,&quot;SourceName&quot;:&quot;Local
    SharePoint Results&quot;,&quot;SourceLevel&quot;:&quot;Ssa&quot;,&quot;CollapseSpecification&quot;:&quot;&quot;,&quot;QueryTemplate&quot;:&quot;(contentclass:sts_listitem OR IsDocument:True) SPSiteUrl:http://spvm2/sites/ProductCatalog
    ListId:1380cfe0-d69d-4d7a-b616-c70469a46e9c owstaxIdProductGroup:{URLToken.1} owstaxIdWorldRegion:US&quot;,&quot;FallbackSort&quot;:[],&quot;FallbackSortJson&quot;:&quot;[]&quot;,&quot;RankRules&quot;:[],&quot;RankRulesJson&quot;:&quot;[]&quot;,&quot;AsynchronousResultRetrieval&quot;:false,&quot;SendContentBeforeQuery&quot;:true,&quot;BatchClientQuery&quot;:true,&quot;FallbackLanguage&quot;:-1,&quot;FallbackRankingModelID&quot;:&quot;&quot;,&quot;EnableStemming&quot;:true,&quot;EnablePhonetic&quot;:false,&quot;EnableNicknames&quot;:false,&quot;EnableInterleaving&quot;:false,&quot;EnableQueryRules&quot;:true,&quot;EnableOrderingHitHighlightedProperty&quot;:false,&quot;HitHighlightedMultivaluePropertyLimit&quot;:-1,&quot;IgnoreContextualScope&quot;:true,&quot;ScopeResultsToCurrentSite&quot;:false,&quot;TrimDuplicates&quot;:false,&quot;Properties&quot;:{&quot;TryCache&quot;:true,&quot;Scope&quot;:&quot;{Site.URL}&quot;,&quot;ListId&quot;:&quot;00000000-0000-0000-0000-000000000000&quot;,&quot;UpdateLinksForCatalogItems&quot;:true,&quot;EnableStacking&quot;:true},&quot;PropertiesJson&quot;:&quot;{\&quot;TryCache\&quot;:true,\&quot;Scope\&quot;:\&quot;{Site.URL}\&quot;,\&quot;ListId\&quot;:\&quot;00000000-0000-0000-0000-000000000000\&quot;,\&quot;UpdateLinksForCatalogItems\&quot;:true,\&quot;EnableStacking\&quot;:true}&quot;,&quot;ClientType&quot;:&quot;ContentSearchRegular&quot;,&quot;UpdateAjaxNavigate&quot;:true,&quot;SummaryLength&quot;:180,&quot;DesiredSnippetLength&quot;:90,&quot;PersonalizedQuery&quot;:false,&quot;FallbackRefinementFilters&quot;:null,&quot;IgnoreStaleServerQuery&quot;:false,&quot;RenderTemplateId&quot;:&quot;DefaultDataProvider&quot;,&quot;AlternateErrorMessage&quot;:null,&quot;Title&quot;:&quot;&quot;}"
    BypassResultTypes="True" ItemTemplateId="~sitecollection/_catalogs/masterpage/Display Templates/Content Web Parts/Item_MediumPicture.js" GroupTemplateId="~sitecollection/_catalogs/masterpage/Display Templates/Content Web Parts/Group_Content.js"
    ResultsPerPage="3" SelectedPropertiesJson="[&quot;PublishingImage&quot;,&quot;PictureURL&quot;,&quot;PictureThumbnailURL&quot;,&quot;Path&quot;,&quot;Title&quot;,&quot;Description&quot;,&quot;SecondaryFileExtension&quot;,&quot;ContentTypeId&quot;]"
    HitHighlightedPropertiesJson="[&quot;Title&quot;,&quot;Path&quot;,&quot;Author&quot;,&quot;SectionNames&quot;,&quot;SiteDescription&quot;]" AvailableSortsJson="null" ShowBestBets="False"
    ShowPersonalFavorites="False" ShowDefinitions="False" ShowDidYouMean="False" PreloadedItemTemplateIdsJson="null" ShowAlertMe="False" QueryGroupName="Default" RenderTemplateId="~sitecollection/_catalogs/masterpage/Display
    Templates/Content Web Parts/Control_ListWithPaging.js" StatesJson="{}" ServerIncludeScriptsJson="null" Title="United States" FrameType="TitleBarOnly" SuppressWebPartChrome="False" Description="&lt;%$Resources:Microsoft.Office.Server.Search,CBS_Description;%&gt;"
    IsIncluded="True" ZoneID="ImportedPartZone" PartOrder="0" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True"
    AllowHide="True" IsVisible="True" DetailLink="" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall="" MissingAssembly="&lt;%$Resources:core,ImportErrorMessage;%&gt;"
    ImportErrorMessage="&lt;%$Resources:core,ImportErrorMessage;%&gt;" PartImageLarge="" IsIncludedFilter=";;;;US Region" AuthorizationFilter=";;;;US Region" ExportControlledProperties="True" ConnectionID="00000000-0000-0000-0000-000000000000"
    ID="g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75" ChromeType="TitleOnly" ExportMode="All" Preview="&lt;div ms-webpart-chrome-vertical ms-webpart-chrome-fullWidth &quot;&gt; 
    &lt;div id=&quot;WebPartwpz43_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_ChromeTitle&quot;&gt;  
    &lt;span title=&quot;United States - $Resources:Microsoft.Office.Server.Search,CBS_Description;&quot; id=&quot;WebPartTitlewpz43_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75&quot; States&lt;/span&gt;&lt;span id=&quot;WebPartCaptionwpz43_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75&quot;&gt;&lt;/span&gt;&lt;/nobr&gt;&lt;/div&gt;&lt;/span&gt; 
    &lt;/div&gt;&lt;div WebPartID=&quot;00000000-0000-0000-0000-000000000000&quot; HasPers=&quot;true&quot; id=&quot;WebPartwpz43_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75&quot; width=&quot;100%&quot; noindex ms-wpContentDivSpace
    &quot; allowDelete=&quot;false&quot; style=&quot;&quot; &gt;&lt;div id=&quot;WebPartContent&quot;&gt;  
    &lt;div componentid=&quot;wpz43_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_csr&quot; id=&quot;wpz43_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_csr&quot;&gt;&lt;/div&gt;&lt;noscript&gt;&lt;div id=&quot;wpz43_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_noscript&quot;&gt;It
    looks like your browser does not have JavaScript enabled. Please turn on JavaScript and try again.&lt;/div&gt;&lt;/noscript&gt;&lt;div id=&quot;wpz43_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75&quot;&gt; 
    &lt;div ms-webpart-chrome-fullWidth &quot;&gt;  
    &lt;div id=&quot;WebPart_ChromeTitle&quot;&gt;   
    &lt;span title=&quot;&quot; id=&quot;WebPartTitle&quot; style=&quot;text-align:justify;&quot; id=&quot;WebPartCaption&quot;&gt;&lt;/span&gt;&lt;/nobr&gt;&lt;/h2&gt;&lt;/span&gt;  
    &lt;/div&gt;&lt;div WebPartID=&quot;00000000-0000-0000-0000-000000000000&quot; HasPers=&quot;true&quot; id=&quot;WebPart&quot; width=&quot;100%&quot; ms-WPBorder noindex ms-wpContentDivSpace &quot; OnlyForMePart=&quot;true&quot;
    allowDelete=&quot;false&quot; style=&quot;&quot; &gt;&lt;div componentid=&quot;wpz43_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_ctl00_csr&quot; id=&quot;wpz43_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_ctl00_csr&quot;&gt;&lt;/div&gt;&lt;noscript&gt;&lt;div
    id=&quot;wpz43_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_ctl00_noscript&quot;&gt;It looks like your browser does not have JavaScript enabled. Please turn on JavaScript and try again.&lt;/div&gt;&lt;/noscript&gt;&lt;div id=&quot;wpz43_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_ctl00&quot;&gt;   
    &lt;/div&gt;&lt;div>  &lt;/div&gt; &lt;/div&gt; 
    &lt;/div&gt;&lt;div &lt;/div&gt;" __MarkupType="vsattributemarkup" __WebPartId="{2d49bab8-c61e-44b3-91c2-c1c44a4cea75}" WebPart="true" Height="" Width="">--><!--ME:</spsswc:ContentBySearchWebPart>--><!--PS:
    Start of READ-ONLY PREVIEW (do not modify)-->
    <div ms-webpart-chrome-fullWidth ">
    <div id="WebPartWPQ1_ChromeTitle">
    <span title="United States - $Resources:Microsoft.Office.Server.Search,CBS_Description;" id="WebPartTitleWPQ1"><h2 style="text-align: justify;"><nobr><span>United States</span><span id="WebPartCaptionWPQ1"></span></nobr></h2></span>
    </div><div noindex ms-wpContentDivSpace " id="WebPartWPQ1" allowdelete="false" onlyformepart="true" width="100%" haspers="true" webpartid="00000000-0000-0000-0000-000000000000"><div
    id="ctl00_ctl00_PlaceHolderMain_ComponentMain_ComponentPropertyGrids_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_csr" componentid="ctl00_ctl00_PlaceHolderMain_ComponentMain_ComponentPropertyGrids_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_csr"></div><noscript>&lt;div
    id="ctl00_ctl00_PlaceHolderMain_ComponentMain_ComponentPropertyGrids_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_noscript"&gt;It looks like your browser does not have JavaScript enabled. Please turn on JavaScript and try again.&lt;/div&gt;</noscript><div
    id="ctl00_ctl00_PlaceHolderMain_ComponentMain_ComponentPropertyGrids_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75">
    <div>
    <div id="WebPartWPQ2_ChromeTitle">
    <span title="" id="WebPartTitleWPQ2"><h2 style="text-align: justify;"><nobr><span></span><span id="WebPartCaptionWPQ2"></span></nobr></h2></span>
    </div><div ms-WPBorder noindex ms-wpContentDivSpace " id="WebPartWPQ2" allowdelete="false" onlyformepart="true" width="100%" haspers="true" webpartid="00000000-0000-0000-0000-000000000000"><div
    id="ctl00_ctl00_PlaceHolderMain_ComponentMain_ComponentPropertyGrids_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_ctl00_csr" componentid="ctl00_ctl00_PlaceHolderMain_ComponentMain_ComponentPropertyGrids_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_ctl00_csr"></div><noscript>&lt;div
    id="ctl00_ctl00_PlaceHolderMain_ComponentMain_ComponentPropertyGrids_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_ctl00_noscript"&gt;It looks like your browser does not have JavaScript enabled. Please turn on JavaScript and try again.&lt;/div&gt;</noscript><div
    id="ctl00_ctl00_PlaceHolderMain_ComponentMain_ComponentPropertyGrids_g_2d49bab8_c61e_44b3_91c2_c1c44a4cea75_ctl00">
    </div><div></div></div>
    </div>
    </div><div></div></div>
    </div><!--PE: End of READ-ONLY PREVIEW--><!--CE: End Content Search Snippet-->       

    I am having the same issue.  Did you ever resolve it?

  • Error: Invalid element 'servlet' in content of 'web-app'

    Hi,
    I m working on a project that includes JSPs, whenever I wanna add JSP to my project it shows following compilation error:
    Invalid element 'servlet' in content of 'web-app', expected elements '[error-page, taglib, resource-env-ref, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref, ejb-local-ref]'
    I have thoroughly checked the web.xml. It is perfectly alright. It is as follows:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>myServlet</servlet-name>
    <servlet-class>com.project.MainServlet</servlet-class>
    <init-param>
    Long postings are being truncated to ~1 kB at this time.

    The Complete web.xml is as follows:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <description>Empty web.xml file for Web Application</description>
    <session-config>
    <session-timeout>30</session-timeout>
    </session-config>
    <mime-mapping>
    <extension>html</extension>
    <mime-type>text/html</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>txt</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>montana</servlet-name>
    <servlet-class>com.masstech.montana.boundary.uii.MainServlet</servlet-class>
    <init-param>
    <param-name>db</param-name>
    <param-value>MontanaDS</param-value>
    </init-param>
    <init-param>
    <param-name>user</param-name>
    <param-value>MS</param-value>
    </init-param>
    <init-param>
    <param-name>password</param-name>
    <param-value>MS</param-value>
    </init-param>
    </servlet>
    <servlet>
    <servlet-n[i]Long postings are being truncated to ~1 kB at this time.

  • Adobe Reader X fast web view problem

    Hi,
    When I try to open a PDF with several pages from the web using Adobe Reader X, fast web view function seems not working while I could only view it after download of the whole file completed. Checked and confirmed that "Allow fast web view" selected in the Reader, as well as the PDF file being tested support such function. Here's my OS and software environment:
    - Windows 7 Pro 64-bit with SP1
    - Internet Explorer v8.0.7601.17514
    - Adobe Reader X v10.0.1
    I tried several scenario as below:
    - Disable "Display PDF in browser", no improvement
    - Uninstall Reader X and install Reader 9, test on the same PDF and fast web view working properly
    - Uninstall Reader 9 and install Reader X again, same problem happen again
    - Install Reader X on a freshly installed Windows XP with SP3, same problem appears
    Does anyone experience the same issue? Or any ideas \ solutions? Many thanks.
    Regards,
    Maguyver F.

    Hi
    Security Method: No Security
    Printing: Allowed
    Document Assembly: Not Allowed
    Content Copying: Allowed
    Content Copying for Accessibility: Allowed
    Page Extraction: Not Allowed  <--  Could this be the problem
    Commenting: Not Allowed
    Filling of form fields: Allowed
    Signing: Allowed
    Creation of template pages: Not Allowed
    Thanks for the interest
    Rudi

  • Content Query Web Part - Custom ItemStyle.xsl to display image with hyperlink

    I don't have access to InfoPath or SharePoint Designer to edit the ItemStyle.xsl. So any solution suggested is preffered to be a manual change to ItemStyle.xsl
    I use Content Query Web part (in the main site) to list all the Wikis created in the a sub-site. The idea is to link each wiki to its printable version stored elsewhere.
    The wiki has custom column say "Link" that hold hyperlinks to the printable version.
    I want to create a column in the content query web part that displays an image (same image for all wikis stored in the site Assets) but on clicking takes me to the printable version page.
    I got the image displayed but the hyperlink takes me to the location where the image is stored and not to the printable version page.
    <!--Variable declared to read the link from the column Link-->
    <xsl:variable name="PDFLink">
    <xsl:value-of select="@Link"/>
    </xsl:variable>
    <!-- Image to the hyperlink-->
    <a href="{$PDFLink}">
    <img src="../Images/Icon.jpg"/>
    </a>

    Hyperlink column is treated a little different. The field, by default, puts the URL and then the friendly name concatenated together, but separated by a comma. So I created two variables one that pulls everythng before the comma and the other after. Then
    the html "a" tag looks like this:
    <!--Variable declared to read the link from the column Link-->
    <xsl:variable name="ActualLink" select="substring-before(@LinkColName,',')"/>
    <xsl:variable name="FriendlyName" select="substring-after(@LinkColName,',')"/>
    <!-- Image to the hyperlink-->
    <a href="{$ActualLink}"><xsl:value-of select="$LinkColumnName"/>
    <img src="/Images/Icon.jpg">
    </a>

  • Using Content search web part to retrieve items from another site collection

    I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:-
    -http://applicationname/teamsite
    -http://applicationname/enterprisewiki
    Now I need to display the latest 10 wiki pages from the enterprise wiki site collection(according to the modified date) inside the team site. So I read that using Content search web part allow for cross-site content query. Currently I added a new content
    search web part , inside my team site, and I click on “change query” button. But I am not sure how I can reference the enterprise wiki site collection's wiki page library and to specify that I need to get the latest 10 wiki pages , inside the following dialog:-
    Basically this setting partially worked for me, I provide the following settings inside the “Build Your Query” dialog:-
    From the “Select a Query” I defined the following:- “items matching content type(system).”
    Restrict by app : “Do not restrict results by app”
    Restrict by content type “Enterprise Wiki Page”.
    This showed all the sites, lists and even pages are based on the “Enterprise Wiki Page” content type. But I am facing these three problems:-
    1. The above setting showed only the sites,lists and pages matching the “Enterprise Wiki Page” content type, that exists on another web application, and not that exists inside the current web application.
    2. To test the web part , I got the following results, But I was not able to add additional info for the items such as created by, modified by ,etc.
    3.  Also there is no way to sort the wiki pages by the modified date, as in the Sorting tab inside the “Build Your query” dialog I cannot find the “modified” inside the Soft by list
    So can anyone advice how to fix these three problems

    Hi,
    1. In "Build Your Query" dialog, we can select "Specify a URL" in
    Restrict by app and enter another site URL.
    2. If you want to add more information for the items, we need customize the display template, the following link for your reference:
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/01/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-1.aspx
    3. In the Sorting tab, we can use "LastModifiedTime" to instead of "Modified".
    Best Regards 
    Dennis Guo
    TechNet Community Support

  • Custom SharePoint Master Page with Content Editor Web Part.

    Hi All,
    I have created a custom SharePoint Master Page to apply within my SharePoint Site and it was a success.
    When I want to add the content I have to use the script editor web part and add HTML snippets. Then the styles will reflect correctly. But when I use content editor web part some of the styles do not reflect. Lets assume that if I want to add a H2 with the
    custom color, the color do not show in the ribbon. And how SharePoint know that this is an <h2> and reflect the other styles like padding, margin and so on.
    Please can someone help me to solve this.
    Thanks and regards,
    Chiranthaka

    Hi,
    From your description, my understanding is that you want to add CSS code in your customized Master Page with content editor web part.
    I tested your issue in SharePoint Designer, and I added CSS code successfully.
    I accomplish your requirement with steps below:
    Add a content editor web part in a list and add some CSS code in the web part.
    Open SharePoint Designer, enter the master page.
    Insert a content editor web part under INSERT tab in the Ribbon.
    Open the list that have edited in step1 in the SharePoint Designer.
    Copy code from the list to the Master Page as the screenshot below.
    The screenshot below is my result:
    In addition, why do not you add CSS code just with <style> tag in your page? Just add CSS code as below(in this method, you do not need any web part.):
    <style>
    h2{
    background-color:green;
    </style>
    Best Regards,
    Vincent Han
    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]

  • Target Audiences in Content editor web part created from Snippet Gallery

    Hi,
    I have created a Content editor web part from the Snippet Gallery in SP 2013 Office 365 and placed it in my master page.  It works, but not the Target Audiences.  It's linking to a text file which displays, but I only want certain AD groups
    to be able to view. Everyone can see the web part. 
    Any help would be appreciated.
    Thank you!

    I am having the same issue.  Did you ever resolve it?

  • How to modify title and tooltip text in Content Editor web part

    I have inherited a site with a page that includes two Content Editor web parts. The web parts have been left with the default titles (Content Editor [1] and [2]) and mouse-over text.
    I want to set these to something more appropriate so I choose the option Edit Page (to edit the web parts on this page). I can move the web parts around (so definitely in Edit mode) but if I click the Edit Web Part Properties the page refreshes but no properties
    or options (or errors) appear.
    How do I modify these web parts?

    When you select the edit web part options, the page should reload with the configuration options on the right hand side. This will include several collapsed sections, namely: -
    Appearance
    Layout
    Advanced
    If you maximise the appearance one, you'll see a text field for "Title."  Edit this to what you want and you'll be able to rename these.
    If you can't see the options, make sure to scroll to the far right hand side of the screen.  Sometimes on larger resolution monitors, they can appear hidden.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Resize Content Editor Web Part to Page Width

    I have a content editor web part in page.   The CEWP contains a javascript based menu and an Iframe.
    The problem is that when I resize the page, the width of the CEWP does not size to the width of the browser.
    How can I get the CEWP to resize to the browser?John Bailo

    John, can you provide insight on the script you used for this? I'm trying to accomplish the same thing.

  • Need Help ! Content Search Web Part with default callout menu as docoument library

    I want the above functionality with the Content Search Web Part(CSWP).

    Hi,
    Per my understanding, you might want to create something like a
    Content Search Web Part(which is introduced in SharePoint 2013) in your SharePoint 2010 environment with the callout menu functionality.
    As there is no OOTB Content Search Web Part in SharePoint 2010, a suggestion is that you can build a custom web part with the help of
    Search API and create custom callout menu for it.
    Two demos about
    how to work with Search API in SharePoint 2010 for your reference:
    http://nikpatel.net/2013/02/21/step-by-step-building-custom-sharepoint-2010-search-applications-using-keywordquery-api/
    http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2010/08/12/how-to-use-the-sharepoint-2010-enterprise-search-keywordquery-class.aspx
    For about
    how to create a custom callout menu, the JavaScript plugins below would be helpful:
    http://www.jqueryrain.com/demo/jquery-context-menu/
    Thanks 
    Patrick Liang
    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]

  • Content search web part in shar Point 2013

    how to write query in which parameters will comes from end user and depend on which result will come

    Hi,
    You can add the query parameter in the content search web part as shown in the below screenshot.  "MyParameter1" is the parameter you will be passing from the URL.
    Please mark it answered, if your problem resolved.

  • Content Search web Part on Variations label ?

    Hello Experts, 
    I have set up Variations in SharePoint 2013 and its working fine. As of now I have only one Label and in Variations Settings I have selected to "Update web part changes to target web pages when Variations source page is updated". 
    On Source Label , I added a Content Search Web Part (CSW) to pull the items from a list that is on the top level ( root of the site collection so that query will remain same on all labels), working fine , Now i go to my target site and sync with source and
    it is synced successfully. I can see the CSW was also update on the target page but it says "sorry something went wrong". when I edit CSW on the target site , search query from source is also present and it works fine in edit mode when I click on
    Test query button ,  but when I save it or publish target site web part shows same error again" sorry something went wrong" .
    Is there some settings missing?
    Can someone please confirm if CSW works with variations on labels ? 
    Thanks in advance for any help. 

    Resolution : Issue was resolved after creating folder in "Language files" library as mentioned in the link below.
    http://richardstk.com/2014/11/18/sharepoint-2013-content-search-web-part-one-or-more-of-the-following-resource-files-failed-to-load/ 
    Still trying to figure out why this happens , every time I create a new label I have to go and create folder manually and paste "CustomStrings.js" file in it. any body knows ?? 
    Thanks. 

Maybe you are looking for

  • Browser should show ALL images, in all formats.

    I recently opened an image for editing from Lightroom to Photoshop, corrected some perspective distortion, and saved the result as a PNG.  Lightroom then failed to show the new image, even after I synchronized the folder.  A respondent in the Lightro

  • Error when retreiving UWL items in webdynpro application

    Hello, I am getting nullpointerexception when retreiving the items from the UWL in webdynpro application in java. error is throw at the following line NullpointerException at com.sap.netweaver.bc.uwl.core.ItemCacheManager.internalGetItemsForView(Item

  • Lightroom cc wont open

    Lightroom won't open I did as above mentioned on discussion. I sign out from photoshop cc from help and I sign in from creative cloud app and I click Lightroom cc. A window  pop up  says that we need to upgrade catelog . I click on upgrade  ,another

  • Bigfile or smallfile tablespace?

    Hi community, I'd like to set up a Oracle database (Version 10.2.0.3 64-bit) on a Windows Server 2003 (64-bit). Server Hardware: - Dual Core AMD Opteron - Processor 8224 SE, 3,21 GHz - 16 GB RAM Storage: - HP StorageWorks MSA 1000 - 3 x 250 GB (RAID

  • Functiopn module associated with basic type of idoc without process code

    can i know the function module assciated with basic type of idoc if i do not know the process code for the same