Tagged Questions
13
votes
4answers
819 views
What does this Javascript code do?
I've been looking at Sharepoint script files and I've come across this bit that I don't get:
function ULSTYE() {
var o = new Object;
o.ULSTeamName = "Microsoft SharePoint Foundation";
...
13
votes
3answers
925 views
jQuery Multiple Dynamic Forms to Multiple Dynamic iFrames
I'm creating a multi-file upload. In the validation process where I build the list of files (before they are submitted), the first dynamically created <form> will submit and work as expected ...
10
votes
6answers
1k views
Page_ClientValidate() object expected error, cant find the validator
I have a form HomePage.aspx containing an empty asp:Panel, a dropdownlist letting the user pick an SPFielType... on index changed, my HomePage.aspx.cs page will get the text selected and will load a ...
8
votes
3answers
3k views
Adding JavaScript, CSS and others to a WebPart using WSPBuilder
So, I'm trying to do what I thought was a simple task... But I'm not getting anywhere...
All I want to is to get some .js and .css files loaded by my WebPart. I'm using VS2008 + WSPBuilder. I've ...
6
votes
2answers
1k views
How to verify the logged in user using Javascript in sharepoint
I need to check whether the logged in user is a administrator or non-admin user by using JavaScript in sharepoint designer or content editor webpart.
Can anybody suggest?
6
votes
2answers
446 views
JavaScript Object.create and IE8
I'm doing software development for SharePoint 2013. Part of this involves overriding SharePoint's file previewer (filepreview.debug.js becomes myfilepreview.debug.js). We've run into problems, ...
6
votes
1answer
1k views
Form Based Authentication using Javascript for Sharepoint
I am trying to create a web page using javscript that uses form based authentication to login to the sharepoint server but it keeps using NTLM which is windows based authentication. Is there anyway to ...
5
votes
2answers
4k views
Sharepoint 2010 Client Object Model - Get the name of the current list
I'm trying to create a simple custom action button for the Ribbon menu in Sharepoint 2010.
I want to keep it generic, so no hard coding of library names etc.
How can I find out the name of the ...
5
votes
3answers
4k views
javascript active directory user / groups query
Is it possible to query AD from javascript?
I'm working from within SharePoint, and I can get the current SharePoint user's information using some js I found on a blog.
But I'm wondering if I can ...
5
votes
3answers
4k views
JQuery Json Access of a Sharepoint List via Rest
I try to access a sharepoint list via Jquery and REST Interface. The Site with the code below is running localhost.
This code doesn't work:
$(document).ready(function() { getdata(); });
function ...
5
votes
2answers
10k views
Dynamically display Edit Control Block menu item in SharePoint
I am trying to set up dynamic per-item menus (Edit Control Block) in SharePoint 2007. My goal is to have certain features that are available based on the current user's group membership.
I know that ...
4
votes
4answers
276 views
Uses of colon in javascript
Assign object literal properties var foo = { bar : 'hello'};
Ternary var cats = happy ? "yes" : "no";
Label a statement outer_loop: for(i=0; i<3; i++)
What else?
I'm poking through a sharepoint ...
4
votes
2answers
2k views
Suppress NTLM dialog box after unauthorized request
In a recent sharepoint project, I implemented an authentication webpart which should replace the NTLM authentication dialog box. It works fine as long as the user provides valid credentials. Whenever ...
4
votes
1answer
894 views
Equivalent of SPContet.Current.ListItem in Client Object Model (ECMAScript)
I'm integrating an external application to SharePoint 2010 by developing custom ribbon tabs, groups, controls and commands that are made available to editors of a SharePoint 2010 site. The ribbon ...
4
votes
1answer
78 views
Why would the entityAspect of my query items be null? [Resolved]
Working with breeze backed by SharePoint, as described here, and using TypeScript rather than JS.
In a DataService class I create an EntityManager and execute a Query:
private servicePath: string = ...