Tag Info

Hot answers tagged

5

I guess you could always use a site collection token in your URL. ~sitecollection URLs and tokens in SharePoint 2013 If that don't work out for you, this blog post has a lot of great examples when working with masterpages and references. Use Site Url in SharePoint Update Try using a scriptlink instead. I'm unsure if encoding is needed thought. Try to ...


5

First, let's just clarify that JSLink is not equivalent to Client Side Rendering. JSLink is merely a property on SP objects that lets you attach Javascript files to them. However, the ability to attach a Javascript file to a SP object is enormously useful for CSR. Using the JSLink property is one of the easiest ways to apply CSR. And I would say that ...


3

@johnG For autocomplete capability you can use jQuery as said by Kalpesh Vaghela To retrieve list items from a SharePoint list, you can use Client Object Model for JavaScript Reference : https://msdn.microsoft.com/en-us/library/office/hh185007(v=office.14).aspx#sectionSection0 Better not to use web services (recommended by Microsoft) Reference : ...


3

You cannot do it OOTB. You need to use JSLink,SPService or Jquery for that You can get some reference from Autocomplete with SPServices Hope it will help you.


2

Here's a complete implementation of jQuery autocomplete for a normal input box with contents from a sharepoint list. <script src="http://YOURSITEHERE/jquery.js"></script> <script src="http://YOURSITEHERE/jquery-ui.js"></script> <script type="text/javascript"> var SITE_URL = "http://YOURSITEHERE/"; var LIST_NAME = "MyList"; ...


2

I had the same issue and as you said none of the CSS of Script did work for me as well. So I have to patch something with below script. This should be considered as a last option if you have any other solution available. So if you try this, you will have your issue fixed with below script: var interval = null; //Defines the start interval variable ...


2

Why do you use Jquery 2 if you want to Support IE8? In the Notes of Jquery 2.x you can find jQuery 2.x has the same API as jQuery 1.x, but does not support Internet Explorer 6, 7, or 8. So: Change to Jquery 1.x if you want to Support IE8


2

This option is available if you have Publishing enabled on your site, and does not require any JavaScript. Go to Site Settings, find the Navigation link under Look and Feel. Select one of the Structural Navigation options (or if the parent is using Structural Navigation, you can select to use the same as parent). Towards the bottom will be a section ...


1

In your custom page layout first add path to .js file (put path to src="") and then code. <script src="jquery-1.8.3.min.js">//<![CDATA[ //]]> </script> <script>//<![CDATA[ $(document).ready(function(){ //some code }); //]]> </script> <!--MS:<Publishing:EditModePanel ...


1

Mark, See if this can help you. If you are writing the custom code this can set you the starting point.


1

It worked! Thank you for your help @Keerthi! For future confused individuals like myself this is what worked: With the jQuery library in the Site Assets library I created a new Script Editor web part with the following snippet: <script src="/SiteAssets/jQuery.1.11.3.min.js" type="text/javascript"></script> **alternatively you can replace the ...


1

You mention jQuery, but it can be done without. SharePoint 2013 has its own subset of jQuery called mQuery So a (rather brute) method is to replace all html inside the TH tags with its own label (from the A tag) EnsureScriptFunc('mQuery.js', 'm$', function() { m$('[id^=diidSort]').forEach(function(tag){ if(tag.tagName==='A'){ ...


1

Each managed property shown in refiner, renders a div with a refinername attribute, which actually defines managed property's html mockup. Below is the sample code: //check the language var language = window.navigator.userLanguage || window.navigator.language; if(language == "en-US"){ //hide/show Managed property's div ...


1

Create web service using PHP, then call the web service from custom Approval workflow. It means you will need to create copy of the existing Approval workflow so that you can modify it and add step that uses the "Call HTTP Web Service" action. Instructions on using the action can be found here. On SP2010, you can use this CodePlex project to include Web ...


1

Either you gotta find ID/title/text of Select All like shown below, and attach click event using jQuery $(".ms-RadioText[title='Select All'] :checkbox").click Here is working example: https://jsfiddle.net/ybyjh1tw/


1

A alternate solution is to use CSS instead of jQuery. To change a standard loading spinners in SharePoint 2010 you could implement css to replace the gif with a different one. The old gif will still load but will be displaced and give room for the new spinner. [src*='loadingcirclests16.gif']{ display: block; -moz-box-sizing: border-box; ...


1

Mobile view does not use the same markup, you can test this in your desktop browser by adding Mobile=1 to the URL. A field will look like this: <div class="mb-list-detail-property-panel"> <div class="mb-list-property-name"> UnitId </div><div class="mb-list-property-value"> <input ...


1

If it's Safari on Iphone, then add classic way of getting elements & then hide them like document.getElementById("myDIV").style.display = "none";


1

I am not sure from the screenshot if you referencing the jQuery file at the correct position. It may lead to not loading of the script. Please try adding a simple script with an alert, if the alert pops up then the position is correct. For the reference error, I am never been able to get CDN working, you can manually store the Jquery file in site assets ...



Only top voted, non community-wiki answers of a minimum length are eligible