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

learn more… | top users | synonyms

1
vote
3answers
914 views

How to get the Login Name of user from people picker control using jquery?

I want to get the log-in name of user from people picker control using jquery. I have a code which displays the display name of the user but I am not able to get the login name. Code is as follows: ...
1
vote
2answers
929 views

How to set a value to the taxonomy field using jquery?

I have custom list in which there is one user field and a taxonomy field. I want to populate the taxonomy field value automatically based on the value entered in the user field, the value to be ...
0
votes
2answers
398 views

Unable to get user name from the People Picker control using jQuery [duplicate]

I want to do some operation based on the user entered in the people picker control. My code is: $(document).ready(function () { $("input[title='Project Owner']").focusout(function () { ...
1
vote
1answer
75 views

Get the REST method to work

Why the following code does not work? What do I need to do? <script src="<MyServerName>/SiteAssets/jquery-1.9.1.js"></script> <script ...
0
votes
3answers
381 views

Multiple lists merge in to single list

I have 3 lists Initiatives ----------- Initiative (single line text) Themes ------ Theme (single line text) Initiative (Lookup from Initiatives:Initiative) Features -------- Feature ...
0
votes
0answers
43 views

JQuery unconsistant behavior on sharepint display form depending on how i open the page

have a sharepoint calendar whose display form I have added a jquery script to using the CEWP. When I click on an item on the calendar for display I get different behaviors if I click the item within ...
0
votes
0answers
77 views

pre populate fields in modal document upload window

Ive been strugling with this all day, every solution ive found seems to be about how to pass in arguments into modalwindows. But nothing on how to populate fields with them :/...what also complicate ...
0
votes
0answers
53 views

Problem updating list when clicking in another, using jquery and Update Panel

Im trying to update a list in updatepanel when clicking in another list. my solution is prolly not the nicest but it kinda works. what I noticed is my ".click" gets called multiple times, one extra ...
1
vote
2answers
1k views

how to enable/disable a dropdown based on value in another dropdown in sharepoint 2013

I want to enable/disable a dropdown field based on the value of other dropdown field in the sharepoint 2013 form.I know that it is possible using jquery but i dont know how to write? help me to get ...
0
votes
1answer
7k views

Setting the value of a lookupfield(sharepoint dropdown formfield) in sharepoint 2010 list forms

How can i set the value of sharepoint form field dropdown box(lookupfield) in sharepoint list form when the form gets saved (using jquery) note: the lookupfield (dropdown formfield renders as input if ...
0
votes
2answers
115 views

Access DVWP z:row with Javascript [duplicate]

I need to loop through the z:row of a Data View Web Part on the client using JavaScript to push to an array and then use the JavaScript CSOM to create a new list item in an existing list. var ...
0
votes
1answer
64 views

SharePoint List add comments as formatted text

I'm not sure if this is even possible but thought someone must have done something similar. What I'm looking for is the ability for a user to enter a "comment" and that comment populate another field ...
3
votes
3answers
1k views

Prevent/override standard Modal Dialog close button(X) from closing

I want to validate custom modal dialog form and if its not ok, prevent form from closing. For this purpose, I attached to X-close-dialog-button. Problem is to prevent it's default behavior. function ...
1
vote
3answers
214 views

Using javascript to apply “noindex” to get SharePoint to avoid crawling certain content

I have a problem with navigation elements being crawled on our SharePoint site. These elements come from a custom control that's used for building the site navigation, so the output is just html that ...
0
votes
3answers
94 views

How to design look up list for 20 sub-sites?

Say, I have 20 sub-sites under corporate sales. There are 3 lists that drives the look up columns. Country (USA, Mexico, Norway, Morocco, etc.) Regions (SW, NW, S, W, N, MW, etc) SalesArea (Service; ...
0
votes
1answer
164 views

Help with SPCascadeDropdowns cascading lookup column

I have this jquery added to my editform.aspx in SharePoint. I want the childcolumn to also have unique values, although it may contain duplicates example below. Example. When I select mycountry, I ...
1
vote
2answers
202 views

CAML In clause - Value does not fall within the expected range

I get a 'Value does not fall within the expected range' error from the following CAML. <Query> <Where> <In> <FieldRef Name="ID"/> <Values> ...
0
votes
1answer
123 views

Mega-menu tab on multiple site collections

I would like to create a tab in SharePoint 2007 that is a mega menu. This mega menu tab will be implemented on multiple site collections. It will be a part of the global navigation in each site ...
0
votes
1answer
90 views

How to add a rule to a RichText Editor using jquery.validate.js plugin?

I'm currently adding some customizations to a SharePoint 2013 form using jQuery. I could add some rules to the 'input' and 'select' elements, but I can't do it for a RichText Editor. Did anyone try ...
0
votes
0answers
71 views

Trying to get list of groups a user belongs to

I came across this post showing how to create a permissions management webPart using SPServices. I tried to do it in SP2010 but keep getting error " User not found". I think it has something to do ...
2
votes
2answers
2k views

Left navigation bar customization based on user permissions

Hi I have to change my left navigation based on specific user permission. is that possible without change in masterpage . I know jquery is one solution but any other way through we change left ...
0
votes
1answer
117 views

Sharepoint 2010 Javascript Client OM, get user data (not current user) via javascript object model

There are plenty of examples of getting the current user via javascript object model in SharePoint 2010, but I am looking for help with getting any users email/title when I have the loginName. There ...
0
votes
1answer
179 views

Sharepoint 2010 Jquery/knockout.js

Bit of background, we have a large SharePoint environment (500k users) which has multiple authentication providers (AD/Custom Claims) in order to simplify user management, I wrote a farm solution ...
0
votes
1answer
457 views

Unable to reference jQuery inside my master page

I am working with SharePoint server 2013, and inside my Style Library folder I have added the Jquery file. then under the custmJSUrl section inside my seatle.master page, I added a reference to the ...
4
votes
1answer
121 views

sharepoint 2010: javascript rest api not returning full decimal values, truncating to tenth

I have a list with a several columns that have number values to fourth decimal place, and I am using javascript com to get data via rest GET request and following simple callback function ...
0
votes
0answers
102 views

Retrieving specific div from a wiki page on ajax call

I am trying to retrieve a specific div content through ajax call from a wiki page and then I need to use it in a web part page. The problem I am facing is that if I use this $.ajax({ ...
0
votes
0answers
684 views

Replacing content of a div using Ajax callback function in a webpart page

In a sharePoint web part, I have a div for which I am loading content dynamically by doing something like $("#divID1").load('/sites/somesite/WikiPages/abc.aspx.ms-rte-layoutszone-inner.html(); to ...
2
votes
1answer
159 views

Sharepoint 2010 javascript client object model - downloading items and item attachments?

Is there a way, so that you can download the items from a list and all its item attachment files in one context call? Currently I am downloading all the items, then looping through each item, and ...
2
votes
2answers
288 views

Nested REST or CAML code to list “NOT-IN” List Join Logic. Possible?

I'm thinking this is possible in SPO 2013? Two Custom Lists. Submitted and Universe (common field employee number) One qualifier condition that applies to both .. dept = Sales I need to list ...
2
votes
2answers
2k views

Loading jQuery and jQuery UI within JSLink script

How would I go about using jQuery and jQuery UI (mainly the sortable component) within a JSLink script. So far I've tried several methods of dynamically loading javascript within the JSLink script ...
1
vote
0answers
66 views

Update CEWP without refreshing page

I have a webpart which contains 3 charts. The charts are built using google's chart API and SPJS Chart The problem I face is that I'm trying to get the charts to seamlessly update as the list gets ...
0
votes
1answer
1k views

REST post with metadata column?

I have a jquery script that uploads a file to document library. I'm trying to set a choice column in the same call, but can't seem to get it to work. The upload is working, but Col1 is a choice ...
2
votes
1answer
317 views

SharePoint 2013 REST - Possible to Upload accross Site collections with embeded code or NAPA? SP.AppContextSite 403

Has anybody been able to REST Upload cross site/domain of a file to a document Library with REST on SPO 2013 thru embedded page code or NAPA? Wondering how app security is set on the TargetSite? I ...
12
votes
4answers
6k views

jQuery accordion for the Quick Launch menu?

Is it possible to turn the left side menu (I think it's the Quick Launch area) into a jQuery Accordion style menu in SharePoint 2010? The jQuery UI Accordion control uses DIV tags, so wasn't sure if ...
0
votes
2answers
141 views

Edit Calendar webpart with JQuery on page load

I've been struggling for a few days now trying to solve this problem. I have a calendar app part on my page that is taking up too much space. The requirements for the calendar are that it just ...
1
vote
1answer
188 views

Javascript Object Model; possible to return whether item has permissions under inheritence or not?

So if I am using the COM/JSOM, and normal GetListItem, can is there something I can add to the Include method, that will allow me to see if the item returned has permissions under default inheritance ...
0
votes
1answer
194 views

SharePoint Online o365 JSON data of list of parent site from NAPA? GetbyTitle

Why can't I call REST of the apps parent site from NAPA? I need data from a list on the same level as the app. This chokes. And if I use the Apps URL, it can't find the list with GetByTitle. ...
2
votes
2answers
3k views

Calling Javascript within XSL after transformation in RSS Web Part

Hey all, got a tricky one for you. I have an RSS web part which uses a custom ItemStyle.xsl stylesheet to transform the results of the RSS feed into a UL list. I have some jQuery I want to inject ...
0
votes
0answers
75 views

Button to delete File from SharePoint Online Document Library - with NAPA/JQuery/REST

Anybody got some sample JQuery/REST code in NAPA to delete a Document library file on SharePoint Online? Ideally, to delete a file on a doc library on another site collection (NOT the NAPA apps host ...
0
votes
4answers
213 views

isotope menu for my landing page

I found the following, and I love it: http://isotope.metafizzy.co/ I'd love to make this into a menu for my landing page - what should I learn to figure out how would I go about doing this? Is it ...
0
votes
0answers
189 views

Setting value of a Sharepoint lookup column with more than 20 items

How can i set the value of sharepoint form field dropdown box(lookupfield) in sharepoint list form when the form gets saved (using jquery) Note: the lookupfield (dropdown formfield renders as input ...
0
votes
1answer
163 views

jquery validation : save conflict error should popup when user tries to add similar data

When a user tries to add data for two fields which were already selected in the previous new item, it should not allow the user to save, validation error should be thrown.. Sharepoint should check ...
1
vote
0answers
387 views

How to filter a list view by SP group membership (CAML, JS, anything)

I have a list. I need to filter the list view in SharePoint to show items: created by someone in current user's group show all to admin group I am using Infopath for the list's form view, and ...
0
votes
1answer
74 views

Show/Hide button based on User Email. Error: Unexpected identifier

I have a JavaScript which I use to hide or show a button based on the logged in user. Button: <a id="customAddNew" ...
1
vote
0answers
103 views

css issue when using from SP2010 to SP2013

I have one content editor webpart, in the document library view page which freezes the header row. It works fine when using it in SharePoint 2010 environment. But when I moved that CSS to SharePoint ...
1
vote
1answer
143 views

A script on this page may be busy, or It may have stopped responding

there is one webpart on page that rotate the images so i added a jquery to rotate images and its working fine but after sometime it gives error like A script on this page may be busy, or It may have ...
0
votes
1answer
140 views

Getting error “Object doesn't support property or method 'commitPopup'” when saving a new alert in SP 2010

In my SP 2010 environment, I have a html page, that has an iframe, and the iframe is the page where you create a new alert for a list. In the html page, I dynamically create the iframe and then insert ...
0
votes
0answers
77 views

Show multiline field if specific select option selected

I'm trying to create a Note box to show up when an items status is set to cancelled. What I'm noticing in the html is that within a form, switching between options does change the html until saved. ...
0
votes
2answers
614 views

Javascript fails in chrome and firefox, works fine in IE

I have this JavaScript code for my SharePoint forms which does not work in other browsers but Internet Explorer. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" ...
1
vote
0answers
87 views

Footer does fill the whole width. Scrolling in document library

I have a problem with the footer not extending to the right side when scrolling to the right. (In a document library with way to many columns). Meaning the footer have a blank spot in the right side ...