1
vote
3answers
57 views

How to Make Webpart Title to Display Day of the Week?

I have list View webpart in my sharepoint 2010 team site home page. Generally Web Part title can be easily modified by editing the webpart and providing Title value. I am looking for a solution to ...
1
vote
1answer
32 views

I'm looking for a way to detect the ribbon load event

I'm looking for a way to hide a button from the ribbon using javascript, but to do this I need to wait until the elements of the ribbon are loaded. Is there a way to detect such event?
1
vote
2answers
49 views

Item ID of current row

I am working on a script that needs to pull the SharePoint list item ID from the current row. I have a checkbox field in a multi-item form webpart that, when checked, needs to update the item without ...
1
vote
1answer
59 views

Sharepoint 2013 not going to http://sharepoint/SitePages/Home.aspx

Currently in my Sharepoint Site, when I want to go to the main page sharepoint/SitePages/Home.aspx, it actually ends up going to sharepoint/_layouts/15/start.aspx#/SitePages/Home.aspx. This really ...
1
vote
1answer
38 views

Binding Enter Key?

here is my script that runs from a CEWP. just want little search button, but it only works when i click the button, enter key just refreshes the page. I've tried the event.preventDefault() - but no ...
2
votes
0answers
71 views

Filter Calendar view by Title in SharePoint 2010

i want to filter calendar view using title field. Is it possible to filter calendar view without make changes in modify view ?
4
votes
0answers
144 views

Reload Calendar without refreshing page in SharePoint 2010

How to reload calendar without refreshing whole page ?
1
vote
1answer
219 views

SharePoint DateTime field as Read-Only

How to make SharePoint DateTime field as Read only in NewForm.aspx? I'm using the below script to make DateTimeColumn as read only. It's working fine in firefox & not in IE9. Calendar icon ...
1
vote
1answer
107 views

SharePoint DateTime format as DD-MMM-YYYY in List NewForm

How to bring the DateTime format as DD-MMM-YYYY in SharePoint list NewForm.aspx?
1
vote
0answers
93 views

Getting column information from a sharepoint 2010 list

I'm trying to figure out how i can get information about a column in a Sharepoint List, like what type of column it is (single line, number, date etc...) and whatever additional column info that ...
1
vote
1answer
419 views

Unable to get correct element on a sharepoint page using document.getelementbyid('<%textboxID.ClientID%>')

I have a sharepoint website which has multiple instances of the same visual webpart. On button click I am trying to get a textbox present in the usercontrol of the webpart using ...
0
votes
0answers
53 views

How can I manipulate sharepoint ajax calls into the pipe line?

I built a SP server code that , (I don't know why) make some trouble into the client side code. When the page is loaded for the first time, I notice that every single item in the page, they are not ...
1
vote
1answer
93 views

tabbing out of menu item in sharepoint

When we are using tab key and we reach the site actions or welcome menu and press enter we can get inside the menu and then we can tab through the options.The issue I am facing is that when the last ...
4
votes
2answers
100 views

Is it possible to Fire event when Content type added in Shared Documents in sharepoint 2010?

How to fire event when any content type added in shared document library ? How to handle this event ?
0
votes
1answer
185 views

Modifying new/edit item form to add ECMA script on save click

I have a requirement of doing some complex calculations based on the multi lookup values selected in the form while creating an item. I can't use a calculated column nor SharePoint designer as they ...
3
votes
3answers
358 views

ECMA script - retrieving SPList property bag

I have added a property bag to SPList. Since the SPList doesn't support property bag, I have added my custom property to SPList.RootFolder.Properties. I would like to retrieve this property using ECMA ...
5
votes
1answer
147 views

What does ULSxSy:; do in SharePoint JS files?

So I was going through init.js and sp.js and found out that nearly all of the SharePoint OOB JS functions start with the following line: "ULSxSy:;" For example: function ctxInitItemState(ctxCur) ...
1
vote
1answer
116 views

grabbing a column from a list

I'm having an issue when I'm trying to grab a column I made in the tasks list (it's a lookup column). for some reason when i'm try to access it with javascript i always get an exception that it isn't ...
0
votes
0answers
77 views

SharePoint 2010 Ribbon dynamic item localisation

We are using PageComponents and javascript to dynamically construct and populate some flyouts with menu options. Some of the menu options text need to be localised but the resource access strings (eg ...
0
votes
2answers
591 views

Single line of text field validation in Sharepoint 2010 list

I have single line of text field in a Sharepoint 2010 list. I need to validate the particular field. The user will enter the number by starting with I or F. How do I validate the field if the user ...
0
votes
0answers
379 views

Retrieving Document Library item URL from ID

How can I retrieve the URL of an item/document in a (generic) document library when the only thing I have is the ID, obtained through: SP.ListOperation.Selection.getSelectedItems(); My intention is ...
0
votes
0answers
126 views

sp.js problem with third party library

My sp.js load is conflicting with Mootools 1.4.1's mootools-core.js, the error output is: Webpage error details Message: Object doesn't support this property or method Line: 2 Char: 1 Code: 0 URI: ...
0
votes
1answer
574 views

To check edit permission on a specific list using ecma script client object model

Users will have read permission at web level but in some scenario few users can have edit permission on just one list under the web (role is broken for the list and explicit permission is given on the ...
2
votes
1answer
415 views

What is the difference in GetCurrentCtx() and SP.ClientContext.get_current()?

Is there some reference to this subject? Both methods return completely different objects.
2
votes
4answers
7k views

Using Javascript in SharePoint

I have a number of projects that could benefit from JavaScript. I've seen a lot of "Oh, you can use JavaScript for that!", but little detail about how and where that's done. Does the script live on a ...
0
votes
4answers
1k views

JQuery in a Visual WebPart won't load on the page with the webpart

Hey I have a bunch of JavaScript/Jquery code that works really well when I use a Content-Editor webpart, but does not execute when I add the same code to the VisualWebPart mark up. I am referencing ...
1
vote
3answers
379 views

Is there a way to have the tool part pane open where the WebPart zone is located?

If you're dealing with a page with many many vertical WebPartZones & WebParts, is there any way to have the ToolPart Pane open next to the WebPart you are editing? Or move up as you scroll up and ...
2
votes
1answer
1k views

sharepoint page redirection using javascript

below I have some JavaScript which listens for mouse activity and starts a timer if there is no activity and then redirects the user to another page after say 2 minutes..The problem is that if I have ...
2
votes
1answer
278 views

What are CUI.debug.js files and why are they needed?

Our server has had some issues lately and we've been keeping our eye on the processes running. One process taking up a lot of memory is using CUI.debug.js. I'm assuming it's used for debugging? What ...
1
vote
4answers
3k views

Hide ribbon for Visitors - Using Javascript

I need to hide the ribbon for all visitors. I have seen solutions that require editing of master pages. This requirement is for one site only. I do not want to make this change for all the sites ...
2
votes
1answer
303 views

SharePoint List items, UserControls and cookies

I have another task at hand. I need to use cookies to read a title of an item from a custom list in SharePoint. This task is for SharePoint 2010. I have a container set up that will display the ...
0
votes
1answer
753 views

Javascript in Content Editor will not run unless our URL is a trusted site

We have a client that have their systems set up so that the Javascript in a Content Editor on a page does not seem to run unless they add the url of the site to the list of Trusted Sites in Internet ...
3
votes
1answer
342 views

How to change webpart custom property in sharepoint 2010 using javascript?

I want to change Custom Property of Webpart using javascript. Does anyone have any ideas on how to accomplish this?