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

learn more… | top users | synonyms

0
votes
1answer
67 views

two drop-down side by side

I want to show two drop-downs for Day and Month in SharePoint OOTB form in one row (side by side).
0
votes
0answers
35 views

How can I on list datasheetview, disable with jquery combobox-dropdown if one of the option is selected?

What I want to get after all, when user will chose the one of the option from Approval , in ListDatasheetView combobox of approval field should be disable and when the Approval status will become ...
1
vote
1answer
89 views

Dynamic Left Navigation bar

I need to showcase dynamically newly added list items in the left navigation bar. I have a master list. Please tell me the solution using jquery or server object model In sharepoint 2013, site ...
2
votes
2answers
151 views

Format part of the column value in a ListView Web Part

I have a list containing a few items, some of which are marked as compliant. So I have a column for marking it as compliant, and another calculated column, where I have the calculated value as Title ...
2
votes
2answers
85 views

In jquery rest result for person object as a [object Object]

Would it be possible to get a Person or Group type as a string rather than and [object Object], I am handling everything within the front-end with REST calls to listdata.svc URL's. CODE // DISPLAY ...
2
votes
1answer
233 views

Open one page after another in a modal dialog

My client wants me to create a modal dialog that acts like a popup window. Can this be done? Here's the issue: The visitor is editing some basic database data via a form in the original browser ...
2
votes
0answers
64 views

Check whether user belongs to sharepoint group, which consists of distribution list as members

I have a distribution list, which is added to a SharePoint group. I need to determine whether the logged in user(Who is part of the distribution list) is part of the SharePoint group. this needs to be ...
1
vote
2answers
76 views

If I have several items' IDs, how can I use that to retrieve a specific field value?

I have used (in a for loop): var itm = mylist.getItemById(id); I tried using context.executeQueryAsync , but I read that I can't use this to store or return global variables. The only examples I ...
0
votes
0answers
67 views

Cannot Hide results from document library using JQuery Dropdown/HoverOver/MouseOver

I have a jquery dropdown menu for when a user hovers a link to display results dynamically from a SharePoint Document Library. It's working ... Problem is its not hiding the results and is displaying ...
4
votes
1answer
68 views

How can I provide option 'Select' in dropdown and lookup column of Sharepoint

I have a mandatory drop down column, I want a select option as the standard drop down I have a non-mandatory lookup column , which contains (None) as default value , How can that be changed to Select ...
1
vote
1answer
106 views

how to display two fields (and their labels) in the same row? Sharepoint

I have two fields in out of the box sharepoint list form , both are single line of text Is there any jquery way in which I can merge the two columns into one row I am a newbie to coding. So I do not ...
2
votes
1answer
176 views

REST listdata.svc call to another site in collection doesn't return people picker values

I have two sites on the same collection. There is a people picker field on my list in site2. I am in Sharepoint 2010. mysharepointsite/site1 mysharepointsite/site2 I am using the Sharepoint REST API ...
2
votes
1answer
38 views

How to store “stream” and “fields” paramters properly

I'm trying to use the GetItem method to use for copying documents, but I'm not having luck with the field or stream parameters. Below is an example of how I attempted to store each of them. When I ...
1
vote
1answer
62 views

Opening ECB resets custom href of list items

Once a page finishes loading, I use JQuery to change the href of every item based on some custom validation. So far so good but my problem is that opening the ECB will reset the href of that item. I ...
0
votes
2answers
101 views

Clear image cache in Office 365 Public Website

I am working on a public website in Office 365. I have a jquery-based image slideshow program that works fairly well, but if I add or remove images from the slideshow I occasionally get the dreaded ...
0
votes
0answers
110 views

How to copy document from library to list attachment with SP Services?

I need to attach a document that is stored inside a document library to a list item on the same webpage. All needs to be done with javascript / jquery / spservices. Can you please help me and show ...
1
vote
2answers
556 views

Content Editor Jquery working in Firefox not in IE

I'm trying to display an image, content and a link to open new list item dialog box. This is working in Firefox, but in IE it gives the error "wrong number of arguments or invalid property ...
2
votes
2answers
74 views

Image not loading in SharePoint 2013

We are in process of upgrading SP2010 project to SP2013. There is an issue loading an image in a webpart. In the SP2013 master page we have added before head tag:- <link rel="stylesheet" ...
2
votes
2answers
3k views

jQuery - How would you display / hide content with a radio button based on a date?

I current have a list of items being pulled through in a Content Query Web Part. Onload, I would like to display the items from today onwards, and for this to be a radio button selected onload. The ...
3
votes
1answer
659 views

Help with getting the value of a look up field

Currently, I am using an ajax request to access the list items. The fields that are not lookups come as expected but the lookup fields come across as an ID of the object that corresponds to its ...
2
votes
1answer
255 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. ...
1
vote
1answer
80 views

How do I stop jQuery from injecting junk attributes into my HTML

I have an HTML unordered list in a Content Editor web part that I'm formatting as tabs where each has an onclick event to show/hide some other data. The issue is that I'm getting all these weirdo ...
0
votes
3answers
3k views

Populate a text box based on drop down value from a sharepoint List

I have a List B that has a look up column "State" to a column "State" in List A .List A has corresponding column "City" to each state(unique combination) . While adding new item in List B , State is a ...
0
votes
1answer
232 views

Set value of choice field based on input from people picker

I have Choice Field which i use to filter items within a list. I'm trying to figure out a way to set value of this choice field within my edit form is there is a name in the people picker field. ...
2
votes
1answer
442 views

Using javascript/jquery to modify the display form?

I have a js file which retrieves a value stored in a date field and then calculates the remaining time in weeks/days. My issue is that this works on the edit form because I send the value in with ...
1
vote
2answers
219 views

