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

learn more… | top users | synonyms

0
votes
0answers
391 views

sharepoint 2010 with Kendo UI, REST, autocomplete

User defined List in SP 2010, with Kendo UI code as below does not display any data in for my simple 'autocomplete example' . Here is the code <script> ...
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
476 views

Developing a simple Webpart with NAPA on SharePoint Online 2013 in o365 . jQuery?

Installed NAPA and playing around. Some high level questions. If I'm building a webpart.. why does it insist on me having default.aspx? I put some jquery in ClientWebPart.aspx page to cause a ...
1
vote
3answers
1k views

How to Make Webpart Title to Display Day of the Week?

I have list View webpart in my sharepoint 2010 team site home page. Generally Web Part title can be easily modified by editing the webpart and providing Title value. I am looking for a solution to ...
0
votes
1answer
84 views

jquery for External List works for the first page

My jquery is in PlaceHolderAdditionalPageHead at the AllItems for the List. My list is external list. When I go to the list. Everythings ok. But when I go to the next page it doesn't work. How can I ...
1
vote
0answers
349 views

SharePoint 2010 edit item popup, fullscreen with jquery?

I have sharepoint 2010 portal. In this portal I have some libraries maded by a custom library template. This custom templates shows an example of the pdf file If you open it in the edit form. The ...
2
votes
2answers
187 views

Sharepoint 2010 javascript client object model - downloading items and item attachments?

Is there a way, so that you can download the items from a list and all its item attachment files in one context call? Currently I am downloading all the items, then looping through each item, and ...
1
vote
2answers
472 views

Undefined responseXML on StartWorkflow

I was presented with a task to run a workflow via jQuery. I know that SPServices has this capability, but I have never tried it before being assigned this task. So I set out and found some good ...
0
votes
2answers
7k views

How to add jQuery script to a custom visual webpart?

Similar to some previous questions, I'm trying to use jQuery in a visual web part but I keep getting that jQuery is undefined. I've added the jQuery script to SiteAssets as well as a script folder ...
2
votes
2answers
951 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 ...
1
vote
2answers
393 views

Item ID of current row

I am working on a script that needs to pull the SharePoint list item ID from the current row. I have a checkbox field in a multi-item form webpart that, when checked, needs to update the item without ...
3
votes
3answers
2k views

Prevent/override standard Modal Dialog close button(X) from closing

I want to validate custom modal dialog form and if its not ok, prevent form from closing. For this purpose, I attached to X-close-dialog-button. Problem is to prevent it's default behavior. function ...
2
votes
2answers
304 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
1answer
302 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" ...
0
votes
2answers
147 views

jquery not working on the site menu sharepoint 2013

okai I have been experiencing a really odd problem I am using jquery to remove css from sharepoint site menu , when I log in as site owner it working well , but when I login as a site visitor the ...
2
votes
1answer
520 views

Hide fields on NewForm.aspx and EditForm.aspx based on the current user's membership in a SharePoint Group

I have found a number of recommended ways in blogs looking to answer how to do this and have not successfully made any of them work using SharePoint MOSS 2007 and SharePoint Designer 2007. I have ...
0
votes
1answer
48 views

Designing a Sharepoint Workflow Distribution list filtered on column values

I'm working on putting together a Sharepoint site to report issues with a new software that is being implemented by my company. I already have a workflow that automatically sends an email to specific ...
0
votes
1answer
486 views

Need to remove html tags from <td></td> area in SharePoint custom DispForm.aspx

I had created a custom DispForm.aspx for a SharePoint list, using SharePoint designer. I included a Rich Text column type to show in DispForm.aspx. The contents of the column are showing, but somehow ...
1
vote
2answers
1k views

Using JQuery to Hide Elements on Masterpage

I want to make a few "special" pages in Sharepoint 2010, that hides the menu and ribbon from the Masterpage. Is it possible to write JQuery code in a web part that can hide/disable/delete some ...
0
votes
2answers
378 views

SP2013: Disable Column in GridView

I have a list which is shown in gridview (Quick Edit in the ribbon). Now i want to disable one column with jQuery. This might be possible by applying the attribute aria-readonly="true" to the ...
0
votes
0answers
126 views

Image hover/replace - image works but is cut up

I've managed to get an image rollover (images are replaced with different colour areas at hover) and it works when I load the html file direct. My content editor webpart makes the image go all ...
0
votes
1answer
44 views

Load All Task Items in to Page?

I have Task list in home page containing multiple task items, Is it possible to approve multiple items at once, instead of one at a time (being redirected to the start page after each approval..) ?
1
vote
3answers
648 views

SharePoint 2010 web service - GetListItems not working in Chrome & firefox

