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

learn more… | top users | synonyms

0
votes
1answer
44 views

Unable to system.string to system. guid - CSOM

I have a picture slideshow webpart which displays images from a particular library with a particular view. I want to change the webpart property - view using jquery. I have used CSOM to get the ...
0
votes
1answer
52 views

Creating a Status notification SP 2013. Script to make it fade?

I have some code that creates a new status bar but it just stays on top without fading. It doesn't even have an 'x' to close it manually. The following is how I am adding a new SP status from code ...
2
votes
1answer
8k views

Where to put javascript files, problem with _layouts

I'd like to add jQuery and SPServices. I added the following code: <SharePoint:ScriptLink runat="server" Name="/Style%20Library/Scripts/jquery-1.7.2.min.js" ...
1
vote
3answers
514 views

Jquery clickable Tooltip inside SharePoint WebPart

I have a requirement in which when ever user hover over a text(hyperlink) a tool-tip should appear that should contain images which are clickable using JQuery $('.cover_beholder').hover( function ...
0
votes
1answer
29 views

SP 2013 Form Customization

How can I change the checkboxes and radio buttons in a SharePoint list form to be horizontal rather than OOTB vertical to save space?
1
vote
1answer
2k views

jQuery SP.JS objects to test if current SharePoint user has full control / owner rigths?

As an example, the below jQuery displays current SharePoint user title. Excellent! :) Is it possible to use the sp.js objects to test If the current user has Full Control on the current page or ...
0
votes
1answer
109 views

Hover effect over an image in SharePoint 2010

I would like to add a kind of hover effect over an image. My source code in JavaScript looks like the following: _spBodyOnLoadFunctionNames.push("color"); function color(){ var $th = ...
0
votes
2answers
169 views

PageViewer web part - busy indicator using jQuery

I have MySites displaying through an iFrame via the PageViewer Web part which takes some time to load initially. The user is unaware of content loading as it only shows a blank page until finished. ...
0
votes
1answer
35 views

JS execute before data loading

I don't understand something. I have a js code in the $(document).ready() function. I got: function functionTest() { var elem = document.getElementById("MSOZoneCell_WebPartWPQ2"); if (elem ...
0
votes
0answers
28 views

SharePoint list freeze pane header width incorrect display in Chrome

I have a SharePoint list named "Open Question". I tried to put some jQuery code (also avoiding the 'expression' thing in the CSS style, for it might not be supported by all browsers) in the content ...
2
votes
2answers
969 views

How to modify the sharepoint 2010 NewItem2 function?

In sharepoint 2010, I want to add javascript to the alerts popup window page, but I don't want to modify the actual layouts file. I want to dynamically insert javascript in it. Basically the button to ...
0
votes
1answer
84 views

Retrieve current site name (not url) programmatically?

I want to create a code that only generates a link for certain users in a group, but this group name changes across the many subsites that my users have. The group name = [Site Title] + ' Creators' ...
0
votes
1answer
57 views

Using UpdateListItems for multiple items?

I would like to use UpdateListItems or something similar to allow my users to pass in some variable (e.g., a name) so I can use a caml query to find all items where SomeUserField = 'John B Smith' and ...
0
votes
2answers
131 views

Include js file in Page Layout, after jQuery file in Master Page

I'm trying to include a javascript file in my page layout file. I already have it inside the "PlaceHolderAdditionalPageHead" Content Placeholder, and it includes the file, however I need it to be ...
0
votes
1answer
31 views

Mobile Design not working on WIndows Phone [closed]

I have following jquery script $('#difoot').click(function (e) { $('#visdis').toggle(); $('#disfootr').toggle(100); ...
0
votes
0answers
77 views

Document Library EditForm that Saves then Redirects to Page with Query String

In SharePoint 2010, with a document library, the default editform resets the Source parameter in the URL which prevents you from navigating users back to source after selecting the Save button. This ...
2
votes
1answer
146 views

CORS with SPServices + jQuery

I need to access from a different domaine on a mobile a sharepoint list. Here is my code, a simple get request : $.support.cors = true; $(function() { $().SPServices({ operation: "GetListItems", ...
0
votes
1answer
84 views

Need to take list item count on 2010 based on the selected value

I have a Sample list named as LISTA. In which i have title column, the title column values are Title A b c A b c c I need to take the count of item count of a,b,c. using soap ...
1
vote
1answer
79 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 ...
0
votes
2answers
92 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 ...
1
vote
2answers
291 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 ...
1
vote
1answer
80 views

Disable drag and drop option for multiple file uploader

These are the screenshots of multiple file uploader from the same SharePoint 2010 site. Some users are seeing the first and some are seeing the second one. Is it possible to disable the second ...
1
vote
1answer
240 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 ...
1
vote
1answer
357 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
1answer
136 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
244 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 ...
1
vote
1answer
113 views

Footer does fill the whole width. Scrolling in document library

I have a problem with the footer not extending to the right side when scrolling to the right. (In a document library with way to many columns). Meaning the footer have a blank spot in the right side ...
0
votes
0answers
91 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
315 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
23 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
66 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 ...
1
vote
1answer
482 views

accessing remote web services(cross domain applications) using jquery jsonp

Here is My code ..could anyone please solve this problem..I was struggling from morning..below code is not working.Actually i should get the data when we send jasondata as input..but i am getting ...
2
votes
3answers
188 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 ...
0
votes
2answers
62 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
111 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
29 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
510 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...
0
votes
2answers
130 views

How do I show a field in dispform that's been hidden in content type?

Sharepoint 2010 Enterprise. This is document library for word documents. I have some fields that are set by workflow that I want end user to see but not be able to edit. I was going to just use ...
6
votes
8answers
4k views

REST ListData service and anonymous authentication

I’ve been trying to use ListData.svc to get a REST feed from a list (actually a pages library) using something like: ...
0
votes
0answers
134 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
1answer
69 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?
1
vote
2answers
68 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
273 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
2answers
2k 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 ...
0
votes
1answer
196 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 ...
0
votes
1answer
70 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
0answers
28 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
90 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 ...
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" ...
0
votes
1answer
70 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 ...