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

learn more… | top users | synonyms

0
votes
2answers
113 views

How to upload jQuery library into web parts without master page

I am in the process of migrating from SP2010 to SP2013. In SP2010 the Scriptlink feature was used to upload all of the jQuery libraries from the master page. Currently I want to test some web parts in ...
0
votes
1answer
174 views

Get NewForm.aspx Controls and Events (jQuery)

I have been able to hide/show form controls using JavaScript. Is there a way to capture jQuery events on these controls? For instance, I want an onclick function to work on my form control. How ...
0
votes
2answers
330 views

sharepoint 2010 - 2013 web parts migraiton: jQuery is undefined error

I posted this in the general Stack overflow site but this seems like a better place to post a sharepoint question. I am trying to move a custom web app (contacts list) from sharepoint 2010 to ...
0
votes
0answers
137 views

How to wait for a Function to return values and finish to run another Function with Javascript

As the thread's title with SharePoint 2010, this worked well with all browsers as the demo below. However, when I'd tried to get the information from another link (it must be another thread of ...
0
votes
1answer
397 views

Loading My Sites within iFrame - Hide SuiteBar div

I am loading MySites in an iFrame within another Site Collection. This works with a PageViewer webpart but I would like to hide the new Suitebar since there is already one on the parent page. Any ...
0
votes
0answers
24 views

How to edit in newpost.aspx in blog site?

i want to edit the newpost.aspx page in blog site. i want to add fields and hide other fields. so what is the best way to edit the newpost.aspx? i am trying to use jquery but i don't know how to use ...
0
votes
1answer
73 views

Why does v4.master suddenly strip out URLs?

I am working in SharePoint 2010, and using jquery to modify some display and edit forms throughout a site. To do so, I'm including a reference to the jquery library in the site's v4.master page so I ...
0
votes
2answers
82 views

Error referencing external jquery library in master page

Background - I added a webpart to hold my jquery script on a single Sharepoint page. It works fine. In the HTML of the source editor, the script begins: <script ...
0
votes
1answer
123 views

Need help troubleshooting JQuery call to workflow

Running SP 2013. I've got SPServices 2014.01 and JQuery 1.11.0 both copied to my site collection and loading in my masterpage, plus I've confirmed they're loading with the page in question. I've got a ...
1
vote
0answers
32 views

Open check in form with JQuery

It's possible open the check in form with JQuery? I need do this to force the user to do check in in the document.
0
votes
2answers
634 views

Client side date validation in SharePoint List form using jquery

I want a validation for no past dates i.e something like StartDate>=Today Is this possible can anyone help? Thanks...
1
vote
1answer
83 views

How to configure security (IIS, token, etc.) for a website that uses SharePoint 2013 REST API?

I have a website that uses the SharePoint 2013 REST API to render list data (via JQuery AJAX) on the website. It is pretty straightforward and works fine, but my challenge is figuring out the security ...
2
votes
3answers
224 views

Enhanced Rich Text Field removes my default text

Im trying to set default text using jquery on a mentioned field type. I can briefly see my text as I open a new form, but then it disappears. I tried various methods - .text() .html() .append() but i ...
2
votes
1answer
83 views

Do check out in a document with jquery

I'm using SharePoint 2013. I need do check out in a library document using JQuery. Someone help me?
0
votes
1answer
329 views

How to add link to Title field when list data is fetched using REST API and rendered through Datatable.js

<table width="100%" cellpadding="0" cellspacing="0" border="0" class="display" id="example"> <thead> <tr> <th>Title</th> <th>Id</th> </tr> ...
0
votes
3answers
302 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? ...
0
votes
0answers
143 views

Overriding styles on a SP2013 calendar overlay

I'm using a calendar overlay to roll up several calendar views into one, with each item being color-coded according to view (category). We use specific colors for these categories elsewhere, so I need ...
1
vote
2answers
74 views

How to run the JS with on() function with Javascript

In the Calendar with Add button, after the JS Calendar starts completely, the HTML below appears and I would like to run my JS with AsynchronousViewDefault_CalendarView attribute. However, it doesn't ...
1
vote
3answers
327 views

How to replace all href elements when mouseovers with Javascript

In the Calendar with Add button, I would like to replace all href="javascript:void(0)" to href="http://google.com" when mouseover the image caladd.gif with Javascript and jQuery. Summary: That means ...
0
votes
1answer
231 views

Jquery is not working if page is opend in popup

We have one page that has a "jQuery" document.ready script function. It is working fine if we were to browse it in a new tab. But when we try the same page in a Popup the script does not work ...
1
vote
0answers
29 views

How to query “Followed Count” for each user?

I found follow this REST API: http://msdn.microsoft.com/en-us/library/dn194080.aspx#bk_FollowedCount By using My/followedcount, I can get current user's count of items he or she currently following. ...
0
votes
0answers
94 views

sharepoint list manage multiline text column width in Chrome

I have a SharePoint list that consists of single line text fields and multiline text files (plain text). In the list view, I tried to use following jQuery codes to manipulate the width and other ...
0
votes
1answer
77 views

Attachment option customization in data form webpart

We have requirement that Implement attachment control same (Like InfoPath form screen shot) as it is in the default form of new item. Please let me know if any one have solution / workaround. 1) ...
1
vote
1answer
2k views

Creating dynamic accordion from a custom list using jQuery and jQuery UI in SharePoint not displaying as should

I am trying to dynamically build accordion from list of items returned using JavaScript, jQuery and jQuery UI. Below is my code: <div> Search List <input type="text" ...
1
vote
0answers
132 views

Force PDF to open in new window/tab