How i can change the color font to red in a drop down feild inside sharepoint

I have an issue that i need to change the font color to be red when we edit the Project task list in my drop down Task Status feild when the Task status is Late > color in red and we choose another ...
0
votes
3answers
257 views

jQuery globalization in SharePoint 2010

jQuery UI and validation are strongly dependent upon regional settings. Consider for example a date validation or a number validation, it cannot work irrespective of the current locale. For this ...
7
votes
5answers
2k views

Add jQuery in Sandbox mode (Office 365)

What would be the best approach in using/including jQuery in Office 365? Should I just use google CDN or is it possible to deploy the jQuery file to the server? Is there any good articles/resources ...
1
vote
1answer
220 views

Get SharePoint logged username from page displayed at WebPart

I have a webpage hosted in my local server being displayed inside a Page Viewer Web Part in SharePoint 2007. I would like to include a user check inside the pages in my server, so when an user tried ...
0
votes
2answers
369 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
1answer
98 views

windows.setTimeout() making my infopath form very slow

this is my code for InfoPath postback window.onload = function() { window.setTimeout(getData, 1000); } function getData(){ getEmployee(); getCompany(); window.setTimeout(getData, 1000); //To ...
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 ...
0
votes
0answers
155 views

Bootstrap not working in Page Viewer Web Part - IE9

I have a web page, developed using bootstrap, hosted in my local server, and I am using a page viewer web part in SharePoint 2007 to display it. The web page works perfectly outside the SharePoint ...
1
vote
1answer
54 views

ExecuteOrDelayUntilScript not working - Sharepoint 2010

I have written a function to scroll a Gannt chart to today's date. The sharepoint file jsgrid.js is registered SOD during init.js and includes the function "ScrollGanttToDate", which I need in my ...
1
vote
1answer
172 views

How to use “SPTreeView” in sharepoint hosted app

I am developing SharePoint hosted app. In that I have to use SPTreeView to display root site content in the Tree view form. For the data source I have to use SPHierarchyDataSourceControl. But I don't ...
0
votes
1answer
141 views

Blank page after adding JQuery

I am getting a white page after adding jquery to my master page: <!--MS:<SharePoint:ScriptLink language="javascript" name="/_catalogs/masterpage/mymp/js/jquery-1.11.0.min.js" ID="jquery" ...
0
votes
2answers
108 views

If a user accidentally closes dialog in sharepoint, can we force it to submit to it's list?

In our sharepoint item workflow we have users enter info into a form, then hit submit as usual. A manager does not want the users to have to do it again if they accidentally close the form, or fire ...
0
votes
1answer
93 views

Open source / free scrolling web part that does not require code modification

Does there exist a free scrolling announcements web part that does not need custom code in a content editor web part to function? I am designing a site template for use within my company. My manager ...
0
votes
1answer
26 views

Manipulating SharePoint data from an external website

I have a website built on SiteFinity. What I am aiming to do is: 1) Retrieve and display the 'Accounts' lists from SharePoint 2013 Foundation on the website for subscribed members. 2) Create and ...
1
vote
2answers
296 views

SP13 Accordian View (HTML Script)

I am working with SP2013. My objective is to add an accordion View to a Summary Link Web Part. I added the Summary Link Web Part. Within the Summary Link Web Part, I created groups. Then I added a ...
0
votes
1answer
251 views

Javascript in CEWP on EditForm.aspx not kicking off in Chrome

In our SharePoint 2010 Enterprise environment I tried adding Javascript into a Content Editor Web Part on a custom List's EditForm.aspx page, and for some reason the code only runs when the form is in ...
0
votes
0answers
123 views

Text box getting cleared on post back

I have created the textbox in infopath ,Here I have used auto suggest control for a textbox, I will load value and ID in that text box , on selecting a value in auto suggest on the textbox an id will ...
0
votes
1answer
98 views

Create a radio button filter based on “Created Date” attribute using jquery or javascript

I’m currently loading a number of list items through a customised Content Query Web Part. And XSLT attribute associated with each of these items is the Created Date. An example of the mark up ...
1
vote
2answers
2k views

Trying to open a SharePoint List item in Modal Dialog in Sharepoint 2013 Office 365 (online)

Sorry for the long post. This has been killing me. I had this script working perfectly fine in SharePoint 2010 (online) and basically i have a source custom list (list A) with a hyperlink column and a ...
1
vote
1answer
134 views

Best way to create a page layout like this? Examples given!

I'm looking to make our main SharePoint 2013 page similar to that of t.msn.com. Below are some screenshots. Any ideas or recommendations will be much appreciated. Thanks
2
votes
0answers
178 views

SharePoint InputFormTextBox returns javascript error while changing its position

I have created one aspx page for implementing the edit comments of the form. For this I am using the SharePoint InputFormTextBox control. I have a total of 4 Divs each containing one InputFormTextBox, ...
1
vote
3answers
374 views

jQuery selector worked in 2007 but not in 2010

$("#aspnetForm").attr('action', newAction); In SP2007 it worked fine, in SP2010 I get the following error in the SharePoint log: System.Web.HttpException: Failed to load viewstate. Can someone ...
0
votes
0answers
26 views

Jquery Script on CEWP working only on double click [duplicate]

I have a JQuery Script uploaded to the CEWP on the add and display forms of a sharepoint calendar on the add form, the script is working consitantly as expected while on the display, It has suddenly ...
3
votes
1answer
115 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 ...
2
votes
2answers
299 views

How to create a form that populates a list in sharepoint?

I need to create an HTML form with two text boxes and a button that you click the update button it inserts the two values ​​in a sharepoint list. Below an example of what I'm trying to do: // ...