0
votes
0answers
13 views

How to use Javascript to update a Discussion Board reply?

I have a Discussion Board with a series of replies. Each 'Message' (Reply) Content Type has an 'Answer' dropdown with the values 'YES/NO' (NO being default) I have created a hyperlink on the property ...
0
votes
0answers
9 views

Changing the link of the 'Reply' button in a Discussion Board

I have a Discussion Board and within this board a user creates a 'Discussion'. When a user wants to reply to this 'Discussion' they click the 'Reply' button and the reply entry appears. By default ...
1
vote
3answers
43 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
1answer
44 views

Javascript for drop down list

I'm trying to create some JavaScript that will identify two matching drop down lists and send a pop-up alert. The alert would state "You must select one schedule per rank.". It would be nice to have ...
0
votes
2answers
37 views

Javascript works when on edit page but not when page is published

I have a page on my sharepoint site, when i'm on the edit page the javascript works however when I have published the page, the javascript doesn't work. I have added the link to the javascript file in ...
0
votes
0answers
10 views

Event when selecting item in listview

I have created a webpart that shows detailed information of a selected item in listview. The problem is that user has to click on the select icon. The requirement is that the detail webpart should ...
1
vote
1answer
43 views

How to Print a table with Style

I cannot print a page with Style in SharePoint. Please take a look on two images below. I've added the media="all" or media="print" into <style type=text/css> but these didn't work. The screen ...
2
votes
2answers
176 views

Why does “sp.js” load only when I am editing a web part page?

I have created a page and would like to use some functions that require sp.js to be loaded, but it never seems to load unless I am editid the page (Site Actions -> Edit Page). Trying to find the ...
1
vote
1answer
85 views

SharePoint Foundation 2013 - Problem with loading sp.js and sp.runtime.js

I have problem with an order in which I am loading <script type="text/javascript" src="/_layouts/15/sp.js"></script> <script type="text/javascript" ...
2
votes
2answers
257 views

How Can One Hide Dynamically Loaded Ribbon Buttons in SharePoint 2013 with JavaScript?

I would like to know how to hide specific buttons from a SharePoint 2013 ribbon particularly when the ribbon buttons are loaded dynamically using JavaScript. For example, when the "List" tab of a ...
0
votes
0answers
44 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 ...
1
vote
1answer
29 views

Sharepoint Skype status field with skype button

I have a skype name field in a list. I would like to use skype button to it or any other way users can can call or chat by pressing on it. Is this possible? Thanks in Advance
0
votes
0answers
163 views

Saving Page with WebPart error Invalid postback or callback argument

I'm using SharePoint 2010 Foundation with Visual Studio 2010 Ultimate. I developed a Web Part with extensive use of JavaScript and Ajax call. I deploy application by Visual Studio correctly, enable ...
1
vote
2answers
52 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 ...
0
votes
2answers
78 views

WebParts with JavaScript don't work with managed path

I developed a SharePoint 2010 WebParts with JavaScript and CSS(inside a module). I haven't problem on development environment but in production environment. In production environment I have a ...
1
vote
3answers
207 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 ...
2
votes
1answer
67 views

Mimic Target Audience in SharePoint Foundation

As a preface, I know Foundation does not have audience targeting. But, I do not have an option to upgrade to SharePoint Server. So, with that preface, here is my dillema. I have two SP groups, ...
0
votes
1answer
66 views

BoxShadow and BorderRadius do not appear in IE with Javascript and CSS?

I got into a trouble that in the SharePoint, the Box-shadow, Border-radius and the showToggle's div tag don't appear in IE, but it runs very well in FF and Chrome. Please let me know what is going ...
0
votes
1answer
72 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
32 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 ...
2
votes
1answer
65 views

How to upload image file into the SharePoint picture library using ECMA Script

I require code to upload image file to sharepoint picture library using javascript or ecma script. Thanks
2
votes
3answers
150 views

Error when deploying SharePoint feature: The specified list does not exists

I'm using SharePoint 2010 Foundation and Visual Studio 2010 Ultimate. I'm working on a Web Parts with two features: Feature1 - My Web Parts Feature2 - Contains two Visual Studio module with CSS and ...
2
votes
1answer
56 views

Where/How Do I Add Backbone.js to Home.aspx Without Visual Studio

Is there a way to add an external javascript file to Home.aspx? I tried to add it to the Content PlaceHolder - PlaceHolderAdditionalPageHead but it didn't work (meaning that the link did not appear in ...
0
votes
1answer
1k views

Programming to retrieve list items in a SharePoint list using Javascript