I am using SharePoint Foundation 2010 and attempting to have my PDFs open in a new tab or window. I have been able to get this to work from document libraries by using jQuery. You can see this code ...
0
votes
3answers
335 views

Toggle div with jQuery in Display Template

I am building a display template in sp2013. I have a control template and a item template. In the item template I have some mapped properties. I show a list with titles. When you click on the title ...
0
votes
1answer
73 views

DatePicker in Sharepoint Search Refiner

I am trying to create a custom refiner that uses a begin and end date to filter my search results. The problem is that i want the users to select those dates using a datepicker. The problem i am ...
1
vote
1answer
282 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 ...
2
votes
1answer
80 views

Adding a “next” Button to displayform.aspx

Is there a way of adding a button in the Dispform.aspx or the editform.aspx that will take you to the next item in the list?
0
votes
0answers
97 views

Use jQuery to make a “column” on the default view?

I am trying to append a value to the end of each row by selecting the number value in one column to do some sort of math with it and output the value on the other one. This code works for me on one ...
1
vote
1answer
1k views

Using REST call to retrieve SharePoint list items as an array of JSON objects

I found this great tutorial to use REST calls to retrieve SharePoint list items as an array of JSON objects posted by Mark.Rackley (Mark Rackley.). It is working, but I would like to add a new ...
0
votes
1answer
168 views

Loop though subsites and get all Property Bags - jQuery deferred issue

I'm trying to loop through all subsites under a site collection, get a Property Bag per site and push all the gathered results into an array. I'm having trouble checking if all the jQuery promises ...
1
vote
1answer
83 views

Why is JQuery saving my field as blank when I set the field to disabled

I have a sharepoint that I need to disable two of the fields on the Edit form. Here is the code I am using: $("input[title='Issue ID']").attr("disabled", true); $("input[title='Issue ...
0
votes
1answer
293 views

SPServices SPGetLastItem returns last id for current user

The function SPGetLastItem from SPServices returns last id for items that only the current user has created. I want a function that returns the last id for any user.
0
votes
1answer
115 views

Javascript/jQuery - check language and replace word problem

I need to replace one word in my SharePoint site, depend in on that what language is used. I found this question: Get the current UI language with ECMAScript I tried to use that code and it works ...
1
vote
0answers
58 views

content editor script isn't working on list view page

This is very strange. I have a script attached to a content editor that spruces up the status column of a particular list. However , I'm trying to achieve the same thing with that particular List's ...
0
votes
0answers
17 views

Sharepoint online + Crm online integration

I need to create one solution for SharePoint online which get data from crm online. Questions : How to authenticate to crm online from SharePoint online. How get data from crm online to SharePoint ...
1
vote
2answers
89 views

Your query is malformed with a date in where clause

I'm trying to query SharePoint using jQuery and SPServices. When I run the code below, I get the error Your query is malformed. Please rephrase your query. var searchq = ...
0
votes
1answer
96 views

How to create a SharePoint Content Type with multiple New Forms?

I am working in SharePoint 2013. I am trying to create a content Type with multiple New Forms. If some users click the New Item link they have to see one form and for others if they click the link ...
2
votes
2answers
121 views

JavaScript error while added jquery library to standard teamsite

I have a standard SharePoint 2013 Teamsite template with "seattle" masterpage and added jquery in the head of the seattle.html to solve some branding issues(screen 1). The problem is that I always get ...
0
votes
0answers
60 views

Cannot hide Document Set Contents Web Part rows with JQUERY/Javascript on the Welcome Page

It seems there is MS code behind the page that keeps "showing" anything I try to .hide in the document set web part on the Welcome Page of a document set. All other web parts on the Welcome Page ...
1
vote
1answer
405 views

Set value of people picker client side

I'm using SharePoint 2013 people picker client side, how can I set a default user using jQuery?
0
votes
2answers
443 views

Sharepoint 2013 Rest API _api/Web/SiteUserInfoList filter Name

I have some trouble to use the Sharepoint2013 Rest API _api/Web/SiteUserInfoList. I need to use a $filter on the Name. I get always a 400 Bad Request. This is my endopoint rest ...
0
votes
1answer
308 views

Unable to get property 'STS' undefined or null reference - Sp.ui.dialog.js

My problem is that when I start my app for the first time,it shows me an error. The error is: Unable to get property 'STS' undefined or null reference. If I refresh my app then the error disappears. ...
1
vote
2answers
62 views

Best way to implement “.exists”-type functionality to prevent duplicates?

I'm moving files with spservices (the jquery plugin) and was wondering if there was a good way to check to see if a file with the same name already exists so I can append an underscore or something ...
0
votes
3answers
715 views

Use CAML query based on ID to retrieve a file name?

With jquery and spservices, I use getSelectedItems to retrieve the IDs of a few documents. Can I have a loop which goes through a caml query for each of those IDs to retrieve the file name ...
1
vote
1answer
415 views

Updating Choice Person/Group columns using listData.svc in SharePoint 2010

I am trying to use JQuery and the listData.svc to update a list that has a choice column. I am using Postman to generate my http requests, can someone please show me examples of how to update choice ...
0
votes
0answers
40 views

finding individual list items and updating css

window.SFW = window.SFW || {}; window.SFW.urgentAlertsItem = { customItemHtml: function (ctx) { var urgentAlertsItemHtml = "<div class='urgent'><h2 class='name'>" + ...
0
votes
1answer
26 views

List description displayed in webpart

Is it possible to display the description of a library in SharePoint? For example, I have a list of links that are specific. I'm designing a webpart that displays the links, but I want the ...
0
votes
0answers
18 views

export a column to bibtex.bib with jquery

Is it possible to create a link or button with jquery inside my content type(for example in the welcome page of the content type) that export the content of a column of this content type to a .bib ...