Web scripting language.

learn more… | top users | synonyms (1)

4
votes
0answers
116 views

SharePoint XML Web Part dynamically adding xml link

Is there a way to dynamically insert a variable in the <XMLLink> --variable here--</XMLLink> tag? I'm trying to read an URL parameter which will contain the xml files path. What I am ...
4
votes
0answers
69 views

Passing args to QuickLinksDialog with JS

I have a small button on a site which when i press should start a QuickLinksDialog and fill in some of the fields there. Everything goes good and well except the fields (like: title and url) still ...
2
votes
0answers
19 views

Updating contents in a custom webpart in a Discussion Board topic page

I have made a custom Visual Webpart. I'm wanting to periodically update a label in the webpart without refreshing the whole page. I've got the label to update, however it is also updating the replies ...
2
votes
0answers
44 views

Initialize word document content type properties using Javascript

I'm trying to create a new word document from a template using the following javascript code : var word = new ActiveXObject("Word.Application"); var doc = ...
2
votes
0answers
112 views

Bug: JSLink on field/column breaks callout menu in Chrome, Firefox

I am trying to use JSLink+JavaScript to customize the rendering of a field. My very simple JavaScript code looks like this: ;(function () { 'use strict'; console.log('EmployeeFieldCSR ...
2
votes
0answers
128 views

Reload Calendar without refreshing page in SharePoint 2010

How to reload calendar without refreshing whole page ?
2
votes
0answers
174 views

Alternative to hook into RTE javascript

I'm looking to add some logic when a HTML element (input, button, .. but no regular text) is clicked inside the RTE control on a publishing page. One of the solutions I've been thinking about is ...
1
vote
0answers
12 views

How to create object of type SP.ListItemFormUpdateValue

How can i instantiate object of type SP.ListItemFormUpdateValue and initialize it to a List field so i can read the field values on client side? If this is not posible, how can i read a value in a ...
1
vote
0answers
21 views

Display New item Icon with SPServices

I want to display the New Item Icon with SPServices or using custom Javascript to show a new item icon for n days when Created. I achieved this using XSL. Thank's to Mark ...
1
vote
0answers
30 views

getting top X items in each folder with a CAML Query

i'm trying to do a visual representation of a document library using javascript and webservices. basically i want to present the folders in the library, with a preview of the first few files in each ...
1
vote
0answers
30 views

Retrieve property bag for sub sites using JSOM

I need to go through all sites belonging a site collection to validate a property bag of them. following is my code. the problem is the second call to get the property uses only one of the sites. I ...
1
vote
0answers
65 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 ?
1
vote
0answers
251 views

How to add the standard sharepoint list item context menu?

we have written a webpart that outputs titles of list items. We now want to add to each of those items the standard flyout menu (see the picture) below, but don't know how so far. Can you help us out ...
1
vote
0answers
92 views

Getting column information from a sharepoint 2010 list

I'm trying to figure out how i can get information about a column in a Sharepoint List, like what type of column it is (single line, number, date etc...) and whatever additional column info that ...
1
vote
0answers
69 views

Unable to access the SP2013 App from IE but able to access from chrome

I've started working on SP2013 App development. When I'm deploying the app from VS2012, the App is successfully getting deployed. But after Trusting the app, it is showing "Internet cannot display the ...
1
vote
0answers
464 views

Filtering SharePoint list items that have multiple values using jQuery

I have a SharePoint list that contains multiple columns of information. There’s a Category column that’s a look up to another list called ‘Category’. This is to produce unique ID’s for each of those ...
1
vote
0answers
88 views

display InputFormSection

Can we hide an wssuc:InputFormSection ?? I have a wssuc:InputFormSection made for adding items and it's only shown when you click on add link as the code shows : <Table border="0" width="100%" ...
1
vote
0answers
63 views

Updating a value of any item in a list based on a selection of bool for one item - jQuery

So I hope this makes sense. I have a column within a list that I want to use as an active flag. There are 5 possible categories and for each category there can only be one active value. So I need some ...
1
vote
0answers
57 views

changing language on application page

I am using following code to change the language of HTML form on application page: <asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server"> ...
1
vote
0answers
172 views

_spBodyOnLoadFunctionNames.push Not working in firefox

I tried this in firefox i dont know why its not working but it working in other browsers function loadmonth() { alert('called'); } _spBodyOnLoadFunctionNames.push("loadmonth");
1
vote
0answers
267 views

Programatically creating Discussion List Posts - and replying to them from Outlook

We are Programatically creating a Discussion List Post/Topic (using JavaScript) based on an entry in a custom list. The idea is to synchronize this Discussion List with Outlook. That does happen ...
1
vote
0answers
214 views

Close window after save editform with Drop off library

I have a problem with closing my explorer window from the SharePoint 2010 listitem editform. I am opening a new explorer window from Outlook. In this window I open the editform from the ...
1
vote
0answers
236 views

Load full list XML into JavaScript variable via CEWP

Currently I am using the lists.asmx webservice to POST a soap envelope and return specific list items. I really want the whole contents of the list. I realize how large that might get, but if this ...
1
vote
0answers
121 views

Changing / overwriting OOTB javascript

I've came across an issue when I was modifying / customizing the mini social tag buttons (a delegate control - class), everything went good and well untill I encountered an issue "onmouseover" event. ...
1
vote
0answers
155 views

How to handle “grouping expanded data load complete” in a list view?

In SharePoint 2007 I run some code after a grouping is expanded by overriding the ExpGroupRenderData (the custom code contained Microsoft's original code with some added extra bits). When this code ...
1
vote
0answers
208 views

Validate list item with javascript API

I want to develop a custom datasheet view to edit a list. I add item through the javascript API. The problem is that the service doesn't control fields value. For example : - I add an item with a ...
1
vote
0answers
62 views

How can I authenticate to BPOS SharePoint using JavaScript

Does anyone know where I can find resources explaining how I can authenticate towards BPOS SharePoint using javascript? I have managed to authenticate with Office365 building on the scripts of lstak, ...
1
vote
0answers
64 views

will SP.ClientRuntimeContext.add_requestSucceeded stack events?

I'm looking for a new way to throw some tracking into list-based user actions (i.e. through ECB) and I stumbled accross SP.ClientRuntimeContext.add_requestSucceeded (see ...
1
vote
0answers
217 views

List Item file attachment using ECMAScript Object Model

How to simply upload & attach file to listItem using Javascript? And how to get/download attachments.
1
vote
0answers
276 views

Get Permissions with client object model

i want to add a permission on a folder who's inside a document library with javascript/jquery/client object model. The problem i have is, its a custom permission level created when some feature is ...
1
vote
0answers
194 views

Customizing richtextbox from formfield

This applies to SharePoint 2010. I have a requirement where users can only use a very specific set of "styles" when creating their content for SharePoint lists. As the "styles" ribbon button does not ...
1
vote
0answers
129 views

SPServices to retrieve the last record of repeated section data inside Sharepoint library

I have a Infopath that contain 2 fields which I put it as a repeating section as shown in the picture below (for the time being - please ignore the error) How do I retrieve the last record of a ...
1
vote
0answers
350 views

get current Page Layout in sharepoint 2010 using ECMA script

I have a requirement that I need to create a custom page layout and need to update the current page layout with my custom page layout. In SharePoint we have a feature to change the page layout. But I ...
0
votes
0answers
29 views

How do I open a template document in OfficeWebApp with Javascript?

I am using the following to open a template document from one location which will be saved to a another location: <a href="javascript:'" ...
0
votes
0answers
35 views

JavaScript OnChange for PeoplePicker or something similar in a NewForm.aspx

i have a document library where i added a people picker column where i can assign a person from the company. Also i have a column where the user should enter the department of the selected person. Is ...
0
votes
0answers
61 views

add new object not opened in a modal dialog for Sharepoint Photo Library

I created Photo library now For add new item i have written Javascript code and which works fine in IE,Firefox but not in Chrome browser i get a error as"Uncaught TypeError: Object # has no method ...
0
votes
0answers
27 views

Get Property Value from Standard App Part Sections

I know that I can define custom App Part Properties through the Elements.xml óf the App Web Part. <Property Name="ListName" DefaultValue="Movies" Type="string" WebDisplayName="List Name:" ...
0
votes
0answers
26 views

Timeline graphs in SharePoint 2010?

My client has a requirement to display a SharePoint calendar in a timeline format. Currently, it's being done by Simile Widget timeline: http://www.simile-widgets.org/timeline/ Since I'm ...
0
votes
0answers
37 views

SharePoint Hosted App - SP.WebRequestInfo

I wanted to invoke a Simple WCF Service that is hosted in my local using SP.WebRequestInfo class in my SharePoint Hosted app. I was able to get it working without an parameter but as soon as I add ...
0
votes
0answers
35 views

How to Enable intellisense for ecmascript cliennt object model in sharepoint 2010

I want to enable intellisense for ecmascript object model in sharepoint 2010. Iam able to get some properties but not getting all the objects and properties. like for below code iam only able to get ...
0
votes
0answers
12 views

Apps for office Storing OOXML templates

This is my first try in writing an app for office. I want to have a task Pane app for office that would access a database in which OOXML parts will be stored. The user would typically enter some ...
0
votes
0answers
34 views

Grouping in lookup multi

I have Lookup field in the list, with multiple choice. On NewForm I have JS code which groups items in 2 listboxes of this field (SelectCandidate and SelectResult). Problem: I need to group items ...
0
votes
0answers
121 views

Use JS to add new list item with lookup where multiple items in lookup list have same title

I'm trying to add a new ListItem using the client object model. Scenario: List I am adding to has Title, Team (lookup) and Date fields. The list that contains the teams has Team Name, Department and ...
0
votes
0answers
137 views

current user is always is administrator on a SharePoint App

I have tried following solution to check the current user's permissions on the current host web in a SharePoint hosted app, however the user is always administrator. function sharePointReady() { ...
0
votes
0answers
128 views

SharePoint 2010 form and onbeforeunload event raises unspecified error in IE 8

I've got an edit form in SharePoint 2010 where I want to ask the user if he really wants to leave the page without saving. So I use the onbeforeunload event as follows: $(function () { ...
0
votes
0answers
395 views

CAML Query for sub folder documents javascript

I'm trying to query for documents in a specified sub folder of a document library. Using U2U CAML builder, I can generate the query and return successfully within it. However, when I run the query ...
0
votes
0answers
27 views

FFWinPlugin hangs then crash calling EditDocument

In some client computer the call EditDocument(url) in "application/x-sharepoint" makes FireFox first hang then crash with the message "The addin Microsoft Office crashed". The call is run in an ...
0
votes
0answers
40 views

Plz verify the steps to create a popup everytime the user hits OK button in SP list

Open Share point Designer and Open the site. Go to the Share point list which you want to customize.(Lists => ) Select "EditForm.aspx" Find the end tag of the PlaceHolderMain section Insert the ...
0
votes
0answers
134 views

Created a layout page, but getting a parentElement null error

I've created a layout page, when I run the page and look at the JavaScript console, I get a 'parentElement' null error message like this: Uncaught TypeError: Cannot call method 'parentElement' of ...
0
votes
0answers
184 views

Download File from client side by using Javascript api for sharepoint

I want to download a file by going through .aspx page and which returns a file like this Response.Clear(); string content = Request.QueryString["param1"]+Request.QueryString["param2"] ...

1 2 3 4