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

learn more… | top users | synonyms

1
vote
0answers
14 views

SP2013: SP.Result returns 0 when calling get_value()

Maybe it is a very simple fix for this but i have problem with retrieving the m_value from a SP.result. SP.Result {} m_value:false __proto__:Object constructor:function () customFromJson:function () ...
1
vote
1answer
68 views

Get client computer name on SharePoint using JavaScript

Any idea how to get the client computer name or the client computer details within any SharePoint Site collection
0
votes
2answers
771 views

Conditionally hiding/showing fields on a custom newform using jquery

This is something I have been struggling with for some time now. I have looked all over the internet at different forums and blogs trying to find a solution and I have finally gotten ALMOST there. I ...
1
vote
2answers
32 views

How can I populate a dropdown with a SP list?

I have a SP List with data that I need to be in a dropdown list. I also need these to have specific classes. I'm trying something like the following but having no luck: $().SPServices({ ...
1
vote
0answers
36 views

How can i select all field of literal control?

i am implementing literal control to bind SharePoint list data. When I select all data in Literal Control using checkbox in corner then it will select only 10 items of list instead of selecting all ...
1
vote
2answers
827 views

jQuery: what version do I have to use in SharePoint 2013?

I have a full responsive site in SP 2013 with several WebParts developed by a very huge developer group. We have centralized custom script links and JavaScript APIs (and/or frameworks) in two ...
4
votes
1answer
5k views

How can I create Ctrl-F Functionality from a search field?

I have a long page on SharePoint 2010 that needs to be searchable for keywords on that page. Apparently the target group is "unable/unwilling" to learn Ctrl-F so I was asked to create a permanent ...
0
votes
1answer
18 views

SPS2013 List page add href to existing text using Jquery?

Insert href link on existing text: abc, part of a DIV ID: wpfunc01 on a SPS2013 List page. I guess this can be achieved via Jquery. Please assist with the complete code to insert href on existing ...
1
vote
1answer
2k views

SPServices - GetRolesAndPermissionsForCurrentUser

I have a list where one group of users is not allowed to delete items but they have view and edit permissions. All items in the list contain an attachment. However, users are not allowed to delete the ...
1
vote
0answers
34 views

Add Div below the Input Type text

I want to show and add the existing Div right below the input type text box on Button click event. I'm using content editor web part to show the below html <div id="Div1" style="Display:None;">...
4
votes
1answer
37 views

SlideTo (a Web Part) Button in SharePoint 2013

I would like to insert a button to a SharePoint page which slides the opened site to a specific Web Part. I guess there is any solution with jQuery. To describe the problem: I have two document ...
1
vote
2answers
33 views

SharePoint 2013 custom list attachment link

I am creating custom form in jQuery and HTML5. I am using rest api for getting data. I am fetching attachment also and generating dynamic string with HTML code with jQuery. Every thing goes fine it ...
1
vote
1answer
15 views

Autheticating users from a third party application

I've got a java web-app in which I need users to create documents. These documents must be allocated in a SP 2013 server. My first idea was to use users' themselves SP sites to allocate their ...
0
votes
2answers
42 views

jQuery CAML results into jQuery DATATABLES plugin

Using the following code to extract items for a SharePoint list and display in HTML. Works great thank to all you folks here. Now I want to inject the output into the jQuery DataTables plugin but not ...
0
votes
1answer
24 views

How to embed/add jquery and bootstrap on the same page

How can you embed/add jQuery and bootstrap on the same page, at the same time? should you use the Microsoft or Google API link? I've tried to integrate these to work with bootstrap and jQuery. but ...
1
vote
2answers
788 views

how to validate SharePoint:formfield

I have a data view web part and it does insert,delete ,in edit mode it save and cancel button.The data is based on a custom list.In the list i have set the max to 4 but in DWP it doesn't seem to work. ...
0
votes
1answer
867 views

