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

learn more… | top users | synonyms

0
votes
0answers
31 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
213 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
123 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 ...
0
votes
0answers
34 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 ...
1
vote
1answer
53 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
1answer
364 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
174 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 ...
1
vote
2answers
923 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 ...
2
votes
1answer
171 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 ...
1
vote
3answers
913 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
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 () { ...
0
votes
1answer
419 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 ...
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
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
26 views

Jquery Script on CEWP working only on double click [duplicate]

I have a JQuery Script uploaded to the CEWP on the add and display forms of a sharepoint calendar on the add form, the script is working consitantly as expected while on the display, It has suddenly ...
0
votes
0answers
76 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
3answers
378 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
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 ...
1
vote
1answer
251 views

Run JavaScript after “group by” in list has been clicked on and list data loaded

I have created a JavaScript function to take a url from a list item and turn it into an image. This function works great on a list that doesn't have group by setup. With this script the images will ...
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 ...
1
vote
1answer
609 views

Upload to DocLib with jQuery (and REST) without HTML5

Uploading Documents to SP 2013 with jQuery and REST work just fine (Properties when uploading Files using REST in SP 2013) but these methods require a HTML5 compatible browser. The problem is now I ...
0
votes
1answer
484 views

Check to see if location exists in sharepoint 2013

I'm developing an application and a part of it involves storing user submitted documents to a document library in sharepoint. Each folder in the document library is identified by the User ID. And ...
1
vote
3answers
213 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 ...
0
votes
1answer
122 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 ...
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
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
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 ...
1
vote
1answer
487 views

SPServices Autocomplete and dynamic CAML query

I have two Text filter web parts (Project and Customer Name) with Apply Filters button for one list. There is a SPServices.SPAutocomplete on each and it works great. Now, I want to show the values in ...
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
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 ...
0
votes
1answer
391 views

SPO - /_vti_bin/lists.asmx returns Error 500

I am currently developing a news scroller/ticker in SharePoint Online (Office 365) and am using the follow script to access a list: var emptyResults = "<li>No current ...
1
vote
2answers
536 views

jQuery Hello World on NewForm.aspx Without SharePoint Designer?

I'd like to modify the Add to list functionality found in SharePoint. The only caveat is that I can't use SharePoint designer, as our site is hosted on Microsoft's servers and they've disabled that ...
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 ...
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 ...
1
vote
1answer
637 views

How to read image file from a URL and save the image in image library in SharePoint 2010

I have a form, and that form has a field for a Picture and a Thumbnail which are currently Single Text fields. What I would like to do is when people input a URL on those fields, I would like to get ...
3
votes
1answer
298 views

SharePoint REST POST to upload file produces corrupted or empty file

I've got this jquery/REST process that I thought was uploading a PDF file to SPO 2013 Document library, but it's only producing an empty or corrupt. Anybody know why? function ...
2
votes
1answer
316 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 ...
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 ...
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 ...
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
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 ...
0
votes
0answers
74 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
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. ...
1
vote
2answers
429 views

Content Editor Jquery working in Firefox not in IE

I'm trying to display an image, content and a link to open new list item dialog box. This is working in Firefox, but in IE it gives the error "wrong number of arguments or invalid property ...