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

learn more… | top users | synonyms

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
66 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
67 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
102 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
169 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
37 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
60 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
99 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
108 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
553 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
72 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
638 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
247 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
77 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
2k 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
230 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
423 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
215 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
253 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
212 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
367 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
153 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
53 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
169 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
140 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
104 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
92 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
291 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
241 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
117 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
133 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
177 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
113 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
280 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: // ...
7
votes
2answers
4k views

Adding jQuery to master page

I am trying to customize a Sharepoint 2013 team site. I created a copy of seattle.master and set it as default master page via context menu. I added my custom CSS within head tages like so: ...
1
vote
1answer
133 views

Internet Explorer 11 issue with SPServices

I have created js file which have spservices common function which I am using in my page. Below is the code for one of the function which will use for Add/Delete/Update by sending appropriate ...
1
vote
1answer
739 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
5answers
923 views

SharePoint 2010 - Content Editor Duplicating Enteries

I'm using jQuery inside of a SharePoint 2010 to create an image gallery. The gallery works perfectly and there are no problems. The gallery is entirely generated using jQuery and all HTML objects ...
2
votes
1answer
102 views

How to add class to list view colum in webpart or hide column

This is Sharepoint 2010. I have a list view webpart(calendar) with title and date. I am using Jquery to filter dates shown (workaround for limitations in filtering on reoccurring event). I need to ...
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 ...
2
votes
4answers
378 views

Why doesn't jQuery execute in a DataViewWebPart with asynchronous load enabled?

The jQuery scripts I have in a DVWP do not get executed when I enable Asychronous Load in the Ajax Options of the DVWP. They do execute when I disable Asychronous Load though. Any thoughts on this? A ...