I have requirement which is Retrieve List Items in a List(list created through OOB) Display those list items on the sharepoint site by binding to repeator control Using javascript and client object ...
1
vote
4answers
539 views

JavaScript in a SharePoint page

I am trying to run my JavaScript code in SharePoint2010 but I don't know how to do that. I created a visual web part and added the following simple JavaScript code, but it's not executing in my ...
0
votes
1answer
299 views

Call executeQueryAsync method second time gives first time result

In the code I tried to get the data from 2 different LIST. Input of the second query will be done after executing first list. $(document).ready(function () { $("#SearchButton").click(function ...
1
vote
0answers
45 views

Unable to get related information from related list and display it on textbox on parent list using logged in user

I have two lists Created for my leave application in sharePoint. I need related information's come from related list (Leaveinfo) and display it on the textbox in Parent list (LeaveApply). I have ...
0
votes
2answers
479 views

Open in a new window a document stored in SharePoint in C#

My problem is simple. From an aspx page, I need to open in a new window a document stored in Sharepoint. To access the document in SharePoint I need to provide credentials. To open the document in a ...
0
votes
0answers
213 views

How to add and delete items in SP list using multi select box?

My question is that I am using a multi select list box to insert selected data to sharepoint list and I am using ecmascript object model. <select id="dd" multiple="multiple"></select> ...
1
vote
1answer
1k views

How to get file or list item icon in SharePoint 2013 using javascript

My requirement is i have to display files from document library with images using javascript object model or spservices. pls let me now is there a way.
0
votes
1answer
130 views

Specifying Title URL in List View Webpart

I want to set the Title Url something like /sites/somesite/SitePages/MySearchPage#Default={\"o\":[{\"d\":1,\"p\":\"AverageRating\"}]} where 'AverageRating' is one of my columns using which I am ...
0
votes
0answers
108 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
102 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
222 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
854 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" ...
0
votes
0answers
15 views

Uploading a document manually to a SharePoint document library using Jquery [duplicate]

I have been searching for a way to upload a document manually to a SharePoint document library using Jquery. i have done it in C#, but i want to do the same in Jquery. Still i couldn't find the way, ...
1
vote
1answer
2k views

Convert Image src to base64 [closed]

I am working on Sharepoint 2010, I have create one custom button. when user select any row from list and click on custom button then I have fetch one multiple line column html in one variable name ...
0
votes
2answers
1k views

How to get sharepoint userid from login name?

Hi I am trying to retrieve current userid _spuserid from login name.How can it be retieved? var userid=Function??("domain\name"); Any idea?
0
votes
1answer
57 views

Javascript code not viewable

I've added a webpart to sharepoint and added a widget using javascript. The javascript displays weather information and a few links. When i view the source of the page I cannot see any of the content ...
1
vote
2answers
399 views

Is it possible for a html textbox to populate a sharepoint column in a list?

Here is the scenario: SharePoint 2010 doesn't have a back button, this makes it difficult when a user messes up in a branched survey. I have created a little JavaScript embedded html page that I ...
1
vote
1answer
355 views

Is there a way to check if a workflow is completed using Javascript?

I created a form that start a workflow automatically when an item is created, and I redirect to html page that shows a message like "Processing... please wait.", and I wait 3 seconds and so redirect ...
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
0answers
35 views

Put a break in javascript function

Hi I have 10 sharepoint lists.structure,column name,data type all are same. I need to check whether a particular item is found in any list then do some action using ecmascript. var ...
1
vote
3answers
857 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
1answer
480 views

I'm looking for a way to detect the ribbon load event

I'm looking for a way to hide a button from the ribbon using javascript, but to do this I need to wait until the elements of the ribbon are loaded. Is there a way to detect such event?
1
vote
2answers
359 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 ...
1
vote
1answer
2k views

Sharepoint 2013 not going to http://sharepoint/SitePages/Home.aspx

Currently in my Sharepoint Site, when I want to go to the main page sharepoint/SitePages/Home.aspx, it actually ends up going to sharepoint/_layouts/15/start.aspx#/SitePages/Home.aspx. This really ...
1
vote
1answer
156 views

Binding Enter Key?

here is my script that runs from a CEWP. just want little search button, but it only works when i click the button, enter key just refreshes the page. I've tried the event.preventDefault() - but no ...
2
votes
1answer
174 views

Filter Calendar view by Title in SharePoint 2010

i want to filter calendar view using title field. Is it possible to filter calendar view without make changes in modify view ?
5
votes
1answer
351 views

Reload Calendar without refreshing page in SharePoint 2010

How to reload calendar without refreshing whole page ?