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

learn more… | top users | synonyms

0
votes
3answers
199 views

Show progress indicator until last row has loaded into DVWP

I have designed a DVWP in SharePoint Designer 2010 that shows multiple items from a library (let's say it shows 1000 items for example) grouped by category. What I would like to do is show a loader ...
4
votes
6answers
5k views

Setting the value of the textfield in sharepoint list form 2010

I have a textfield in sharepoint list form and I want to set the value using jquery or javascript below is the tag: <asp:TextBox runat="server" id="ff47{$Pos}" text="{@Name}" ...
1
vote
1answer
236 views

Hide controls on the NewForm.aspx

The newForm.aspx page of the SharePoint Calendar has a radio button for "No end date". I am trying to use the function below to hide the radio button. Is the title of the radio button the display name ...
0
votes
0answers
36 views

Process Document from SharePoint 2013 Online App Host Site Externally

I am attempting to create a SharePoint 2013 Online App that will process documents stored on the host site collection. I'm able to use jQuery ajax to retrieve a file from the host site collection and ...
0
votes
2answers
9k views

How to add jQuery script to a custom visual webpart?

Similar to some previous questions, I'm trying to use jQuery in a visual web part but I keep getting that jQuery is undefined. I've added the jQuery script to SiteAssets as well as a script folder ...
0
votes
1answer
528 views

SP.UI.ModalDialog.showModalDialog IE7 compatibility

I am having a similar issue as the following question: SP.UI.ModalDialog.showModalDialog not working with IE7 The problem is, the resolution to that question doesn't apply to my specific scenario: I ...
0
votes
0answers
46 views

Sharepoint 2010: stop auto-populating of attendees field in new form from weekgroup calendar view

I modified the default view of weekgroup calendar by adding all the team member's calendar on default, using jQuery. The issue is that when the new item form is opened from this view, the attendees ...
2
votes
1answer
660 views

Jquery is not working on IE10

The below script works properly on the firefox and hides the Page Rating & Last modified divs however it is not working on IE-10, am I missing anything? <script type="text/javascript" ...
0
votes
1answer
315 views

How to get the name from a user id

I query a list via jQuery (on the RSS presentation). The content type has one field that is used for a responsible. In the XML returned, only the User ID is supplied. How can I get the name of that ...
1
vote
1answer
75 views

How to get value of multiple list filter webparts

Related to the previous post about accessing a List Filter Web Part value How to get value of List Filter web part in Javascript? How do I get access to the value of multiple list filter web part ...
0
votes
0answers
44 views

Getting updated node information after AJAX call

I am trying to get a list of html elements using jQuery on a Calendar view page. However, since calendar can change months, weeks, etc. asynchronously, how do I get the up-to-date information using ...
0
votes
1answer
854 views

Autocomplete with SPServices

This is my scenario I have a list of clients on the root site collection. www.mydomain.com/lists/clients I have 17000 clients on that list. Then I have other site collections, where I want to have ...
1
vote
1answer
319 views

SP Services does not update the list item

SP Services : UpdateListItems does not update the list item. The problem lies with the value that needs to be updated. The item is updated when the value is a normal text, but when it has some special ...
2
votes
1answer
322 views

SharePoint 2013 Markup code works inside Placeholdermain but not as code embed in webpart (EmbeddedFormField)?

On SPO 2013 trying to deploy some custom markup code to bind a list Markup code works when placed in Placeholdermain via SPD vs embedding the code Site Page webpart (EmbeddedFormField) I have this ...
0
votes
5answers
2k views

JS/jQuery Check if on root web of root sitecollection

How is it possible to check in JS/jQuery if the user is on the root site of the root sitecollection in the webapplication? (Sharepoint 2010) Thanks! Example: ...
2
votes
1answer
1k views

jQuery find doesn't return single result - SPServices, SharePoint 2010 Search Web Service

I'm using SPServices to access the SharePoint Search web service. When it returns multiple results my code function fine. However, when it returns on a single result the str.find("Document").length ...
1
vote
3answers
2k 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: ...
0
votes
2answers
1k 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
101 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
820 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
44 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
101 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
82 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
4k 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
9k 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
172 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
76 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
2k 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
560 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
219 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; ...
1
vote
2answers
358 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
227 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
325 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
109 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
3k 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
125 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
207 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
1k 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
140 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
896 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
2answers
371 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
3k 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
78 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 ...
2
votes
1answer
510 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
7k 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
150 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 ...
0
votes
1answer
280 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. ...
3
votes
2answers
4k 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
4answers
298 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
1answer
230 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 ...