Javascript is a dynamic computer programming language, most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.

learn more… | top users | synonyms (2)

0
votes
1answer
392 views

Use of owsbrows.js , core.js in sharepoint 2010 [closed]

I would like to know how "viewproperties" menu works an item in a list.I googled for sometime and found that the jscript files "owsbrows.js" and "core.js" at C:\Program Files\Common Files\Microsoft ...
0
votes
2answers
1k views

debug javascript [closed]

I have a javascript thats breaking. Now Is there a way i can call the function from content editor web part and debug to see where the hick up is?
1
vote
1answer
365 views

Sharepoint 2010 only displaying an item in the ribbon if using IE

I am using some JavaScript that can only be used in IE. Is there a way to hide my custom ribbon button if not in IE? Or only display it if it is IE.
3
votes
1answer
183 views

Getting the path of a an item on using UrlAction and JavaScript

I have a custom ECB menu item. I want to get the path of the file that has been right clicked and alert it using JavaScript. Is this possible?
2
votes
1answer
1k views

sharepoint webpart javascript - 'null' is null or not an object

I have an issue on one of my sharepoint enviriontments regarding some kind of javascript problem with the Content Editor Web Part which keeps returning me these errors when I try to user the RTF-text ...
9
votes
3answers
3k views

Site Assets vs. Style Library

I usually store my JavaScript/jQuery files in the Site Assets library, but I see on forums that others are using the Style Library. What are the respective benefits of each?
9
votes
4answers
1k views

Why does having `windows.onload` break page editing?

This is related to an earlier question that I posted: Can't edit page after adding custom web part! Basically, I have created a web part with some javascript. When I add this web part to a ...
1
vote
4answers
4k views

Why are my sub site collections not getting javascript and css files?

I have a master page deployed with a feature which has custom javascript and css references on it. I am using the <Sharepoint:ScriptLink> and <Sharepoint:CssLink> tags and the code is ...
1
vote
2answers
863 views

get all image library lists via listdata.svc or web service, how?

I want to retrive all image/picture lists a site has with javascript. Can that be done via listdata.svc or via a soap webs service? When looking at the response from listdata.svc i can't see what ...
0
votes
2answers
637 views

Possible to use an ASP.NET control value in a Javascript file used in a Web Part?