function GetListItems() { var soapEnv = "<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>" + ...
0
votes
2answers
312 views

SharePoint SPServices autocomplete not working for a column

I have a working jQuery SPServices code for a column Description in a list. The problem is, that when I try to get the data from another column, Project Item, with the same code, nothing happens. ...
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) { ...
0
votes
1answer
147 views

SharePoint; Javascript repeating click event already on page

I have a SharePoint calendar, and I've got some Javascript code to force a calendar overlay event to open in a modal dialog. Basically, it forces them to open in a modal dialog via this code: ...
1
vote
1answer
787 views

web part jquery ui dialog not working

I am working on SP2010 with visual web part in C#. I have added one form dialog using jquery-ui. When I use it directly from .ascx, its working. But when I am calling it from code behind, its not ...
1
vote
2answers
642 views

Cascade dropdown for multi select fields

I have successfully implemented the SPServices JQuery open source solution but unfortunately it doesn't seem to support multi select fields (I mean the ones where you can enable "allow multiple ...
0
votes
2answers
634 views

Autocomplete Textbox from Active Directory Users

Im making a webpart where a user should be able to add other users from active directory, without being able to know their full name etc. The field should be autocompleted in some way (like googles ...
0
votes
1answer
525 views

How to Customize Mobile View or Integrate Jquery Mobile into an already made SharePoint 2010 public facing site?

I'm very new to SharePoint Development and need some instruction or direction on how to customize the mobile view or use Jquery mobile on a SharePoint 2010 public facing site. I have been tasked with ...
3
votes
2answers
3k 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 ...
1
vote
2answers
90 views

How to hide particular SharePoint post use checkbox?

How can I hide my particular post in Sharpoint blogs, if I use checkbox field in post list by using javascript or jquery ? please if some have an idea ,please help me to resolve it. will great ...
0
votes
1answer
58 views

Hide navigation until all items are populated

I created a customized nav using the Sharepoint aspmenu with simple rendering which binds to an xml datasource to render the menu contents. I am then using a the jquery UI accordion to style it. The ...
0
votes
2answers
288 views

adding Jquery to Sharepoint 2010

I would like to add Jquery Accordion code for Sharepoint 2010. I have added jquery-1.9.1.js & jquery-ui.js file in _layouts\JScript folder. Now I want to add below code sharepoint designer. ...
1
vote
1answer
550 views

Designer Workflow: change document file extension upon upload

So I would like to try to create a workflow on a library that simply checks to see if the file extension is anything other than .xml, and if it is, rename the Name (File Name) to the same value with ...
0
votes
3answers
5k views

Get value from drop down using jQuery (lookup column)

I feel like this should be an easy one but am having trouble finding the answer here and via Google. Using jQuery, how do I retrieve the currently selected value from a dropdown in an ...
0
votes
1answer
117 views

Content Type Prompt in List

I have a list that has multiple content types in a SPF2010 environment. The manager of this list is familiar with using the New dropdown menu in the ribbon bar to select a content type, but he is ...
0
votes
2answers
4k views

jQuery accordion for the Quick Launch in SP2013

EDIT I improved the answer and created a blog post about it here. I followed this post in order to add the jQuery accordion functionality to the Quick Launch in SharePoint. While the code in the ...
1
vote
2answers
189 views

Site Permissions With Custom Navigation

I recently edited my organization's intranet site by creating a JavaScript file which utilizes jQuery v.8 and jQuery UI. My custom JS creates an unordered list with site navigation that has drop ...
0
votes
1answer
246 views

Best/Simplest Way to Implement Custom Button on List/Library?

I've removed most of the default elements with the following: <style type="text/css"> #s4-ribbonrow, .ms-cui-topBar2, .s4-notdlg, .s4-pr s4-ribbonrowhidetitle, .s4-notdlg noindex, ...
2
votes
4answers
5k views

Jquery is not firing on Page load SharePoint 2013

I have the following code (function ($) { $(document).ready(function () { // Ensure that the SP.UserProfiles.js file is loaded before the custom code runs. ...
0
votes
1answer
502 views

Load SharePoint 2010 page into another HTML page with jquery

I have an issue where I need to load a piece of my SharePoint 2010 site (header, navigation/search) into another .html page. In general, I want it to look like the following: <!doctype html> ...
0
votes
1answer
71 views

Catching query suggestions dropdown value

next to search box there is a dropdown containing query suggestions (everything, people, ...). How can I catch the value of this dropdown (it is div.s) in Javascript (jquery). Also I want to know ...
1
vote
0answers
175 views

update xml file within doc library using jquery ajax

I can read values from xml files that are posted within a document library using jquery ajax, but can I update those values then save/post them back into the document. i.e. can I update the contents ...
0
votes
1answer
118 views

Hiding “half” of the New button in the SharePoint ribbon

I built a calendar with multiple content types. What I'm basically trying to achieve here is to force a user to choose from those content types when creating a new item instead of defaulting to the ...
0
votes
1answer
169 views

Only View Document Library + should not be able to open document

I have a requirement for a set of users on the site to have permission level. When these users open the document library, they should see only metadata columns and title without the hyperlink or ECB ...
0
votes
1answer
636 views

Vertical image slider with jquery

I have a ticker news with vertical sliding. I need to slide both images and text along with it, which is coming from a single list. How to give the image source in this jquery code? The image is a ...
0
votes
1answer
140 views

Hide 'View Item' link in preview window in sharepoint asset library

I need to hide 'view Item' link in pop up (shown below) from preview window. I uploaded a video in asset library. As per requirement users should not download videos from library. How to hide or ...
1
vote
3answers
762 views

SPServices/JQuery How to Detect If The Current User Is System Accout

I need to detect if the current user is system account. With SPServices i can find user login name: var thisUserName = $().SPServices.SPGetCurrentUser({ fieldName: "Title", ...
-1
votes
1answer
205 views

Display Calculated column in List NewForm

How to display Calculated column in SharePoint List NewForm.aspx?