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

learn more… | top users | synonyms

3
votes
1answer
31 views

How to get ClientPeoplePicker value using javascript

can anyone please tell me, How to get ClientPeoplePicker value using javascript.?
3
votes
2answers
91 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 ...
3
votes
1answer
339 views

Get ID of item in ListView Web Part

How can I get the ID of an item in a ListView Web Part, on hover? I need this ID to fetch some columns from the list, and show them in a tooltip box. Can I get the whole thing done using ...
3
votes
1answer
114 views

Removing text 'Folder" from grouped items in a list

I have a simple SP list grouped by folder. So my items appear with the expanded or collapsed arrow icon, the string "Folder :" and the folder name. (Example > Folder : Corporate). I have a request to ...
3
votes
1answer
329 views

SharePoint REST POST to upload file produces corrupted or empty file

I've got this jquery/REST process that I thought was uploading a PDF file to SPO 2013 Document library, but it's only producing an empty or corrupt. Anybody know why? function ...
3
votes
2answers
101 views

sharepoing rounded corner jquery plugin

I trying to using the jquery plugin of rounded corner, directly into the masterpage (v4.master) here is the code: <SharePoint:ScriptLink ID="ScriptLink1" Name="~sitecollection/Style ...
3
votes
1answer
155 views

SP2010 possible to create a text file in document library and fill with data from list using JSOM JavaScript/jquery

Is it possible to create a new item in a library and default that to a txt file or XML and using JavaScript or jquery insert data from a list into that file? For example from a page click a button ...
3
votes
2answers
2k views

Disable a form text field with jquery in CEWP not working in Chrome/Firefox

I want to simply disable a text field (specifically a "person/group" field text box) from being editable on the edit form page of my list item. I have it working in IE using a Content Editor Web Part ...
3
votes
1answer
278 views

Compressing or stop rendering of JS files from SharePoint on mobile devices

I have costumer who is complaining about massive data traffic on their mobile devices when they enter their website from their cellphones or tablets. When we made the site in the beginning, we made ...
3
votes
2answers
676 views

PreSaveAction on edit mode

I'm working on a custom list. Two DWP webparts the first one insert data(save button only but some fields are pre filled) and the other one shows the data(This has got edit and delete enabled) I'm of ...
3
votes
1answer
516 views

List Item required field: Change of form element Title attribute?

In my SP Online (2013) site I have some heavily customised list input forms, the input fields of which I have been quite happily referencing using jQuery using the following syntax: ...
3
votes
0answers
147 views

Can zRSSFeed handle HTTPS RSS Feed from SharePoint?

I'm working on an internal website for my organization. The Company uses SharePoint to allow orgs to create their own blogs. I created a blog (in addition to a website for my org). I am now trying to ...
3
votes
3answers
5k views

Posting JSON to a REST WCF endpoint in Sharepoint using cksdev

http://ranaictiu-technicalblog.blogspot.com/2011/09/sharepoint-2010-access-wcf-service-with.html?showComment=1323864446083#c4340503928745769810 has an example of using JQuery Ajax to GET or POST to ...
2
votes
3answers
668 views

Can a web part prevent master page jQuery from executing properly?

I'm including jQuery and a custom .js file into the master page of my SharePoint 2010 site. In the $(document).ready() function, I'm setting a live event handler on an element in the header of the ...
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" ...
2
votes
3answers
4k views

How do I get the username from a PeoplePicker control using jQuery?

I have a form where I used a People Picker control. I would like to get the username entered into a people picker control using jQuery. Please suggest?
2
votes
4answers
866 views

Possible to make a self contained web part that uses jQuery?

Basically I would like to create a WebPart that uses jQuery but I don't want to have to add jQuery to my masterpages (or anywhere else) manually. I would like to have one WSP that I could email to ...
2
votes
3answers
4k views

Why does jquery's document.ready not fire?

In my master page, I have attached jQuery along with my own custom.js. I use the javascript in that file to run fixes on my pages such as style adjustments. Now, when I run simple functions on my ...
2
votes
1answer
394 views

Using Sharepoint Modal

we are implementing a feature in sharepoint where the user can share documents, we are reworking our own UI to make it easier for the end user. We have a modal popup where you can select multiple ...
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 ...
2
votes
5answers
4k views

How can I hide allitems.aspx from curious people?

I have a custom ASPX page in WSS 3.0 which I use to capture email addresses. These emails are stored in a list called Notificiations using nothing but jQuery and SPServices. Because I'm using jQuery ...
2
votes
2answers
2k views

Loading jQuery and jQuery UI within JSLink script

How would I go about using jQuery and jQuery UI (mainly the sortable component) within a JSLink script. So far I've tried several methods of dynamically loading javascript within the JSLink script ...
2
votes
1answer
4k views

jQuery & SP2010 : Upload document to library using jQuery?

I built a custom form that saves the data to multiple lists with on click; it works pretty well for its intended use (keeping the data related). Thing is I am totally new at jQuery and SPServices, but ...
2
votes
1answer
340 views

Using an ID to remove a class using jQuery

I'm trying to remove the classstatic selected menu-item using $("#slink").removeClass("static selected menu-item"); Thanks guys.I'm sure the Jquery script is running as i have other stuff there. ...
2
votes
2answers
2k views

Get a pop up box to show the user details?

I have a list called Contact, where I have three fields , 1. Name 2. Mobile 3. Email. Now I created a Content Editor, Where I will display all the names of the employees. Now how can I create a pop ...
2
votes
1answer
623 views

How can I get specific SharePoint site GUID using javascript/jquery

For example: I have a site under this url: http://intranet.contoso.com/news When I open it i would like to read it's GUID for future use in my custom AssetPortalBrowser.aspx url picker. Thanks!
2
votes
1answer
248 views

