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)

1
vote
1answer
877 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
862 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
636 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
334 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
173 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
437 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
1k 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
1k 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
267 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
440 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
436 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
469 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
483 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
731 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
177 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
7k 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
76 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
641 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
3k 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
1k 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
5k 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
661 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
730 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
9answers
24k 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 ...
0
votes
1answer
1k views

WebResource.axd JavaScript errors

I'm getting JavaScript errors on a SharePoint publishing site, just browsing to any page. In IE the errors are like: Syntax error: WebResource.axd Line: 1 Char: 1 Code: 0 URI: ...
4
votes
4answers
10k views

“the HTML source you entered might have been modified”

"the HTML source you entered might have been modified" In SharePoint 2010, this is the scary message you get everytime you use the "edit HTML source" button with the Content Editor Web Part. In ...
3
votes
4answers
4k views

jQuery and SharePoint 2010 - How can I tell is the page is in edit mode, using javascript?

I have some javascript in a CEWP that I want to execute only when the page is in display mode. I've used firebug to scour the page for some "msEditMode" type of variable or something I can rely on. ...
1
vote
1answer
143 views

Can 'jQuery' & 'Javascript' coexist? [closed]

I am planning to use 'jQuery' for my WSS 3.0 Site. I am using 'Javascript' also on it. Will I face any conflicts? Thnks --saumil
0
votes
1answer
521 views

IE Never finishes loading SharePoint page when JavaScript is disabled

I am working on a solution that loads SharePoint pages in a copy of IE. When the page finishes loading an event is triggered that executes some code in the application that wraps IE. Now this all ...
1
vote
1answer
360 views

JavaScript removed in SharePoint Publishing Page during edit

I was working on a migration of an existing site to SharePoint and when pasting the source code of the pages to the SharePoint RichText fields in the edit mode of the page, I tried to copy the HTML ...
2
votes
0answers
414 views

How do I get the full folder path of a selected list via the Ribbon and Client Side Script? [closed]

What I want to achieve is something similar to this OOB method: SP.ListOperation.Selection.getSelectedList() But this method only returns the GUID of the selected list. I would like to get the ...
0
votes
3answers
2k views

Check whether user is administrator in a Sharepoint page using JavaScript or jQuery?

I am developing a webpart for SharePoint in Visual Studio 2005. I am making use of a user control in this project. Now, I have to obtain the currently logged in user using JavaScript and check whether ...
0
votes
2answers
2k views

how to add script to page

I am trying to add this script (Marc Anderson's blog) to AllItems.aspx. Please guide me where it needs to go and what needs to be done to make it work. Thank you. <script language="javascript" ...
0
votes
3answers
421 views

Sharepoint webservices using Javascript

I use a jquery dialog box to ask the user a daily question. I have a question and answer list which contains the information to load into the dialog box. I do not want the user to view or edit ...
12
votes
2answers
2k views

Cannot add custom web part to page using the JS OM

I'm trying to add a custom web part (that is one I have written myself) using the new Javascipt OM available with SharePoint 2010. My solution is also running within the Sandbox. I have it working ...
0
votes
1answer
1k views

ECMAScript Client OM with External List

In SharePoint 2010, for a regular "custom" list calling SP.ListOperation.Selection.getSelectedItems() using the ECMAScript client object model returns an array of item IDs. These IDs correspond to the ...
0
votes
4answers
373 views

Detect when a user leaves a MOSS 2007 website (not just navigate to other page in the same SharePoint website)

I need to show a popup message (couple of div tags) when a user tries to do the following: Leaves the current SharePoint site and navigates to an external URL. Closes the browser. I tried using ...