0
votes
1answer
26 views

Filter DataView web part using SPServices

Ok, this is the issue: I have a Data View web part which I would like to filter depending the "office" the user logged in belongs. I can get this using SPServices (GetUserProfileByName): JS ...
1
vote
3answers
57 views

Triggering javascript on a SharePoint Form Dropdown Field on Page Load without clicking

I have a NewForm.aspx page which is populated automatically via a query string in the URL, e.g. newform.aspx?Title=New Item&WorkArea=DHIS&Location=London I have some javascript code which ...
0
votes
2answers
82 views

Auto complete box with multiple values in SharePoint Web Part using J query and SharePoint list web service

SharePoint 2010 Questions. I am trying to create an auto suggesting text-box with multiple values in a SharePoint web part. i am using j query and SharePoint list web services to do it. I am just ...
0
votes
2answers
121 views

SharePoint list as data source for jQuery DataTables plugin

I trying to create a table using a SharePoint list as source. I followed this tutorial and it worked perfectly. But this method would not work if you need to reload the data using, let's say a drop ...
1
vote
4answers
245 views

Filter list data using SPServices, CAML Query, and dropdown list

I'm trying to create a table using SPServices to fetch the data, and filter it using CAML Query and a drop down list. I would like to create three conditions: A. If no item from the list is selected, ...
0
votes
2answers
91 views

Use Google Visualization with Datatables plugin and which get data from REST

I have this code that get the data from SharePoint using ajax, and the datatable plugin creates the table. function LoadAIP(state){ var call = $.ajax({ ...
0
votes
0answers
57 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
3answers
167 views

Using REST call and Datatables plugin to retrieve SharePoint Date field

I'm having an issue with a REST call that's giving me some headaches. This is the code I'm using: function LoadAIP(state) { var call = $.ajax({ url: "https://xxxx/xxxx/_vti_bin/listdata.svc/AIPList? ...
1
vote
2answers
60 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
231 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 ...
1
vote
0answers
76 views

Force PDF to open in new window/tab

I am using SharePoint Foundation 2010 and attempting to have my PDFs open in a new tab or window. I have been able to get this to work from document libraries by using jQuery. You can see this code ...
1
vote
1answer
601 views

Using REST call to retrieve SharePoint list items as an array of JSON objects

I found this great tutorial to use REST calls to retrieve SharePoint list items as an array of JSON objects posted by Mark.Rackley (Mark Rackley.). It is working, but I would like to add a new ...
0
votes
1answer
83 views

Javascript/jQuery - check language and replace word problem

I need to replace one word in my SharePoint site, depend in on that what language is used. I found this question: Get the current UI language with ECMAScript I tried to use that code and it works ...
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 ...
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 ...
0
votes
3answers
649 views

Multiple lists merge in to single list

I have 3 lists Initiatives ----------- Initiative (single line text) Themes ------ Theme (single line text) Initiative (Lookup from Initiatives:Initiative) Features -------- Feature ...
0
votes
0answers
111 views

Retrieving specific div from a wiki page on ajax call

I am trying to retrieve a specific div content through ajax call from a wiki page and then I need to use it in a web part page. The problem I am facing is that if I use this $.ajax({ ...
0
votes
0answers
108 views

Show multiline field if specific select option selected

I'm trying to create a Note box to show up when an items status is set to cancelled. What I'm noticing in the html is that within a form, switching between options does change the html until saved. ...
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. ...
0
votes
2answers
899 views

Javascript fails in chrome and firefox, works fine in IE

I have this JavaScript code for my SharePoint forms which does not work in other browsers but Internet Explorer. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" ...
1
vote
1answer
144 views

Video files are downloading instead of playing [closed]

I've uploaded .swf files to a document library and the jwplayer.js file to the same library. From there I've uploaded an HMTL file which contains: <html> <head> ...
0
votes
3answers
2k views

Jquery to load dropdown on selected index change of another drop down in sharepoint 2010

I have 2 dropdowns. On Selected Index change event of ddlTaskFrequency dropdown i want to load another drop down. For example: If ddlTaskFrequency text= Daily or Weekly i have to load another ...
0
votes
2answers
67 views

JQuery on SharePoint 2010

What are the business case scenario when JQuery controls are used in CSOM programming in SharePoint 2010? I mean what are business case scenario when JQuery frequently used in SharePoint 2010? Which ...
1
vote
3answers
942 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 ...
1
vote
2answers
450 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 ...
1
vote
2answers
380 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 ...
0
votes
1answer
113 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
1answer
237 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, ...
-1
votes
1answer
198 views

Display Calculated column in List NewForm

How to display Calculated column in SharePoint List NewForm.aspx?
1
vote
1answer
804 views

SharePoint DateTime field as Read-Only

How to make SharePoint DateTime field as Read only in NewForm.aspx? I'm using the below script to make DateTimeColumn as read only. It's working fine in firefox & not in IE9. Calendar icon ...
1
vote
1answer
168 views

SharePoint DateTime format as DD-MMM-YYYY in List NewForm

How to bring the DateTime format as DD-MMM-YYYY in SharePoint list NewForm.aspx?
1
vote
0answers
147 views

Make Webpart connections to work when a dropdown value is changed

I have a simple newform.aspx which has Employee as a textbox. During onload of the page, I assign this with currentuser. On the same page, I have a webpart created using sharepoint designer that ...
1
vote
1answer
2k views

sharepoint 2010 upload file to document library using jquery

Hi all using jquery i want to upload file to solution gallery. so is that possible to upload file in solution gallery using jquery. how? another thing is it possible to upload file in document ...
0
votes
4answers
2k views

JQuery in a Visual WebPart won't load on the page with the webpart

Hey I have a bunch of JavaScript/Jquery code that works really well when I use a Content-Editor webpart, but does not execute when I add the same code to the VisualWebPart mark up. I am referencing ...
2
votes
1answer
637 views

Can I use asp.net web service in Sharepoint project?

I had create .asmx webservice in asp.net projects. my doubts that is this able to use this webservice in sharepoint project? suppose this is my code source: function (request, response) { ...