6
votes
2answers
2k 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?
2
votes
2answers
3k views

accessing sharepoint list using javascript

hi How to access sharepoint list from javascript using ajax? I am getting 404 error everytime. var d ="<?xml version=\"1.0\" encoding=\"utf-8\<soap:Envelope ...
2
votes
4answers
3k views

populate dropdown from Sharepoint list

I am trying to dynamically populate a dropdown list based on the information in a Sharepoint list. I know I can add the list to the page and hide it, but what I want is to populate the list using ...
2
votes
1answer
3k views

Retrieving rich text box sharepoint in javascript

I have CustomNewForm for inserting items in the sharepoint list. The fields are "Reason" and "Reason OverView"; both Multiple Line Rich Text fields. I need to copy some text from "Reason" to "Reason ...
2
votes
1answer
628 views

security warning for javascript and css file?

I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. And I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net + javascript (jQuery). I met with the following ...
2
votes
4answers
691 views

Best practice - MOSS 07 and Javascript Files?

What are the suggested methods for using javascript files with MOSS 2007 ? in the 12 Hive somewhere or directly in the site's virtual directory in a scripts directory ? Or possibly as a embedded ...
2
votes
1answer
549 views

InputFormTextBox setting an focus and a onblur event, in a SharePoint web part

I'm making use of a bunch of InputFormTextBoxes and I'd like to have an onblur event get fired when the box is no longer in focus. This is when RichText == true. This is because I have a Sharepoint ...
2
votes
1answer
106 views

Confirmation Box in SPItemEventReceiver class

I want to display a confirmation box in SpItemEventReceiver class using just C# or any script or plugin (e.g. jQuery) with it. I have researched the problem and I believe that I can do something like ...
2
votes
1answer
305 views

Part of javascripts gets cut off in browser

Greetings One of my clients javascript files is failing. I have found the reason, but the discovery has made me REALLY confused as I have never seen anything like it. The issue is that when the ...
2
votes
1answer
259 views

list.asmx is giving authorized error in sharepoint using js

When i logged in with Administrator, I am able to access my list data with list.asmx web service. But when i logged in with other user who is not primary administrator of the site, i got 401 ...
1
vote
4answers
819 views

Using Jquery to selecting an id with curly brackets

I've got such a frustrating question for which I'm convinced there is an easy answer. Unfortunately I can't seem to find it anywhere! I have a table which I have no control over (SharePoint) and the ...
1
vote
3answers
823 views

sharepoint 2010: custom column with javascript

I wanted to know if it is possible to create a custom column that will get me today's date everytime without the need of updating an item in the list? my end goal is to to be able to calculate how ...
1
vote
2answers
5k views

How to get site collection url using javascript? [closed]

I am stuck up in a requirement where i need to get the site collection url to pass in a function. Please help?
1
vote
3answers
875 views

Select All CheckBoxes

I am having a problem, I am trying to make a link for a acsx file. Basically checkboxes get dynamically generated through pulling information out of a sharepoint list. These are HTML boxes. Ive tried ...
1
vote
3answers
293 views

What is a global SharePoint file included on all pages that I can easily embed JS?

The issue is that I've written a simple piece of JS that allows for some functionality that must be present on all pages. I've tried including it in /_catalogs/masterpage/default.master and I have ...

1 2 3 4 5 6
15 30 50 per page