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

learn more… | top users | synonyms

0
votes
1answer
44 views

is it wrong to use “min-Width:105%” & “max-Width:105%” to expand my list views on small sized screens

I'm working on a Team site inside SharePoint 2013, and I've defined many issue tracking lists. and for all these lists I'm showing the Description field (which is of type Enhanced Rich Text) inside ...
0
votes
1answer
206 views

Clear multi-value lookup via Jquery SP 2013

I am trying to clear a multi value lookup field using javascript when an item is re-edited. I have tried all the following combinations without success $("input[id^='Test'").removeAttr(); $("input[...
0
votes
0answers
55 views

Sharepoint 2013, loading jQuery into Custom Master Page for all web parts that use it

I'm VERY NEW to SharePoint 2013 and work with a programming team. We built a SharePoint 2013 Custom Master Page with a developer who is no longer with the company. We built it with XHTML and ...
0
votes
0answers
273 views

How to set default value of People Editor of SharePoint Controls using jquery only

I have value of Editor column which is People/Group type column in a variable. I have used SharePoint controls for setting that value. Controls are <SharePoint:PeopleEditor ID="people" runat="...
1
vote
0answers
428 views

uncaught typeerror cannot read property 'spservices' of undefined

I am getting this error uncaught typeerror cannot read property 'spservices' of undefined when I opened the editform,aspx from my SP 2010 list form. I got this error when I examined the F12-Dev Tools ...
0
votes
0answers
67 views

Issue with SPUtility and prototype.js files in editform.aspx

I am facing issues with SPUtility and prototype.js files in my editform.aspx in my SP 2010 list form.If i mention like below, my entire custom CSS was not working and because of these 2 js files,I ...
0
votes
2answers
476 views

JQuery to execute on change of taxonomy field

I am trying to find a way to auto populate some values whenever I detect a change in taxonomy selection (ClientPeoplePicker control), how can I achieve this using jquery? This is what I currently ...
0
votes
0answers
100 views

jQuery,PreSaveAction does not fire when multiple references of .js files in SP 2010 List EditForm

In my SP 2010 List Form's editform.aspx file I have added 2 Content Editor Web Parts from which one of them - DisableFldsCEWebPart - has jQuery and SPServices.js file references and with the help from ...
0
votes
1answer
110 views

How to show the first N characters of my Description field inside the list views? [duplicate]

I am working on a Team site inside SharePoint server 2013. And on the list views I am showing the Description field, which is of type enhanced rich text. Currently we are facing these problems:- If ...
0
votes
1answer
189 views

jQuery Checkbox with UnChecked Event Handler in SharePoint 2010 List Form

I need to write a javascript/jquery code that make the checkbox if unchecked do not put a validation of a textbox and if checked the text box is validated for null or empty in my SP 2010 list form. I ...
0
votes
0answers
17 views

Multiple tabbed list webparts

Trying to put two tabbed list webparts on the same WP page using Jquery. Using the header, 2 column, footer layout and want tabbed list 1 on left with second on the right. First snippet works, but ...
0
votes
0answers
51 views

Lookup columns with JavaScript

I have two lists with one column that is a lookup column. How can i bind the two lists together with JavaScript or can i retrieve the data from both lists with the lookup column and JavaScript? Or ...
2
votes
1answer
83 views

Display image(preloaders) before content is loaded WebPart - SharePoint 2013

I'm using a plug-in called lightSlider and I notice it doesn't display the whole content on first load until I refresh. I have tried using 1. windows.load, 2. ExecuteOrDelayUntilScriptLoaded, 3. ...
2
votes
1answer
326 views

Make a Choice Field-dropdown- as ReadOnly

Is there a way to change the EditForm in my SP 2010 site to display a dropdown column but as Read Only, so the user can not edit that column after the item has been created.I added the below code, ...
1
vote
1answer
92 views

SharePoint CSR using JQuery

Good day all, I have been trying to wrap my head around SharePoint CSR. I have been fairly successful with using javascript to modify the list view. However, I have been trying to use the following ...
1
vote
1answer
33 views

manipulate cells of a list with jquery

I am modifying the Allitems view of a list and want to select each row with a specific title and change the last cell of that row to show the thumbnail of an image with jquery. var results = data.d....
0
votes
1answer
243 views

How to always open documents in a document library in a new tab for Sharpoint 2013 Foundation

How do i tell Sharepoint to always open documents(mostly .pdf and .docx/.doc)in a new tab when they are saved in a document library? This has been disgussed in another questinon before. I tired to ...
0
votes
1answer
42 views

Remove hyperlink for lookup field in SharePoint2013

Can any one give example to remove Hyper Link for lookup field in SharePoint 2013.
0
votes
0answers
29 views

Modify People Picker Located in IFRAME on WebPage

I am new to SharePoint and need some assistance. I have a webpage written in normal HTML and JavaScript with an IFRAME that contains a SharePoint page. When the webpage loads, it contains the user's ...
0
votes
0answers
31 views

Javascript search code really slow in external page only when loaded in SharePoint

A while ago my supervisor asked me to build a tool to display some information from our ERP system. The ERP system is not that great, and often it is easier to just hack together a CGI script to ...
1
vote
1answer
99 views

sharepoint profile picture

Is there any possibility to change profile picture or uploading a new profile picture in SharePoint Online by using SharePoint hosted app, via JavaScript or jQuery? How do you solve it?
0
votes
1answer
23 views

SP WebPart Jquery reference

Has anyone a reference to Jquery file in Visual web part to show. I need to se how it looks like. Mine looks lke this : <script src="c:\users\wss_setup\documents\visual studio 2013\Projects\...
3
votes
1answer
104 views

.find().filternode().each() v/s .find().each()

I came across a lot of articles and discussions by Marc D Anderson and Steve Workman regarding performance gains using .filternode(). I also read an article by Steve Workman I also tried to ...
0
votes
0answers
121 views

Programatically submit list quick search query in SharePoint online

I'm trying to enter a string into the quick search box in the list header and submit the search to filter the list. This image shows the search box I'm talking about: I'm using jQuery to select and ...
1
vote
1answer
63 views

jQuery Blur function in Content Editor web part in SharePoint 2010 List form

Want to know how to use a jQuery blur function for my SPNumberField, single line of text etc fields.I do not have the ID of the field, also how to get the ID for using the same in jQuery function? ...
0
votes
1answer
386 views

How to set a value in a Choice Field based on the text box change SP 2010 in list newform.aspx

I am having few fields like single line of text, choice field, rich text on my customnewform.aspx of my SP 2010 SPList. Now if I enter a value say USA on the text box, I need to set the dropdown/...
0
votes
0answers
70 views

AutoLogonPolicy with XMLHttpRequest() or Ajax

I would like to open a website with XMLHttpRequest / Ajax to get data and paste it to a SharePoint list. The site requires login and I see that • it starts with the original url www....
0
votes
3answers
1k views

Get the value from Textbox and dropdownlist in NewForm.aspx using jQuery and JavaScript

I am trying to retrieve the value of Textbox and dropdownlist in NewForm.aspx using jQuery and JavaScript when PreSaveaction is called. Below is my code: But both cases, I am not able to get values ...
2
votes
1answer
499 views

Sum Calculated Column (SP 2013)

There is a very nice solution below from ViewMaster (http://www.viewmaster365.com/#/Create/Sum) that involves some scripting within the formula of a calculated column itself. However, the Sum will be ...
0
votes
1answer
302 views

Date Validation on PreSaveAction in SharePoint 2010 list newform.aspx

I need to validate few dates in my SP 2010 customnewform.aspx page. I added the content editor web part, added the script but not able to get the result. ReqstDate : Should not be greater than ...
0
votes
1answer
279 views

Expand Collapse a row in table [closed]

I have 3 rows in my table of which I need to have expand collapse functionality on 2 rows i.e. 1st and 3rd row. I was able to comeup with something on JSFiddle (https://jsfiddle.net/01u0k7o3/). ...
0
votes
0answers
137 views

Validate checkboxes and textboxes in SP 2010 List NewForm.aspx on Save Click -PreSaveAction

I am having a new form created on my SP 2010 List, mycustomnewform.aspx and i have some 6 checkboxes and 6 textboxes.Now I need to validate these textboxes' value when a checkbox is checked. I ...
0
votes
1answer
278 views

How to create people picker using jquery [duplicate]

How to create people picker in sandbox solutions using jquery? I need design part also. Any idea?
0
votes
0answers
38 views

Get broken inheritance items via spServices (SharePoint 2010)

Is it possible to get all items of a list, where the inheritance is broken? There´s an additional property for items via CSOM (HasUniqueRoleAssignments), but my task is to write code which can fetch ...
0
votes
1answer
1k views

Set value of peoplepicker using javascript

I have a newrequest.aspx page in a Sharepoint 2013 App with a form on it to get details from my users to submit a leave request,this is then submitted to a Sharepoint list to hold all of the requests ...
0
votes
2answers
543 views

Bind the DateTimeField field with Today's date using SPServices and jQuery

How to bind the DateTimeField field with today's date using SPServices and jQuery ? I cant use the default Today to set the column in the Sharepoint UI to use Today's Date as the default value in my ...
0
votes
1answer
237 views

Progress Bar on DropDown Selected Event

I have a dropdown list in my SharePoint Webpart and upon selection of a value from the dropdown list (selectindexchanged) I am showing a aspnet treeview. The issue I face is the TreeView control takes ...
0
votes
0answers
41 views

DOM Manipulation Improvement

I am using jQuery selectors as post processors in my SharePoint application - jQuery post processing works out well in terms of DOM manipulation but the performance is extremely slow. Can anyone ...
1
vote
1answer
404 views

Javascript running before SPServices call is complete

Note: I am a beginner and new to SharePoint and not a regular with SharePoint based projects. Kindly refer commented out code only if needed. I am building a sample page and displaying it on ...
0
votes
0answers
52 views

JavaScript broken after upgrade to 2013

We have upgraded from Sharepoint 2010 to 2013 and my assession number function stopped working. Need some help. Number is not generating <script type="text/javascript" src="/_layouts/js/...
2
votes
1answer
365 views

Keypress enter key does not work in Chrome

I am replacing the default datepicker for the jquery picker and I have a Javascript code to handle that. I also have a keypress event when I go to the element with tab and press enter it show me the ...
0
votes
1answer
104 views

Set a calenders Start/EndTime on the NewForm using Javascript/Jquery?

I'm trying to set the start- and end time when creating a new event in a calendar to 00.00 for both fields but i had little to no success as i know very little about client side coding. I've been ...
0
votes
1answer
227 views

Display an Announcement List inside <div> tag

Here is my code to fetch Announcements List and display it as HTML table: <script type="text/javascript" src="/Test_Library/js/jquery-1.11.3.js"></script> <script type="text/javascript"...
1
vote
2answers
316 views

Javascript code for Autocomplete/suggest function for a textbox

I have a question with around 1000 possible choices (we need to know a email in a share point list). Because a drop down list would be to long, we would let the users submit their answer in a text ...
8
votes
2answers
852 views

Use SharePoint 2013 “Working on it…” during ajax call

I'm trying to use the SharePoint 2013 "Working on it..." during ajax call. This is the code: function ShowWaitDialog() { SP.UI.ModalDialog.showWaitScreenWithNoClose(SP.Res.dialogLoading15); } ...
0
votes
1answer
88 views

How can I respond to a click event from an HTML button server-side?

I'm creating a button on a Sharepoint page dynamically (in C#) in my *.ascx.cs file: Button btnSave = null; protected void Page_Load(object sender, EventArgs e) { base.OnPreRender(e); ...
0
votes
0answers
73 views

Async webpart - the best approach to access outer data source from webpart

I've already tried to search the web but I always get to some point from which I don't know how to get further. I have a Visual web part which needs to load data from external sources (different ...
1
vote
1answer
75 views

Get exception messages from a custom SharePoint REST service

I am experiencing some difficulties in managing errors raised from a custom REST web service deployed to SharePoint ISAPI folder I developed. My service is pretty simple. I deployed an .svc file to ...
0
votes
1answer
48 views

change function not working

I have a SP app and one of functions is to change background color but the problem is that when I choose a color in drop down there's nothing happening. <select id ="selectColor"> <...
2
votes
2answers
1k views

Script Editor Web Part not recognizing Jquery

I'm trying to test JQuery in a Script Editor Web Part but it doesn't seem to be recognizing the JQuery. Any suggestions would be greatly appreciated. Code: <div id="testing-jq">Jquery Test - ...