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 ...
0
votes
1answer
11 views

Setting audiences in share point 2010

I have written html/css code to display the menus. Now i need to hide the multi level menus(links) using windows authentication. i mean we need to set the target audience for the links. But,. i do not ...
0
votes
1answer
55 views

Need to remove html tags from <td></td> area in SharePoint custom DispForm.aspx

I had created a custom DispForm.aspx for a SharePoint list, using SharePoint designer. I included a Rich Text column type to show in DispForm.aspx. The contents of the column are showing, but somehow ...
0
votes
0answers
67 views

add new object not opened in a modal dialog for Sharepoint Photo Library

I created Photo library now For add new item i have written Javascript code and which works fine in IE,Firefox but not in Chrome browser i get a error as"Uncaught TypeError: Object # has no method ...
1
vote
2answers
211 views

SharePoint 2010 web service - GetListItems not working in Chrome & firefox

function GetListItems() { var soapEnv = "<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>" + ...
0
votes
1answer
50 views

Conditional Formatting very slow

i am using SharePoint 2010. I built a webpart which is displaying elements from another list on the same page. This works fine and fast but when i put in the conditional formatting the loading process ...
0
votes
2answers
70 views

Sharepoint timeout

I want to implement timeout in sharepoint site. I want to popup a message to user every 30 min if he is idle on the site. A continue button should be coming in popup and if he clicks ok he should be ...
0
votes
1answer
60 views

JavaScript error with Cascading Dropdowns

Many similar questions have been asked but none seem to work. I have Sharepoint 2010 and I have jquery-1.9.1.min and jquery.SPServices-0.7.2.min loaded into my parent site's Shared Documents. It ...
2
votes
2answers
253 views

Open a modal from a link in wiki-site: Sharepoint removes javascript

so I tried to add a little horizontal menu to a wiki-site and wanted one of the links to open in a modal Dialog (a contact form). Every time I try to add it about the UI, sharepoint removes the link. ...
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
1answer
163 views

Is there a way of inserting javascript function as an onclick attribute, or href attribute to a hyperlink in sharepoint page

So, is it possible to add a link as follows (or some equivalent to this) <a href="javascript:somefunction()">Click Here</a> into the Sharepoint page, but without using Content Editor ...
0
votes
0answers
34 views

Problem with add java script to set All Resources by default view in calender

I would like to add All Resources view by default in my calender but I can't find way how I can do this in standard calender. I started look for some solution this issue and I found below blog site ...
1
vote
2answers
189 views

js/jquery doesn't work on site's upload.aspx?

is that right? If I go to a library in the designer, i can see upload.aspx there. Can't create a new one (and i guess that is because there is really only one per site, or collection?). Anyway, I can ...
1
vote
1answer
114 views

Google Map Visual WebPart

Some that has an guide on have to create an Visual WebPart using Google Maps for an list.... protected override void Render(HtmlTextWriter writer) { string rScript = ""; rScript += ...
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
0answers
47 views

How to show the library items based on the lookup of contacts column in another list using ecma script?

I have a document library which contains multiple documents. and i have a list which contains two columns DocumentName and Contacts. My scenario is, I want to show the library item which is created ...
1
vote
2answers
703 views

How to get files count from particular library?

I'm using Sharepoint 2007 and unfortunately don't have any ways to server site scripting, no C# or PowerShell. Is there any way to get total number of files in a given Library using SPServices ? It ...
0
votes
1answer
122 views

Deploying SharePoint files (css, javascript) onto different platforms without SharePoint Designer

I need to deploy to "_catalogs/masterpage/" and "Style Library/" multiple jpg, css, javascript files These files originate from a developer platform and are to be deployed to multiple platforms ...
0
votes
0answers
67 views

SharePoint 2010 Motools JavaScript incompatibility

I created a JavaScript Slideshow base on Slideshow2 using Mootools. It works great stand-alone. I decided to incorporate it into my SharePoint 2010 Master Page and at first glance it was working ...
0
votes
2answers
2k views

How to use javascript client object model in sharepoint designer?

I have to fetch data using javascript client object model and for that i have to use Sharepoint Designer 2010 only i have searched on google and there i got solution only by adding code in visual web ...
0
votes
1answer
1k views

dataform webpart button redirect new ID after saving

Can anyone please provide a hint for the following problem: I have two DataFormWebparts on a page, one for creating new objects, one to edit them. The Webpart that creates them has this button : ...
0
votes
1answer
169 views

XSLT/Webpart View in Custom Javascript text file?

So this may be silly but I want to ask anyway, if I am using the text file approach (markup and javascript within text files that a CEWP references), is it possible to add mark up or script that would ...
0
votes
2answers
466 views

Problems adding javascript to newform.aspx

I am having problems adding a Javascript snippet to my newform2.aspx in SharePoint Designer. I have read several submissions that state to just add it below the PlaceHolderMain in the form. But this ...
0
votes
1answer
256 views

getItemById javascript error

I'm creating a custom form and am trying to add a button to the form, and have functionality when its clicked. I don't really have much experience with javascript, so if there is a better approach to ...
1
vote
2answers
88 views

javascript method to delete content from recycle bin of a single site only

So I know you can use jvascript:emptyItems() in the address bar of the recycle bin to clear it, but this clears the entire site collection. Is there a way using javascript to empty the recycle bin ...
2
votes
2answers
638 views

Datetime update is one day off

I'm updating a list with a date field (just the date) using the ECMASCRIPT object model but when the date is inserted is one day off from the introduced date, It's literally making me pull my hair off ...
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
1answer
381 views

Method behind attachment, for custom pages

This may be a poorly formed question, but I'm fairly new to sharepoint. What I'm doing is creating a custom page (just basic HTML and JS), and using that page to call SPAPI and SPServices to input ...
1
vote
6answers
3k views

How to add Some Javascript code to all the aspx pages not just on web parts?

I just want to modify some of the contents on all the SharePoint pages be it adminstration page or some site page or any other page using my script (Javascript) and AJAX code. My ultimate aim is to ...
2
votes
1answer
147 views

Get single field item value from Custom List and set it on same item but another field

I'm new in Sharepoint, and I have an issue with a custom list in Sharepoint 2007. The thing is... I have a custom list with pre-loaded data, and I need to get a unique code from a field item, to put ...
6
votes
3answers
3k views

How to get the ID of the list item just inserted using ecmascript

I am stuck at a place where I have to update a list which has a Lookup column. For example I am using this code to update my normal list var clientContext = SP.ClientContext.get_current(); ...
1
vote
1answer
308 views

anchor tag in SharePoint master page

Hi can someone help me in putting up a anchor tag in SherePoint custom publishing master page. Actually I want to open a site page on click on this anchor tag, this site page will be in the top level ...
1
vote
1answer
1k views

sharepoint onload set radio button value using javascript

Set choice field value using java script : I have a choice field with values : Open Closed Cancelled When my page loads, my choice column should be selected as "Cancelled"(i don't want to set ...
-1
votes
2answers
449 views

Disable the Drop down column based on the text value…!

I am working with SharePoint 2010 form library. I have a drop down column which is dependent on text input column value . The value in the Text input column comes from the infopath form. What i ...
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 ...
0
votes
1answer
806 views

SP.UI.ModalDialog.showModalDialog not working with IE7

I'm trying to make this link below work with IE7 but it doesn't fire. Whereas is ok in IE9 and firefox. Any ideas what i'm doing wrong :( THanks <a href="#" ...
3
votes
8answers
4k views

How can we get Cascading Lookup Columns in sharepoint 2010?

How to get the cascaded Lookup columns in sharepoint 2010,Iam having requirement like i have two lists(Category List and Sub category list)..For each item in category list i have 5 different items ...
1
vote
2answers
526 views

__redirect not working after __commit on Form Action Button

This is in Sharepoint 2007 -- Designer I have written a Form Action button and it has the following Code: <input type="button" value="Add List Item" name="BtnSave" onlick="javascript: ...
0
votes
1answer
348 views

Building a Floating Menu for SP 2010

I would like to have a floating menu the menu can come from a list or use the Quick launch. Any ideas or samples out there.. For example if i can make this float ...
0
votes
1answer
344 views

SharePoint CEWP Javascript works on IE8, but not Chrome or Firefox

I have some Javascript in a CEWP on a custom item display form that works fine with IE8, but not with Chrome or Firefox. The script is to hide select menu items from the display menu (mostly ...
0
votes
2answers
1k 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" ...