New answers tagged

0

You can use some jquery. The caution is to make sure you don't break the SP UI when you make the change. #soTesting. This is working in my 2010 site now. In 2013 the doctype is set to HTML so the issue would not happen. if ($('meta[http-equiv=X-UA-Compatible]', top.document).attr('content') == 'IE=8') { $('meta[http-equiv="X-UA-Compatible"]', top....


3

Here is a minimal HTML file that will make use of SP.UI.ModalDialog: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" type="text/css" href="/_layouts/15/1033/styles/corev15.css"/> &...


0

Just replace the element '#name' for whatever your "hello, userName" is. function getCurrentUser() { console.log('Made it'); var ctx = SP.ClientContext.get_current(); var web = ctx.get_web(); var currentUserObj = web.get_currentUser(); ctx.load(currentUserObj); ctx.executeQueryAsync( ...


0

Add a jquery script that will move the existing webpart's div element to the desired location. This should looks like: $("#source").appendTo("#destination"); You can add the script in a Content Webpart or script webpart


1

Your CSS styles are not properly coded to make the fonts in the correct place. You have only added styles for Image not for the lists on the right side. it would be better if you create a table and add the images in one column and the text on the next column.


0

Try putting this into your script editor web part or place it all in a .txt file and reference to it using a content editor web part (I find this way easier to work with). You'll have to modify the HTML to whatever parts you are using. <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script> <script type="text/...


0

using Jquery should by $(xData.responseXML).SPFilterNode("z:row").each(function() { var text = $(this).attr("highriskCountries") $("select[title='country1']").append($('<option/>', { value: text, text: text }) }); Greetings


0

Kindly refer to the attached code using SPServices to bind drop down list. <script src="/_layouts/divy/Scripts/jquery-1.7.min.js" language="javascript" type="text/javascript"></script> <script src="/_layouts/divy/Scripts/jquery.SPServices-0.7.0.js" language="javascript" type="text/javascript"></script> <script type="text/...


0

You can add it in the Master Page level or in the page Layout corresponding to your Page


0

You can entirely change the look of a SharePoint site as well. You need not go for another HTML page to add stuff. It is easier to brand your SharePoint site itself. You will need to customize the master page. Have a look at this article If you are using SharePoint 2013. It is easier to customize master pages. Here are few links for your reference. msdn ...



Top 50 recent answers are included