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

learn more… | top users | synonyms

0
votes
1answer
44 views

Move the 'Add new Item' button to the top of a specific webpart

I have a page with multiple web parts. Now I'm trying to move the "add new item" button on top of a webpart after the web part title. I did this using jQuery, using the unique web part I want, but ...
1
vote
1answer
440 views

how to get a <td> value after clicking the row [closed]

I want to get the third column in a selected row. my jquery is $(document).ready(function() { $(function() { $("#dialog").dialog({ autoOpen: false }); ...
2
votes
2answers
203 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 ...
0
votes
0answers
34 views

jquery cascade is acting up. All of the sudden the child and grand child does not match from edit form to view and view properties

I am attaching 3 print shots for editform, view properties and view. The view shows category, subgroup and subtypes which does not match edit form values. The values in the edit form are correct. What ...
2
votes
2answers
115 views

Customize a SharePoint 2010 survey required field user message

I've created a survey with rating questions and branch logic and most are required fields. Any suggestions/ideas on how to use Javascript/JQuery to change the OOTB required field user message "You ...
1
vote
2answers
129 views

function(xdata, status) explanation - SPServices jQuery

I have recently started learning SPServices library. So if this sounds like a silly question, forgive me. I notice these lines in almost all the examples: completefunc: function(xData, Status) { ...
0
votes
0answers
29 views

Jquery plugin to show videos from video library in sharepoint 2010

I have video library where more than 10 videos have been uploaded. I want to show video list on my page and let user select video to play from that list. any jquery pulgin.? i got some plugin but ...
0
votes
2answers
133 views

How to find current logged in user alias not username in SharePoint 2013 using javascript or jQuery?

I am using _spPageContextInfo object to get currently logged in username in SharePoint 2013.In this process first i will get userId value and then i will make an ajax call with this userId value and i ...
0
votes
0answers
24 views

Default Title from filter applied in connected list WebPart

I have a WebPart page with two lists. One for an Event and another for an Action on that event. They are connected by the Title field (so the user would click the double arrow by Event 1 and all the ...
1
vote
0answers
40 views

Sharepoint 2010 metadata filters- Driving from a link or script

The "old style" list filters in Sharepoint List views (e.g. when the user clicks on a column to filter or sort on column values) use an http GET, so the filter paramaters are transmitted in the page ...
2
votes
1answer
127 views

Form validate - New item

I have a list on Sharepoint, and when some user add a New item, I need to validate fields... I would like something in jQuery... something that if the field is not validated, it shows a msg error and ...
3
votes
1answer
298 views

How to get ClientPeoplePicker value using javascript

can anyone please tell me, How to get ClientPeoplePicker value using javascript.?
0
votes
1answer
664 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 ...
2
votes
4answers
5k views

List driven Scrolling Marquee

I had a friend ask about this and I wasn't sure so I thought I'd test your metal. What would be the best route for applying a scrolling marquee to a page that is list driven? Perhaps the better ...
0
votes
3answers
142 views

Could JQuery or JS disable core.js?

I have a strange situation. I using the code below in a Java Script file and referencing it from CEWP. For some reason, I can't do Page or Site Action Edit anymore, it does not do nothing. However, if ...
0
votes
2answers
32 views

Apply jquery to personal sites

I am adding jQuery to sharepoint like this: <SharePoint:ScriptLink ID="ScriptLink6" language="javascript" name="~sitecollection/Style Library/jquery.min.js" runat="server" OnDemand="False" ...
0
votes
1answer
57 views

changing the intialprompt searchbox webpart javascript/jquery

I have a page_layout in which I plan to be used by many pages, this page layout has a searchbox webpart, at the moment it has a generic 'Search...'. However what I want is to change it so it says ...
0
votes
2answers
38 views

Inconsistent ExecuteOrDelayUntilScriptLoaded(function () behaviour in my pages

My users are reporting some strange behaviour with some pages created with the same custom layout pages and custom master page in a sp2013 publishing site Essentially, I have function referenced in ...
0
votes
1answer
85 views

Filter DataView web part using SPServices

Ok, this is the issue: I have a Data View web part which I would like to filter depending the "office" the user logged in belongs. I can get this using SPServices (GetUserProfileByName): JS ...
0
votes
0answers
92 views

Errors Implementing jQuery UI Tabs in a Sub-Joined Data View

I am trying to implement jQuery UI tabs onto my site using a subjoined data view, but I am experiencing some issues. I believe it has to do with my XSL markup, but have been hitting my head against a ...
4
votes
2answers
52 views

Dynamic order Numbering based on the view in sharepoint library 2010?

We are trying to do in this library, is create a column that will provide the “order” number of the listed item, per view. So in one view there may be five items that show and they need to be ...
0
votes
1answer
323 views

About SharePoint 2010 “select” column

I have a question related to "select" column. The "select" column little arrow to select an item, I wanna set the color to blue or any other color, when user select the arrow. Any ideas.,really ...
0
votes
1answer
95 views

Linking an Excel document to a List

I have an excel document which is sent daily to me. I have a SharePoint List that is then update daily by me with all the excel documents information (complete overwrite each day). The list is used ...
1
vote
3answers
853 views

SharePoint 2010 web service - GetListItems not working in Chrome & firefox

function GetListItems() { var soapEnv = "<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>" + ...
0
votes
2answers
44 views

how to give popup for a panel?

I have panel control in my web part. I used some 10 controls in this panel with in a div so I need to show this div in the popup .so which I need to keep in popup either with panel ID or div ID. ...
0
votes
2answers
602 views

Expandable lists that expand and collapse with one click

I have a lot of text based lists on one page, so I threw them into content editor web parts so i can expand / minimize the lists. However, two clicks (one on the arrow and then one on "restore") is ...
0
votes
0answers
34 views

ko is not defined - Knockout and SharePoint 2013 Code Embed?

Any special considerations when loading Knockout with code embed on a SharePoint 2013 Page? <script type="text/javascript" ...
1
vote
1answer
130 views

SharePoint Online 2013 Page Code Embed and Javascript - output disappears

I noticed I can't embed inline javascript in an SPO 2013 Web Part page, but can reference a library. I'm outputting a table from that js. If I put alerts that table displays but then disappears ...
0
votes
1answer
81 views

Does GetListItems not work with content types?

I have been trying to use GetListItems using jquery and SOAP to fetch data from a list. The list does not have an 'item' content type but is using two other site content types (both inherited from ...
2
votes
1answer
555 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 ...
3
votes
2answers
163 views

Using jQuery in SharePoint 2013

I'm trying to implement a solution in SP 2013 where the global navigation docks to the top of the browser as you scroll down. Like on this site. The dev at this site provided the jquery he used to ...
1
vote
0answers
110 views

ValidatorEnable jquery function not working for people picker validator

I have a form with a dynamically generated people picker control, that is required if the checkbox above it is selected(not required otherwise) This is how I created the control. var people = new ...
0
votes
1answer
759 views

Get Mysite Profile pictures using jquery

Using Sharepoint 2007 Have JQuery and SPServices.js available. I need to be able to gather profile pictures (or just the URL whichever is easier) from a users MySite. It will be a dynamic list of ...
1
vote
3answers
119 views

Triggering javascript on a SharePoint Form Dropdown Field on Page Load without clicking

I have a NewForm.aspx page which is populated automatically via a query string in the URL, e.g. newform.aspx?Title=New Item&WorkArea=DHIS&Location=London I have some javascript code which ...
1
vote
1answer
35 views

PDF Preview in library

I have a library full of pdf's. Is it possible to show a preview of this documents in the library view? The preview is necessary because there are 5 user which work in the library and add the ...
1
vote
2answers
1k 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 ...
1
vote
2answers
2k 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
211 views

Auto complete box with multiple values in SharePoint Web Part using J query and SharePoint list web service

SharePoint 2010 Questions. I am trying to create an auto suggesting text-box with multiple values in a SharePoint web part. i am using j query and SharePoint list web services to do it. I am just ...
0
votes
1answer
63 views

Can't get HTML page to display

I have created an html page to display in the Page Viewer Webpart in SP which contains a bit of jQuery. For whatever reason, it will not render in an IE Browser - it just shows a blank white page if ...
1
vote
3answers
1k views

Autocomplete with multiple values .from a list

I need to implement a lookup column to a big list, I will probably use SPServices, but so far all examples I have seen is for only one value, and I need it to be multiple values. I need to be able ...
0
votes
1answer
59 views

Display a single item from list in main site to subsite

I want to display a single(filtered) item from a list on my main site, to the homepage on a subsite. I've initially tried the CQWP but it was to limiting when it came to what fields it displayed by ...
0
votes
2answers
544 views

SharePoint list as data source for jQuery DataTables plugin

I trying to create a table using a SharePoint list as source. I followed this tutorial and it worked perfectly. But this method would not work if you need to reload the data using, let's say a drop ...
1
vote
2answers
69 views

jQuery: what version we must using in Sharepoint 2013?

I have a full responsive site in SP2013 with several webparts developed by a very huge developers group. We have centralized custom scriptLink and javascript API (and/or frameworks) in two ...
0
votes
1answer
40 views

Exposing WCF for client Scripts from SharePoint 2010

I am developing a SharePoint 2010 site and in need to access my WCF Web Methods from a client script from SharePoint. I am not sure on how to do this. Two approaches in my mind are. Add reference ...
0
votes
1answer
223 views

Reading excel cell value in Excel Web Access Webpart

I need to read excel cell value.Excel web access webpart is used to display excel file stored in a SharePoint 2013 document library.I need to use Jquery to read the data of excel file currently ...
0
votes
2answers
158 views

Use Google Visualization with Datatables plugin and which get data from REST

I have this code that get the data from SharePoint using ajax, and the datatable plugin creates the table. function LoadAIP(state){ var call = $.ajax({ ...
0
votes
3answers
359 views

Using REST call and Datatables plugin to retrieve SharePoint Date field

I'm having an issue with a REST call that's giving me some headaches. This is the code I'm using: function LoadAIP(state) { var call = $.ajax({ url: "https://xxxx/xxxx/_vti_bin/listdata.svc/AIPList? ...
4
votes
1answer
128 views

SharePoint 2010 - Using REST to validate unique list item

I'm attempting to validate that a duplicate combination of staff (person/group field) + parent ID (lookup field) does not already exist in a list. Below you can see that I've added an ajax call to the ...
1
vote
4answers
857 views

Filter list data using SPServices, CAML Query, and dropdown list

I'm trying to create a table using SPServices to fetch the data, and filter it using CAML Query and a drop down list. I would like to create three conditions: A. If no item from the list is selected, ...
0
votes
0answers
101 views

Error: The value of the property 'Menu_Unhover' is null or undefined, not a Function object

I would appreciate it if someone could help me out here. I have a SharePoint global navigation bar that I'm using in SharePoint 2010. Every time I apply this script, I get the following error ...