Use jQuery to get date value from a list edit form?

My goal is to pull a value on the EditForm from a Date field. I want to take the 'due date' field, do a "get date", and subtract the difference between that date and today to get a "days left" number. ...
2
votes
1answer
426 views

Jquery is not working on IE10

The below script works properly on the firefox and hides the Page Rating & Last modified divs however it is not working on IE-10, am I missing anything? <script type="text/javascript" ...
2
votes
3answers
2k views

How to Create Piechart in sharepoint 2010 Based on the List item Values? Only using Javascript/jquery

I have a CustomList in Sharepoint 2010 as Mentioned Below.have two columns Team and Values of Team List A Team ValuesofTeam A 9 A 6 B 7 C ...
2
votes
1answer
175 views

How to pass arguments to SPServices function request?

In SPServices library, I make a search request using: $().SPServices({ operation: "Query", queryXml: queryText, completefunc: searchComplete }); function searchComplete(xdata, status) { ...
2
votes
2answers
298 views

SP2010: Get all library names within a site using javascript client object model?

How do I get the names of all libraries within a given site using jquery/javascript? the only way i know of is using getByTitle('listtitle'), but I would like all names of libraries (hopefully there ...
2
votes
2answers
296 views

Get Modal Dialog Close button

I have override new item form for list, opening myPage.aspx where this javascript is in the "PlaceHolderAdditionalPageHead": function fGetCloseBtn() { var closeButton = ...
2
votes
3answers
2k views

Detect Modal Dialog Close with JQuery

In my application, I am trying to hide scrollbars in the parent window when a modal dialog is opened... I've added this to my Master Page: $(function(){ if(window.frameElement != null) { ...
2
votes
3answers
3k views

Remove ribbon entirely on certain page?

Can this be done with SharePoint Online? Failing that, for an entire site? Thanks.
2
votes
2answers
852 views

Can't get a basic Modal to work on 2010

I'm migrating a project from SP2007 to SP2010. I want to get a modal popup to work, to open up the New Item window of a list from an aspx page. I can't get the modal to work in the most basic example, ...
2
votes
4answers
5k views

Loading jQuery in the Correct order

I wish to use a jQuery plugin in SharePoint. Currentley I have jQuery added to each page via a custom master page. <script src="/Style Library/js/jquery-1.6.4.min.js" ...
2
votes
2answers
3k views

Scroll position in Sharepoint 2010?

Do you know a way to find out a scroll position in JS or jQuery on a page in Sharepoint 2010? I have a web part that is very big (high) so scroll on the page appears. But I cannot determine the scroll ...
2
votes
1answer
175 views

Count Number of Words existed in Word Document

Hello Group members, I have a document,Where When I upload the document in document library or in List then I need to count the total number of words existed in Word Document ...
2
votes
1answer
5k views

Expand/collapse all grouped items in views of a page

Is there a way to add a button to a SharePoint 2010 page to expand all grouped items in all the list views on the page? This is the first (top) level grouping only, not the second level. These are ...
2
votes
2answers
511 views

Popup to allow emailing of current URL

I'd like to implement an email icon on the pages of our SharePoint 2010 site collection; when the user clicks it, a Lightbox-style popup allows the user to email the current URL with a custom message ...
2
votes
1answer
446 views

jQuery cascading dropdowns and Word

If a user clicks on New from a document library then a word template opens with metadata in the header section, will the SPServices jQuery cascading dropdowns work in the word's header? I doubt it. If ...
2
votes
6answers
4k views

How to update multiple ListItems with a “Where Clause” using SPServices?

I've searched the jQuery SPServices code examples and MSDN references for an simple example how to update several ListItems using a Where-Clause. Code for updating a single ListItem with ID = 500, ...
2
votes
2answers
108 views

Set default value in people picker javascript/jquery

I want to set current logged in user to people picker by javascript. I can retrieve the value of user(lets say in var user).But how to set it to people control. Any help is much appreciated.
2
votes
2answers
157 views

Add Ribbon Button via JavaScript

I have specific requirements from my client that he wants to add some additional Ribbon Button "but only" via JavaScript (including EnableScript reading value from some other list). They don't want to ...
2
votes
1answer
290 views

jQuery not loading in sharepoint 2010 asp.net page

I am making an visual webpart in Sharepoint 2010, and I am trying to load my jquery files in the ascx page. Near the top of the page I have this: <SharePoint:CssRegistration ID="jquery_css" ...
2
votes
2answers
432 views

How to duplicate a question in a survey?

We have a survey that has 10 main questions. All of these questions are unique. After each question, we want to show last year's average answer to the same survey question. We're able to insert ...
2
votes
2answers
2k views

Left navigation bar customization based on user permissions

Hi I have to change my left navigation based on specific user permission. is that possible without change in masterpage . I know jquery is one solution but any other way through we change left ...
2
votes
1answer
4k views

SPServices: trying to learn how to use this and jquery, help with example

So I am trying to learn these both as I read nuthin but great things all over the place about them. So this is what I have from example on codeplex: <script type="text/javascript" ...
2
votes
1answer
397 views

How do I trigger off of the ribbonbar being shown/hidden?

When the ribbon bar is visible (i.e., not in Browse mode), I want certain things to happen on my page (mostly involving changing styles of some items). How do I determine if it's visible or not or ...
2
votes
1answer
4k views

Dropdown lookupcoloumn in sharepoint list form (newform.aspx)2010

I have a dropdown lookupfield in newform.aspx sharepoint form...unlike choice dropdown the lookupdropdown is 'input' field and not 'select'.. so i raise an onchange event using jquery ...