Web scripting language.
5
votes
1answer
86 views
Check if web is in pagepreview mode - ?pagepreview=true
How can I check if a page is in ?pagepreview=true mode?
I've branded the sharepoint ribbon and need to check if a page is in pagepreview to get the site branded correct (js / css). Is there a way to ...
3
votes
1answer
86 views
Checking if the content database is in read-only using javascript?
Hi I'm pretty new to SharePoint and javascript. I am trying to check if the content database is read-only, and if it is then preform a function
eg.
if ...
2
votes
1answer
50 views
show modal dialog for list with opened ribbon
I need to display a standard list inside a modal dialog. Currently I'm using SP.UI.ModalDialog.showModalDialog(..) and I'm building the URL like this:
options.url = ...
2
votes
1answer
182 views
I want to remove “Overwrite existing files” check from rteUploadDialog.aspx in sharepoint 2010
I need to uncheck the "Overwrite existing files" check that comes by default on the rteUploadDialog.aspx page (while adding file to a rich text box in OOTB lists). How can it be achieved? If I modify ...
2
votes
1answer
82 views
SharePoint - Detect Silverlight Version and upgrade if necessary?
My Silverlight 5 app is hosted in SharePoint Online.
It doesn't load (sticks at 100%) for users who have Silverlight 4 versions.
How should I upgrade those without the latest version to Silverlight ...
2
votes
1answer
244 views
Site collection relative url in XSLT search or by JavaScript
I have the following question:
I'm modifying the XSLT of the search, so it is represented differently etc etc .. in this occasion I also need to get a relative site collection url.
In managed ...
2
votes
1answer
1k views
Getting Version History and What Field has Changed
I am using the GetVersionCollection to get the history information from my list. This seems to be working fine; however, what I need to do is get the version history of the individual item which has ...
2
votes
1answer
1k views
sharepoint page redirection using javascript
below I have some JavaScript which listens for mouse activity and starts a timer if there is no activity and then redirects the user to another page after say 2 minutes..The problem is that if I have ...
2
votes
1answer
300 views
SharePoint List items, UserControls and cookies
I have another task at hand. I need to use cookies to read a title of an item from a custom list in SharePoint. This task is for SharePoint 2010.
I have a container set up that will display the ...
1
vote
1answer
39 views
How to open file in adobe reader using command line without checkout from Javascript?
I am working on print functionality. I am printing the PDF files (uploaded in SharePoint Library) using Adobe Reader command line from javascript. I am using ActiveX object to call the cmd. refer ...
1
vote
1answer
42 views
Change CSS of selected item in sharepoint menu
Is there a way to do the same as done here with some Javascript?
AspMenu does not render css-class for 'selected' element
I want to use this CSS for the selected item in the menu
.s4-tn ...
1
vote
1answer
154 views
The field 'EventDate' of type 'DateTime' cannot be used in the query filter expression
I am trying to filter standard Calendar events via SharePoint web api and my query looks like this:
/_api/web/lists/getbytitle('calendar')/items?$filter=( EventDate ge ...
1
vote
1answer
106 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
1answer
230 views
Missing SP.Ribbon.js
I am running into a strange problem that SP.Ribbon.js is not getting loaded.
Normally if I view page source, there will be a bunch of RegisterSod(...) lines that loads a bunch of sharepoint ...
1
vote
1answer
388 views
Unable to get correct element on a sharepoint page using document.getelementbyid('<%textboxID.ClientID%>')
I have a sharepoint website which has multiple instances of the same visual webpart. On button click I am trying to get a textbox present in the usercontrol of the webpart using ...
1
vote
1answer
66 views
Access a Sharepoint site from event handler
my problem is that I want to pop up a status bar in SP2010 after a File was uploaded via a single uploadform to a List.
Found this in the net: ...
1
vote
1answer
96 views
Inserting ordered or unordered lists in custom rich text editor breaks the dom
I have a div that is part of a custom web part. Once a user clicks an edit-button I want the div to turn into a rich text field to allow the user to edit the contents as they would edit any rich text ...
1
vote
1answer
78 views
Web Part JS ToggleMe not running
I want to add toggled visible / invisible divs to a SharePoint wiki page, and put the function for the toggling in a web part. My toggling script works fine testing outside of SharePoint, but inside ...
1
vote
1answer
807 views
How to see if current user exists in people and groups field, using ecma/client-object-model
I have a list which has two fields. (Title,EditPermission). The EditPermission is "people and group" field. I can use the following code to compare the current user with the spuser in that field
...
0
votes
0answers
89 views
UpdateListItems ajax call is successful but does not return created item
I want to create a new list item and store the created item's ID in a variable for later usage.
So I'm using UpdateListItems and making an ajax call and then in the success callbakc function ( ...
0
votes
0answers
31 views
Problem with add java script to set All Resources by default view in calender
I would like to add All Resources view by default in my calender but I can't find way how I can do this in standard calender. I started look for some solution this issue and I found below blog site ...
0
votes
0answers
83 views
Update xml file with doc library with xlst/jquery (limited com stuff)
is there anyway to write/update an xml file within a document library, with js/jquery from a page, or with xslt or anything like this I am unaware of? I am really asking for some context I lack, and a ...
0
votes
0answers
53 views
How can I manipulate sharepoint ajax calls into the pipe line?
I built a SP server code that , (I don't know why) make some trouble into the client side code.
When the page is loaded for the first time, I notice that every single item in the page, they are not ...
0
votes
0answers
40 views
Cancel Ajax Request in Webparts
In my visual web parts used in modal dialog, I have used a UpdatePanel and added an initializeRequest function and an endRequest function like following:
<script type="text/javascript">
...
0
votes
0answers
70 views
Update WebPart MenuItem/Verb from Client Side
Here is the scenario - I have a custom webpart where I added one custom menuitem with client side handler, now my requirement is when I click on the menuitem some text should be shown, for example ...
0
votes
0answers
72 views
Listen on file upload - AddItemEvent by ECMA Script (Javascript COM)
I need your help concerning this issue:
I want to upload a document to DocLib. Therefore I call the NewItem2 method
NewItem2(event, referenceURL);
Up to here - no problem. Now the issue:
I want ...
0
votes
0answers
47 views
How to show the library items based on the lookup of contacts column in another list using ecma script?
I have a document library which contains multiple documents.
and i have a list which contains two columns DocumentName and Contacts.
My scenario is, I want to show the library item which is created ...
0
votes
0answers
120 views
Refresh javascript variable in update panel
I want to refresh a values veriable on update panel and if it change the variables schould change it too. How can it do. If Variable =="1" schould see alert, and if variable =="0", the alert in updane ...
0
votes
0answers
157 views
Activating ribbon contextual tabs for web part with JS or ServerSide
I' searching for a way how to activate the ribbon contextual tabs for a particular web part.
For example on a page there are more than 1 web parts and i want to automatically show in the ribbon ...
0
votes
0answers
33 views
JSGrid: How to merge two cells in one in a specific row?
How can I merge two cells in one for a specific row in a JSGrid?
Cheers
0
votes
0answers
61 views
JSGRID: How can I create a fixed row in a JSGrid?
Hello SharePoint experts,
I'd like to know if it's possible to create a fixed row (showing some totals). I can't figure out if/how this can be done... Can you help me on this, please?
Thanks
0
votes
0answers
159 views
injected javascript code in a basic webpart
I have a working solution according to below, but I want a dynamic link which is created in Createchildcontrols and included as an arguement in the function newitem
but I get an JavaScript error on ...
0
votes
0answers
67 views
SharePoint 2010 Motools JavaScript incompatibility
I created a JavaScript Slideshow base on Slideshow2 using Mootools. It works great stand-alone. I decided to incorporate it into my SharePoint 2010 Master Page and at first glance it was working ...
0
votes
0answers
192 views
PeoplePicker with KnockOut JS
I am tring to integrate the SharePoint people picker into an "Single Page App" that is being hosted in an Application Page. Is there a way with the OOTB control that I could add the data-bind ...
0
votes
0answers
103 views
How to get the value of particular cell value in JsGrid
how to get the value of particular cell value instead of column title in JsGrid using "OnCellEditCompleted" event as below:
<script type="text/javascript">
...
0
votes
0answers
129 views
XSLTListViewWP: filter results based on javascript variable/other control on page?
I have some custom html/jquery form stuff on a page, and I would like to update a LVWP on another part of the page if a user adds something. So for example, the list view web part just shows items on ...
0
votes
0answers
15 views
how to get enter row values value from JSGrid in a row when ever user updates the exsisting column values
can any one suggest how to get enter row values value from JSGrid in a row when ever user updates the exsisting column values.
0
votes
0answers
55 views
How to extent the logout time when doc is opened for edit/view sharepoint site?
I have custom javascript to logout the sharepoint page after 30 minutes. Now the problem is, if i have opened any document from shared document to edit/view. then also sharepoint site got logged out ...
0
votes
0answers
75 views
SharePoint 2010 Ribbon dynamic item localisation
We are using PageComponents and javascript to dynamically construct and populate some flyouts with menu options.
Some of the menu options text need to be localised but the resource access strings (eg ...
0
votes
0answers
165 views
How set Default-Values of Choice by the Creation of new Lists via (JavaScript) CSOM
Im trying to create a list by using the JavaScript CSOM, but Im stuck at a certain point.
In this example I use the Template "SP.ListTemplateType.issueTracking" to create and enhance a list,
in this ...
0
votes
0answers
906 views
Copy file using javascript client object model - new version
I have a solution that adds a custom button to the ribbon in SharePoint 2010 and am using the javascript client object model behind the scenes to copy a file from Library A to Library B when the ...
0
votes
0answers
140 views
Uploading file “NewItem2”
I'm attempting to upload a file to SharePoint using the NewItem2 function. However, after uploading the file, I want to get the relative URL of the uploaded file. Is this possible? Is there a ...
0
votes
0answers
378 views
Retrieving Document Library item URL from ID
How can I retrieve the URL of an item/document in a (generic) document library when the only thing I have is the ID, obtained through:
SP.ListOperation.Selection.getSelectedItems();
My intention is ...
0
votes
0answers
130 views
JSGRID: How can I show a loading message while an operation is pending?
Hello SharePoint people,
I have created a JSGrid on a SP project via the 'How to: Write Back Changes from the JS Grid Control' tutorial from the msdn website, and I'd like to disable the grid when ...
0
votes
0answers
66 views
Document library navresize does not work on first load
Sharepoint 2010 is running on our DEV Server.
We have branded the SharePoint solution and therefore are running it as publishing site.
The document library has a customised master page.
In the DEV ...
0
votes
0answers
455 views
Programmatically add multiple users to various groups based on information in a list
Due to security restrictions, my organization has a very complex group structure granting fine-grained permissions. We are trying to build a portal that allows for an approval system for group ...
0
votes
0answers
126 views
sp.js problem with third party library
My sp.js load is conflicting with Mootools 1.4.1's mootools-core.js, the error output is:
Webpage error details
Message: Object doesn't support this property or method
Line: 2
Char: 1
Code: 0
URI: ...
0
votes
0answers
312 views
Modal Dialog Delegate Event not firing
I have a modal dialog that I call from my sender page:
function openCommentsDialog( ITEMID)
{
var DropDownListValue = document.getElementById("HideVal").value;
var options = ...
0
votes
0answers
383 views
Want document library Name or Title hyperlink field to open up as a modal dialog when clicked like in a custom list
I have created a document library. However, i want that each time i click on the document name or title, instead of the document opening up as it does by default, i would rather prefer that a new ...
0
votes
0answers
932 views
to get the url of a document item using javascript ( by passing id of the document item to javascript function)
function retrieveListItemsInclude(param) {
// debugger;
//var id = param;
var clientContext = new SP.ClientContext.get_current();
var oList = ...

