Tag Info

Hot answers tagged

3

scenario: when you enter form editing and has some user of this picker people, this is the "oldHtml"? (I'm finding this a bad practice) try using this code: var getIDPeoplePicker=$("div[Title='Column Name of the people picker here']").id; var ppobject = SPClientPeoplePicker.SPClientPeoplePickerDict[getIDPeoplePicker]; var usersobject = ...


1

Try this jQuery().SPServices({ operation: "GetListItems", async: false, listName: listName, CAMLViewFields: "<ViewFields><FieldRef Name='Values'/></ViewFields>", completefunc: Function.createDelegate(this, callback) }); callback = function (xData, Status) { var values = new Array(); ...


1

I think you should try using the completefunc property of SPDisplayRelatedInfo parameters to pass a function which runs your cleanup code. This will allow it to run after the request has been completed and the extra table has been added to the page. The document.ready() event is similar to a _spBodyOnLoad function in SharePoint. Both waits for the main ...


1

Ah! I found a solution! http://jasonscript.wordpress.com/2013/08/07/javascript-and-working-with-the-sharepoint-2013-people-picker/ Here is my working code: var PickerTitle = "Assigned To"; var PickerDiv = $('[id$="ClientPeoplePicker"][title="' + PickerTitle + '"]'); var PickerEditor = PickerDiv.find('[title="' + PickerTitle + '"]'); var PickerInstance = ...


1

This is easily done by creating a custom list with a 1 number column to store the value. Create an element in this list with 0 as value. Then create a script that gets and increments this value through the REST API for lists, and the saves the new value in the list. Add this script in a Script Editor Web Part.


1

I'm not sure what you mean with freeze, but I can't see where you call or close the "working on it". I made simple example with dummy code, maybe it will help you. Because I have never seen that async calls have locked the UI etc, so you could try this approach: SP.UI.ModalDialog.showWaitScreenWithNoClose("title", "message", 400, 400); var ...


1

We have used Spin.js in several such scenarios. Usage Define a <div> in the HTML markup <div id="userTableSpinner"></div> Then in Javascript code find the div and start spinner and finally stop it once all processing is done: var userTableSpinner; function someProcessStartsHere() { if (userTableSpinner == null) { userTableSpinner ...


1

It's not a complete answer yet, but I got a piece of the answer, hence my post. I spotted that the MDS (Minimal Download Strategy)*(1) is altering the behaviour my custom script. For some page loads, the MDS is used, generating URLs like start.aspx#/Lists/link/to/my/element. When the page is dynamically created with the asyncDeltaManager like this, my ...



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