Tagged Questions

An open-source, cross-platform JavaScript library, now endorsed by Microsoft

learn more… | top users | synonyms

0
votes
1answer
23 views

Collection has not been initialized when called in async function

function populateList(){ var _clientContext; var _web; _clientContext = new SP.ClientContext.get_current(); _web = _clientContext.get_web(); var listTitle = "Data1"; var list = ...
1
vote
1answer
27 views

How to send meeting request to user from sharepoint?

I have a person field in SharePoint form and want to send outlook meeting request to person entered in Person field. **Note:**I want to this through JQuery/JavaScript/SharePoint client object model ...
0
votes
0answers
17 views

Jquery Document Ready function is not firing in User Control - SharePoint Project

Here is my code : <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div ...
0
votes
0answers
7 views

spfdropdown conflicts with calendar webpart

I am setting up a foundation 2010 site and am using spfdropdown (from https://gist.github.com/alirobe/1312059) to mimic dropdown functionality offered in sharepoint server. This solution works great ...
0
votes
3answers
29 views

Hide SuiteBar links Office 365

I have previously used jQuery to hide the Suitebar links in SP 2013. This was on-prem install. When I try in Office 365, it seems to ignore the code. //Neither of these work: ...
1
vote
3answers
31 views

How to Add a tooltip in Radio Buttons when checked in newForm.aspx page

I have custom list with a field type of radio buttons with 4 choices. I want to be able to show a box on right hand side when each radio button is checked .How do i do that? So far i was able to ...
1
vote
1answer
39 views

Load list item to dispaly get_fieldValues?

I'm using SharePoint online and have a SharePoint-hosted app. I have a page with a question form that send data in to Sharepoint using listItem.set_item('GEN_1_blabla', $('#GEN_1').val()); Now in ...
0
votes
1answer
30 views

Sharepoint custom list: Hiding and showing column based on drop down dependancy

I'm trying to add javascript to the dispform.aspx page of my form to hide certain columns/fields based on a dropdown menu. When I add the code to the CEWP it simply adds text above the fields; the ...
2
votes
2answers
70 views

In 2013 using JavaScript how do you empty a people picker field?

In SharePoint 2013, I want to delete all existing values in a people picker field using javascript or jquery. Simply using .removeAttr('value') or .val("") does not work.
1
vote
0answers
24 views

addEventListener compatibility issue in IE

I am trying to using this plugin in sharepoint 2010. http://tympanus.net/codrops/2013/07/30/google-nexus-website-menu/ But in IE 8 and older versions, its give me some 'addEventListener' and ...
4
votes
3answers
70 views

Feature “SharePoint Server Publishing” disables jQuery

I'm currently configuring a SharePoint Online (Office 365) site where I need to use jQuery. A very common scenario where I do as I usually do. So I activate Site Collection Feature SharePoint Server ...
0
votes
0answers
40 views

How do I display Sharepoint 2010 list items within an external (intranet) HTML static web Page

Overview: I'm currently able to display Sharepoint 2010 List items from 3 Lists within an external HTML page on our company intranet. I use a JQuery script that pulls the RSS feed for each list. This ...
3
votes
1answer
48 views

Click anywhere in data view group by for expand/collapse

I'm trying to get the functionality of being able to click anywhere in the group by header element to expand and collapse the group. I have gotten close where I can click anywhere in the element ...
1
vote
1answer
19 views

Animate left navigation

I am trying to do some branding in SharePoint 2010, how can I make the left navigation as http://tympanus.net/Blueprints/SlidePushMenus/ 'Show/Hide Left Slide Menu' The code which I try left ...
0
votes
0answers
43 views

Loop through array and update metadata on files using relative URL only

I've got a script that combines JavaScript, jQuery, and SPServices to build an array of documents, copy each file or subfolder to an alternate location, then update the original file to indicate it's ...
0
votes
2answers
31 views

Add run with run with elevated privileges for spservices?

I am unable to add users to the group using custom button and SPServices,only site administrators can only able to add the users to the group.can any one help me how to add the run with elevated ...
0
votes
2answers
30 views

Add users to the group using SPServices?

I created a button in sharepoint site using content Editor,when the current users click on the button he must have to add to that particular group,can any one give example how to add current users to ...
3
votes
1answer
52 views

Checking CSOM people editor value

How can we check the user entered key in Client people editor is user or group? I have created a people editor in CSOM. I can save the value to the list successfully. But before saving i need to ...
0
votes
0answers
29 views

Using SPServices' GetListItems to sort by what the current user has “liked”

I'm using getlistitems to grab list data in SharePoint 2013, and I've managed to be able to filter by the current user's "liked" list items... but is there a way to sort by what a user has liked and ...
0
votes
4answers
59 views

Two jquery webparts on same page. one not working

I have two web parts that use jquery on the same page. this causes one of them not to work. One of them is an actual web part with a reference to ~SiteCollection/Style ...
0
votes
1answer
16 views

Overide Core.js Options?

What is the best way to be able to manipulate objects in the DOM using JQuery/JavaScript, specifically in an InfoPath browser enabled form in SharePoint 2010? If I try to grab a value from an input ...
0
votes
0answers
29 views

discussion board

i am trying to pull and display the items from dicussion board in a content editor webpart and also a column to show number of posts in the discussion board . Any suggestions on how to approach using ...
1
vote
1answer
73 views

Updating document metadata using Javascript or jQuery

I have a large, complicated script that copies selected documents from Library A to Library B when a user clicks a button. At the end of the script (as a final step), I'm calling the three functions ...
0
votes
0answers
23 views

jQuery .validate - submit don't fire after error

Validation plugin works fine except following scenario: user click submit button while text box is empty, get error message, then fill text box and click button again. This time nothing happens. Any ...
1
vote
3answers
136 views

Jquery to display the list items in a content editor webpart

Hi Am using sharepoint 2010 and am trying to find ways to display the list items in a content editor webpart using jquery . I want to display them i a html table. Let me know any kind of suggestions ...
0
votes
1answer
10 views

When I add a CEWP my columns titles are condensing

I am following these steps to create a label on my SP new form. When i add the CEWP and insert the code snippet that is provided in the instructions my title columns condense and go from looking like ...
0
votes
0answers
27 views

Update webpart sharepoint 2013 with jquery

I want to update my custom webpart, I tried the UpdatePanel but it updated all the Webparts in my page, so I looked for the Webpart Id then I wrote a script : <script> ...
1
vote
1answer
110 views

SharePoint 2013 Rest API OData Query

I am calling rest uri from jQuery ajax with filter string comparison startswith as below ...
0
votes
1answer
37 views

how to access input element in parent from inside iframe in sharepoint

I have the following jquery code and I have inserted it in an html page where I call it inside an iframe in a SharePoint page. I am using this line of code to get the id from the control in the parent ...
0
votes
0answers
45 views

jQueryUI autocomplete zIndex issue inside SP.UI.ModalDialog

I'm having an issue with zIndex for jQueryUI autocomplete in a page, autocomplete list is hidding behind the SP Modal popup. Below is the code in my Page1, where i'm trying to show a page ...
0
votes
0answers
24 views

Click to Auto-Upload Templated File in SharePoint

I have a unique use-case that I am trying to address for a project that I am working on. I am looking to find a way to bind an onclick event to the SharePoint file-upload function to upload a file ...
0
votes
2answers
26 views

Javascript isn't linking in IE for a webpart

I'm adding a web part(farm solution) into SharePoint 2013, the problem that I am receiving is that any scripting link I add(specifically jquery in this example), doesn't seem to be found by internet ...
0
votes
0answers
50 views

Sharepoint attachment control

I'm using designer to create a custom edit form and would like to create two controls in that would upload attachments to the list item, I'm using - ...
1
vote
2answers
52 views

Strategy To Manage Deployment Of jQuery In SharePoint?

There are a multitude of examples where jQuery libraries and plugins are used in SharePoint 2010 and 2013 solutions. There are problems with this approach because multiple versions of jQuery can be ...
0
votes
1answer
53 views

drag and drop folders,Items in sharepoint

I need to drag and drop folders between SharePoint libreries. drag drop items between list. Those are not offered in SharePoint 2013. DO I need a jquey script? And if any one have an idea how to do ...
0
votes
3answers
61 views

How do I add bold text to my form?

Using a script editor on my new form I added this script. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script> <script ...
0
votes
0answers
29 views

SharePoint 2013 how to add jquery image loader for image library images

I have added an image library in my SharePoint 2013 site I want that when a user clicks an image it should be loaded with any JQuery image fancy box library to display full image with pup up in ...
1
vote
0answers
84 views

Add Read more link in Summary view of Announcement web part sharepoint 2013?

I have added an Announcement Web part in my SharePoint 2013 in summary view I want to add read more link please help me. I am new to SharePoint Development I want to add a Read more link when my ...
0
votes
2answers
86 views

List Query - How to get attachments link

I have a query: function consultaPropostas() { var customlist ; var clientContext = new SP.ClientContext.get_current(); var oWebsite = clientContext.get_web(); var oList = ...
0
votes
1answer
31 views

The deployment type “TemplateFile” of file “xxx.js” in Project Item “Layouts” is not compatible

I have deployed my SP solution to farm successfully with some js files, those are added to layout mapped folder. Then I want the same solution to be deployed to SharePoint online. I just chaged the ...
1
vote
2answers
54 views

jquery in SharePoint 2010 layouts folder not working

I have placed the jquery library script in the layouts folder on my server: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\CustomScripts for what ever ...
0
votes
1answer
19 views

How to Determine if One or More Fields in Custom Edit Form have Validation Errors

So I have a DVWP with an Edit Form. The form uses jQuery tabs to organize the fields for the different roles that edit the item. I would like to show a message at the top of the form if at least one ...
1
vote
0answers
41 views

Dilemma… jQuery, SharePoint publishing page layouts, and dynamic page properties

Dilemma: I am trying to create/edit a publishing page layout with jQuery accordions that pull in dynamic page properties. When I implement my solution, it works; however, I am no longer able to edit ...
0
votes
0answers
166 views

Filtering MultiLookup Value Using SPServices SPCascadeDropdowns / SPFilterDropdown CAML Query Call

I need to filter a multilookup field in the list form and for that i am using SPServices lib, I have the following function call to SPCascadeDropdowns method of SPServices: /* FILTER LOOKUP - SP ...
1
vote
2answers
62 views

jquery to get xml, file urls ending with x_.000 instead of file name

I'm trying to return the URL of some attachments for a topic. I try to do the following to receive the url: $(document).ready(function() { GetFiles(); }); function GetFiles() { ...
0
votes
0answers
26 views

Recall all javascript libraries when a change on list is made

I have JS libraries such as jquery, knockout and also css called from master page seattle.master: <script src="HIDDEN/jquery.js" type="text/javascript"></script> <script ...
1
vote
1answer
77 views

How can I copy lookup field value to another site list in lookup filed?

How can I copy lookup field value to another site list in lookup filed? Situation, I’ve a main site list , list1 and there have lookup field from list11, I've build sub site and copy my list1 from ...
1
vote
1answer
95 views

Onchange People Picker

I have a problem changing a people picker in a custom form. Need when writing or changing the value in the people picker I know, I'm using javascript using jquery. Already tried using this code: ...
0
votes
1answer
40 views

How to load jquery using spBodyOnLoadFunctionNames.push function

I need to refer jquery in spBodyOnLoadFunctionNames.push function. I am doing it like below _spBodyOnLoadFunctionNames.push("Testfunction"); function Testfunction() { ...
0
votes
1answer
44 views

Saving content in a <div> with jQuery in SharePoint 2010

I have written a tiny bit of code that displays an information box for the users and a button to make this information box go away. I have placed the code snippet in a Content Editor webpart on the ...