When you are coding in an aspx page you can do something like this: <html> <head> <script type="text/javascript"> $(document).ready(function () { var chkEnable = ...
37
votes
6answers
30k views

How do you get the current list item in JavaScript?

There's all kinds of ECMAScript class library examples around but all of the ones I find show how to retrieve all list items (through SP.ClientContent) but how do you get the current list item? I'm ...
1
vote
2answers
6k views

How to add a pop up aspx page to your web part?

I'd like to have a pop up that contains an aspx page. It appears that adding an aspx page to a web part is not possible. When I went to add a new item to the project the closest I could find were ...
7
votes
2answers
7k views

Adding ScriptLink for js file to my Visual Webpart causes error: “Cannot make a cache safe URL for…”

Full error: Cannot make a cache safe URL for "sprocketcomplete/layouts/sprocketcomplete/js/sprocketcomplete.js", file not found. Please verify that the file exists under the layouts ...
1
vote
1answer
874 views

Problem adding javascript/jquery to my WebPart

My ascx looks like this: <SharePoint:ScriptLink ID="ScriptLink1" runat="server" Name="/_layouts/1033/MyProject/js/test.js"/> test: <input id="example" /> test.js looks like this: ...
1
vote
2answers
826 views

Inject dynamic javascript using MasterPage

We have to inject dynamic javascript (contains a encrypted var value) into all web pages. What is the best way to inject Dynamic Javascript using Master Page? Other Details: SharePoint 2010 STD ...
1
vote
1answer
617 views

How do I use a javascript variable in the Filter Criteria for a DVWP?

I am converting some numbers using Javascript and need to filter a list using these conversions. I cannot do the conversions within SharePoint itself, so I had to use Designer and some Javascript. I ...
1
vote
2answers
327 views

Social rating from grid view

HI ALL ! i want to provide rating of items of a sharepoint 2010 list from a grid view hat is showing all the list items in a grid with branding . is there any way to add a rating column in a grid ...
0
votes
1answer
94 views

How to Navigate between Multiple Controls within a web part in sharepoint 2010 by using javascript

Please tell me how to Navigate between Multiple Controls within a web part in sharepoint 2007, by using javascript.
1
vote
4answers
172 views

where can i write javascript in sharepoint

Please tell me where can I write javascript for a sharepoint site and what are the possible ways to write a javascript code for a sharepoint site.
0
votes
1answer
128 views

How can I call controls on a 'multiple control webpart' dynamically by using JavaScript

Could anyone please tell me how to call controls on a 'multiple control webpart' dynamically by using JavaScript in sharepoint
0
votes
1answer
2k views

fix the position of a webpart

hey all ... i have a query i.e. How can i fix the position of the webpart on a page? in user personalization scope fixed position means fixed zone & fixed index (top / buttom). & user can ...
0
votes
1answer
434 views

JavaScript code block messing with drop-downs in Menu

I am using SharePoint 2010 and I need to place the following JavaScript code on a page to give me time in Rome <SCRIPT LANGUAGE="JavaScript"> function GetTime() { var dt = new Date(); ...
0
votes
3answers
3k views

How do I run some JavaScript in a web part?

I found some JavaScript code on the web that I want to add to my custom web part so that I can modify a PageViewerWebPart's height to 100%. I just need to know what steps to take to call it. I added ...
4
votes
1answer
2k views

how to get users from SharePoint user profile db using jquery

I just want to know, is there any way to get a SharePoint user using javascript / jquery from default SharePoint 2010 user profile db? My requirement is to form an array of all SharePoint site users ...
0
votes
2answers
941 views

Autocomplete people picker in sharepoint2010

I have a problem in which I have to add an Auto Complete functionality for a new people picker of Sharepoint list newform.aspx While Googling I found this ...
7
votes
3answers
984 views

Replace semicolon delimiter in a Lookup column on the list view

When selecting multiple values, the data is separated with semicolons. When many values are selected it starts looking cluttered. Is there any way to have each value on a new line? For example, ...
1
vote
2answers
263 views

tag cloud: load javascript after GetAllTagTerms

On my master page i have a tag cloud web part. I use jquery to redirect tags to search center. I reference it in my master page: <script type="text/javascript" ...
1
vote
1answer
439 views

Highlight Group By Row in SharePoint List

I've got a dashboard on my SharePoint Homepage that shows a RAG status of all our project tollgates, grouped by (a) category then (b) project. Is there a way to highlight a group by row in a list ...
1
vote
1answer
425 views

SharePoint 2007 Search Webservice client call - darrenjohn's API

I want to get the same result set as sharepoint search returns using webservice/object model, what is right way of doing it? Let's say: If sharepoint search core result webpart says 20 items/result ...
1
vote
0answers
467 views

Get group membership of current users using ECMAScript [duplicate]

Possible Duplicate: How do I determine a user's SharePoint group membership using the client object model? How can I use the client object model to get a list of all (SP) groups the ...
1
vote
1answer
462 views

How can you add a script reference to a page from a custom webpart?

I'm developing a custom webpart and I'd like to leverage jQuery for some of my client side functionality. I found a few articles that lay out the following technique for adding a script reference to ...
4
votes
3answers
2k views

Is it possible to launch local application (exe) from Ribbon control?

I would like to launch an exe from the users local system (assuming the exe exists locally) from a SharePoint ribbon control. Is this something that is possible to do? If it is, how do I do this. If I ...
1
vote
3answers
1k views

Customizing the NewForm.aspx of the SharePoint 2007 List?

I have a sharepoint 2007 list and it has 6 site columns, want to have two modes of newform.aspx page. When user clicks on Newitem, it should display only 3 site columns and there should a link to the ...
0
votes
1answer
693 views

ScriptLink without Locale ID in path

I have this ScriptLink in my custom Master Page: <SharePoint:ScriptLink language="javascript" name="my.js" runat="server"/> This renders as 1033/my.js on an English Site Collection, but as ...
1
vote
2answers
1k views

Get ContentTypeId In NewForm.aspx URL QueryString

I've been trying to access the ContentTypeId in the NewForm.aspx querystring. Knowing that will allow me to set up conditional statements to display information specific to a Content Type. My ...
0
votes
2answers
1k views

Create Floating Menu With jQuery in NewForm.aspx

Part 1. I'm attempting to add a floating DIV within a SharePoint form. The description within the DIV is critical for filling out the form correctly and must be viewable at all times. So, as the user ...
0
votes
1answer
176 views

Override ClickTime javascript function for correct contentType links

I created a contentType in the calendar list and then I created a page with a week view for those contentType items. Now when someone clicks on a time slot to create a new item for the calendar it ...
0
votes
3answers
2k views

Why won't new files deploy using a SharePoint 2010 WSP?

We have found a problem with our deployment to a production server that runs SharePoint 2010 Publishing Site Collection. We are deploying WSP packaged from Visual Studio to Sharepoint Management ...
0
votes
1answer
1k views

WebResource.axd and IE - Page_ClientValidate object undefined

I have a custom MOSS 2007 Website, and I have a strange behavior on editing WebPart Properties via browser. When I open the website via Firefox, and edit the webpart property and then click on ...
9
votes
3answers
6k views

Get the current UI language with ECMAScript

Is it possible to get the display language from within ECMAScript? Similar to http://www.sharepointoverflow.com/questions/3129/get-the-current-ui-language-from-a-webpart, I'd like to get the user's ...
0
votes
1answer
74 views

Dependencies and respective roles of the JavaScript libraries

SharePoint 2010 pages contain a bunch of JavaScript libraries (core.js, init.js, ribbon.js, etc.). Where can I find a high level description of their respective roles and dependencies? The objective ...
1
vote
3answers
609 views

Inject javascript into a page from a feature

I want to add a verb (link in the top left menu of a web part) to all the web parts in Sharepoint 2010. Is there a way to inject javascript into a all the pages from a custom feature?
1
vote
3answers
2k views

Show number of items in Folder in ListView

I'm looking for a solution that displays the number of items that are stored in a folder of a list. Maybe this can be done with javascript/jquery, but I actually don't want to reinvent the wheel. If ...
2
votes
2answers
961 views

Custom column that renders a link and opens modal dialog

I want to create a custom column in sharepoint 2010. When it is added to a list view I need it to render a link that when clicked opens a sharepoint modal dialog using the client ui. I need to pass ...
0
votes
5answers
4k views

Expand 1st Group and collapse 2nd Group in list view

I have a list view Grouped by Status column. Status Contains Active and closed values. now i want the default view to open with, Status:Active group to be Expanded and Status:Closed group to be ...
1
vote
2answers
652 views

Get web part properties from javascript

Is there a way to get web part property value using javascript in SharePoint 2007? Using web services and such is fine. EDIT: I need this for my custom web part.
0
votes
3answers
721 views

Web Services: how to get/save Web Part on a page

The WebPartPages Web service includes actions to get or save Web Part properties (GetWebPart, SaveWebPart). Both require a unique identifier called storageKey. When using Web services on the client ...
5
votes
8answers
21k views

Getting a count of list items in a list via ECMAScript

I have a SharePoint 2010 web site with a master page that has a counter on it. I'm trying to update that counter using the ECMAScript. The code I have falls nicely into the success method - but I ...
1
vote
2answers
2k views

Preventing Duplicate Items in list (sharepoint 2007)

Is it possible to restrict, creation of duplicate list item in the Sharepoint 2007, using Javascript in content editor webpart to validate when an list item is added?
5
votes
2answers
3k views

How to disable a ribbon button when a folder is selected

I have added a new button to the SharePoint ribbon for document libraries. This all works well and the button is enabled / disabled depending on the number of items selected... fine! I want to ...