SharePoint 2007 HttpHandler can't use SPContext.Current.Site or SPContext.Current.Web when called from jQuery

I have the need to develop a custom HttpHandler in SharePoint. To start, I just coded up a simple example from here. On line 35 or 36 of that code I get a NullReferenceException thrown if I call my ...
1
vote
2answers
2k views

Security warning for JavaScript and CSS file?

I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. And I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net + JavaScript (jQuery). I met with the following ...
0
votes
2answers
133 views

How to merge mulitple list in single view?

We are using SP2013 On-Premise Standard Edition. So Content Search WebPart is not available. In a site collection there are 100+ subsites. Each subsite have a list with custom content type X. We need ...
0
votes
1answer
53 views

Getting no REST data in SharePoint in a html file

I am trying to get some data from a REST Service Url in a html file. This works fine when i am using the code direct in my browser. But when i embedded it into my SharePoint Site it wont work. On my ...
1
vote
1answer
904 views

Customize InfoPath Form select element

I have an InfoPath form used for ordering inventory from our warehouse. There are drop-down lists with the roughly 180 inventory items available for request. I would like to make hybrid drop-down ...
0
votes
1answer
27 views

Add CSS Class to SharePoint Drop down Field using JQuery

i want to add css class to choice drop down filed using jquery below is code. $("input[title='fieldname']").attr('class', 'form-control') But somehow it is not working. can anyone help me ...
0
votes
1answer
41 views

Required field validator is not working in jQuery

Here is my code Index.cshtml I gave JavaScript functions but validations is not working please check this where i did mistake in this code. Product List <table ...
2
votes
2answers
2k views

Get email and name from people picker SharePoint 2013 online

I've tried retrieving data from a multiple people picker field on a SharePoint 2013 form in numerous ways, the best I've done is getting the display name. If it all possible i'd like to retrieve the ...
4
votes
2answers
625 views

Bootstrap in HTML Web Part

I got HTML/CSS from our Designer to implement on a Sharepoint 2010 page. This page is using bootstrap. I implemented it with HTML Web Part and also tried to split the web page layout and work ...
2
votes
1answer
1k 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
48 views

Bootstrap Carousel with jQuery to query the images from Picture Library

I am having trouble having the jQuery to fetch the images from the Picture Library in SharePoint and display on bootstrap carousel. I'm very new to this functionality using jQuery and I think I am not ...
0
votes
1answer
436 views

jquery is not working on panel hide on post back

I have created SharePoint application page and I have a Dropdownlist (ddlTaskFrequency). On dropdown text changed(Monthly) I have written a jQuery code to show panel2 and hide panel1. it is working ...
1
vote
1answer
37 views

Union Multiple Lists with Client JavaScript Object Model

I have several SP 2010 lists with the exact same columns. I would like to perform a union on the lists and display a filtered subset from this union. I tried doing it using a joined datasource in SP ...
0
votes
2answers
37 views

How do I add SlideToggle to Expand/Collapse script for Content Query

I have been using the following script to collapse groupings in content query web parts. In another script used for collapsing web parts, it contained a SlideToggle function. Can anyone assist me ...
0
votes
0answers
29 views

Show and hide Web Parts: How to keep Web Part opened?

I've added the script (you can see below) to my site, which hides Web Parts in standard and opens / closes them by clicking on the title. Now I have the case, that I used this code on two document ...
1
vote
4answers
545 views

jQuery not working properly

In the editform.aspx of an item, I am trying to use jQuery to cause a pop up to go off anytime a field is changed (sort of silly, but once I get this to work, I plan on moving to doing more). However, ...
1
vote
3answers
1k views

Ajax Odata 400 bad request

