Hot answers tagged

8

Document ready event gets fired when the DOM get loaded. This doesn't necessarily guarantee that the JS files required for SharePoint JSOM is already loaded. The best way is SP.SOD.executeFunc('sp.js', 'SP.ClientContext', readyFunction); function readyFunction() { Function1(); Function2(); Function3(); }


4

Extensive explanation, tutorial, etc.: Find Number of Users Currently Logged on to a SharePoint Site The gist of it is that you don't have OOTB features to show you the number of currently logged in users. You can check IIS for current users, but you don't know whether these are logged on or not. The solution explained in the blog article is ...


3

Actually haven't had my coffee jet and read your question like you needed help with MDS - if you wan't to enable MDS again (which you should do because it's actually awesome), below are some hints that will help you. Some troubleshooting help for your problem: Check your browsers console for errors Access the service via the URL directly (via browser ...


3

You can put <script type="text/javascript" src="/_layouts/Scripts/jquery-min.js"></script> in master page to access this javascript globally in all pages. Or you can put that script tag in your custom webpart / content editor webpart / script editor webpart to access that script only for that webpart only.


2

Thank you for the answer Hardik. The topic you linked to seems to be the best and only example of doing this. Even though, I came up with another solution (an easier version of it), so I am posting it as an answer, in case some other people find it useful in the future :) What I did: Created a global List "UsersActivities" Creted two columns in the ...


2

The MVPs are busy with https://github.com/ngOfficeUIFabric/ng-officeuifabric/ which has a Table component: http://ngofficeuifabric.com/demos/uifTable/ You need to go for AngularJS and do more programming yourself, jQuery dataTables is more plug and pray


2

Have you looked at datatables? https://editor.datatables.net/examples/advanced/deepObjects.html


2

The condition of "if" is missing the character $ or the word jQuery, that identifies you are using a jquery selector for the element. Try to replace it for: if ($("input[title$='Phone Data Collection']").is(':checked'))


2

Base on your code, the value you get is a string not an object. so the code : var relateditmid = relateditm[0].ItemId; will return the item ID after converting the string relateditm to Object using eval funtion. var relateditmObj = eval(relateditm); var relateditmid = relateditmObj[0].ItemId;


1

The solution that Erin is fully explained in this blog post. It is using the SPServices to query the Picture Library and Bootstrap Carousel to render. The other option that I used in a very recent project was the solution provided in Sharegate web site and I do think it is a more robust solution since it is using Content Search Web part with a custom display ...


1

What is Survey in SharePoint 2013? Survey a special kind of list that enables the owner to create questions, have multiple people to respond, and summarize the results. You can use surveys to ask people what they think about issues, how to improve your processes, and many other topics. You can collect the results by using several different types of ...


1

.ui-accordion .ui-accordion-content { padding: 1em 2.2em; } The issue is with this css. If you change it to px instead of em, it functions correctly.


1

What you could do, is to override the function in Core.js on the current page instead. If its a library the actions are added in the AddDocLibMenuItems. And the View/Edit Properties are added from the AddShareNamespaceMenuItems function. So you could add this function to your page, just make sure its loaded after Core.js: function AddDocLibMenuItems(m, ...


1

You can do this even without using $(document).ready(function(). Attach JS in your webpart. <script src="/sites/DevNum/testjd/SiteReformeTest/js/palette.js"></script> You just need to remove $(document).ready(function(){ from your code. Write only below function in your JS file. function getItemsToBeUpdated() { ... ...


1

You should try below code without $(document).ready(function(){ $( "#palettebutton" ).click(function() { ---------- Your code will be here ---------- alert( "Handler for .click() called." ); });


1

Just resolved my issue. I referred to this question's answer and added .attr('onclick', '') This clears the onclick attribute in the html. So my code now looks like this: $(document).ready(function(){ $("table#idAttachmentsTable a").attr('onclick', '').click(function (event) { event.preventDefault(); var ...


1

Like Amal Hashin said, you've opened a <FieldRef>, but you should close it like that : <FieldRef Name='Mise à jour parc' /> <Value Type='Text'>Non</Value> Also I saw a mistake in your code. You use collListItemToBeUpdatedReventeas variable to print the result of the query. The problem is that you use that variable several times in ...


1

Your query is wrong. Try below query instead camlQuery.set_viewXml("<View> <Query> <OrderBy> <FieldRef Name='Mise à jour parc'> </FieldRef> </OrderBy> </Query> </View> ");


1

You may need to wrap or delay that function until SharePoint controls finish loading that with _spBodyOnLoadFunctionNames: So: function fireOnListItems(){ $( ".wj-cqwp-ProjectDashboard ul li" ).each(function() { // big chunk of code above entered here }); } _spBodyOnLoadFunctionNames.push("fireOnListItems");


1

At first glance (and its late saturday afternoon here, and the sun is out and its above 20 celcius for the first time, and I have had some beer) You are running into JavaScrip scoping issues: var passedData = { dfd: d, idx: i }; is the line that worries me, (it is almost a philosophical question... but that must be the beer) where does i come from? You ...



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