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
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
274 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
450 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
452 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
472 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
495 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
773 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
180 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
8k 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
79 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
688 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
675 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
750 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
28k 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
11k 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
5k 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
148 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
535 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
379 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
436 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
423 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
376 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 ...
0
votes
3answers
1k views

JavaScript and some CSS not working in sites

I have a master page assigned to sites, subsites and pages. I have a warning (alert box) embedded within the master page. It's working on the home page, but not working on the other ...
0
votes
3answers
1k views

Can you detect permissions on a list via Ajax or SharePoint web services?

The context for this is the SPServices or Imtech (SP)LookupAddNew function that let you add new items to lookups without navigating to the target list. Can we avoid adding the link for users without ...
0
votes
1answer
95 views

Using host file

I created an application in SharePoint, lets call it http://example.com/ and a site collection with the "Empty Site" template. Since I'm using it locally in a virtual machine in host-only mode, I had ...
1
vote
3answers
642 views

Strip publishing master-page for anonymous users

Is it ok to strip a masterpage for all SharePoint scripts and styles? We have custom CSS and all of our scripts are JQuery. Even CQWP will have custom rendering. The reason we want to do this is so ...
1
vote
2answers
549 views

SharePoint Approval Workflow Javascript error

I've been trying to create a simple Approval Workflow in SharePoint (MOSS 2007). After going through the first screen where I type in the name, Task List, History List, startup params, etc. I go on ...
4
votes
2answers
335 views

Dialog Framework References

One of the new features in SP 2010 is the dialog framework, so that the user is presented with a uniform UI. What are the best references or tutorials you've seen about this feature? So far, this is ...
1
vote
2answers
1k views

Content Editor Webpart Javascript Issue

I have recently upgrade our test environment to SP 2010 (using DB detach and attach approach). And also we did not do the Visual Upgrade. We have few CEWP's which is now starting throwing JS script ...
1
vote
2answers
1k 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 ...
1
vote
1answer
2k views

Regex to Parse Script Tags

OK, this isn't really a SharePoint question, per se, but I need some regex help for my jQuery Library for SharePoint Web Services , which is certainly for SharePoint! I need to be able to parse out ...
-1
votes
3answers
1k views

convert asp.net code to WebPart code issue [duplicate]

Possible Duplicate: How to use JavaScript and CSS in a web part? I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I am developing using VSTS 2008 + C# + .Net ...
1
vote
1answer
127 views

Embedded JScript in masterpages works in Windows 2003 / fails in 2008

My colleague just reported that he developed a master page with embedded JScript using Windows Server 2003. The same master page fails to execute the JScript when used on a Windows Server 2008 ...