I get a 400 Bad Request from this code, hard to debug, what can the problem be? function saveSelectedAnswer(radioValue) { var requestUri = _spPageContextInfo.webAbsoluteUrl + "/...
0
votes
1answer
24 views

JQuery check value of checkbox OnLoad

Im using SharePoint 2010 and have created a CEWP that displays fields associated with a checkbox when it is clicked and has a check. I need to check the value of the checkbox on the load as well and ...
1
vote
2answers
28 views

How to remove certain entries of context menu [(…)-Menu] using Script Editor Web Part (JavaScript, jQuery)

How can I remove certain entries of the context menu (marked in my screenshot with red border) by using Script Editor Web Part? As an example, I would like to remove the entries "Im Browser bearbeiten"...
0
votes
0answers
118 views

Access Sharepoint 2013 List from outside SP

Good morning, I wanted to be able to access items in a Sharepoint List from a stand-alone web page hosted on a different server. I've read through references to the REST API and I can see that I can ...
0
votes
2answers
45 views

SharePoint Site Collection Administrators : Jquery

I have a current logged in User Id and through JQuery I want to find that whether the User Id is in site collection admins or not. $().SPServices({ operation: "GetUserInfo", userLoginName: $()....
1
vote
2answers
617 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
33 views

onclick for a function in a js file [closed]

I'm trying to call a jquery function with the onclick attribute of a button: <input type="button" id="palettebutton" value="VALIDER" onclick="getItemsToBeUpdated()"/> I can do this when my ...
0
votes
0answers
27 views

How to lock scroll bar in SharePoint after refresh

I want to resume to middle of the page where I was even after refreshing page, instead of returning to the top. How to lock scroll bar in SharePoint after refresh?
0
votes
0answers
86 views

Color Code Gantt Chart in SP 2013

Has anyone found or written a script that adjusts the color of task bars in a Gantt view in SharePoint 2013 based on a value of the item? I've been able to successfully apply color coding to ...
1
vote
1answer
42 views

Retrieve the Item ID from the Task List Related Item column

Using JSOM, I getting all the task details which are not started. Using CAML query i got all the column values including related item column from Task list var relateditm = $(this).attr("...
1
vote
1answer
93 views

Add Back Button to Survey List in SharePoint 2013

In Survey, people can respond all the questions sequentially within one page or Add branching logic to answer one by one like wizards. Please refer the Image After creating survey with ...
0
votes
0answers
31 views

SharePoint Site needs to be refreshed to load results

Just to give you a brief background of what's happening, if we try to say search a certain keyword, the result page returns blank. We have to refresh the page for it to completely load. Also when we ...
0
votes
1answer
236 views

SharePoint Online (Office 365) - AutoResolve people picker with current user and detect change in people picker value

I am trying to implement a solution in SharePoint Online by customizing the NewForm.aspx page of a out of the box Calendar List using JavaScript with the following requirements: When page loads, a ...
0
votes
1answer
5k views

How can I display checkbox or radio button choices in a Choice field vertically?

I have a list with SharePoint 2007 with a Choice column that I'd like the choices to be displayed vertically (every 2 or 3) instead of horizontally. Is there some JavaScript/jQuery I can utilize to ...
0
votes
0answers
39 views

run external JavaScript or jQuery in sharepoint infopath form after postback

problem occur when postback on a field happen, all external js code stop working until run js code again. how can i use external JQuery code in sharepoint with infopath form in it ?
1
vote
2answers
145 views

Add JQuery to SharePoint

I want to add some global JavaScript to Sharepoint 2010. So I put JQuery to C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\TEMPLATE\LAYOUTS and my script to C:\Program Files\...
1
vote
1answer
24 views

Accordion webpart in SharePoint 2010 choppy when selected

I'm using the script (link provided) and it is working for me without having to do much. But the problem is the script is very choppy and when I select a webpart, it doesn't have the smooth effect ...
0
votes
1answer
59 views

How can I add all contents of a dynamic html table to a SharePoint list?

So my table is 1 row where rows can be added, although it does not have unique id's for each row. I'd imagine this is the issue. $('#submitdata').click(function(){ var table = document....