Tagged Questions
0
votes
1answer
9 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
66 views
Fill the fields in new form for an item
I've came across a requirement where I need to fill some of the fields in newform.
So basically we start from view item, where we can see an existing item in a list, then we click something like move ...
0
votes
0answers
70 views
Update WebPart MenuItem/Verb from Client Side
Here is the scenario - I have a custom webpart where I added one custom menuitem with client side handler, now my requirement is when I click on the menuitem some text should be shown, for example ...
1
vote
1answer
112 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
0answers
70 views
Passing args to QuickLinksDialog with JS
I have a small button on a site which when i press should start a QuickLinksDialog and fill in some of the fields there.
Everything goes good and well except the fields (like: title and url) still ...
0
votes
0answers
120 views
Refresh javascript variable in update panel
I want to refresh a values veriable on update panel and if it change the variables schould change it too. How can it do. If Variable =="1" schould see alert, and if variable =="0", the alert in updane ...
0
votes
1answer
397 views
Select a ribbon tab Ribbon.read with a button
My question is simple:
How do I select a ribbon.read with javascript? For example i have a different tab selected but clicking on the button i would like to select Ribbon.read ... any adivces?
...
0
votes
0answers
157 views
Activating ribbon contextual tabs for web part with JS or ServerSide
I' searching for a way how to activate the ribbon contextual tabs for a particular web part.
For example on a page there are more than 1 web parts and i want to automatically show in the ribbon ...
0
votes
3answers
158 views
Overriding complicated javascript function
I have a some default SharePoint complicated javascript function and I'm not sure how to override it, replace it.
In gerenal i know how to replace the functions, so that your implementation is called ...
0
votes
2answers
132 views
Overriding function in imglib.js
My question is regarding a default SharePoint imglib script. The script is located in following folder: 14\TEMPLATE\LAYOUTS\1033\imglib.js
The script has a function called: GenerateFooterContent(f, ...
0
votes
2answers
263 views
Notify item update by JavaScript
I created a popup window that updated the metadata information of my item.
When the operation of updating is complete I would like to close my popup and show the notify alert.
I succeed to close the ...
0
votes
1answer
211 views
How to access a javascript variable from a parent page in a modal window?
I have a page with the following javascript on it:
var myVal = 'something';
Pub.Ribbon.PubRibbonComponent.launchDialog('_layouts/RteUploadDialog_Advanced.aspx',
...
1
vote
3answers
662 views
change title of a modal window
how can I change the title of a modal window open through the command using?
ExecuteOrDelayUntilScriptLoaded(function () { openModalWindow('.....')},\"sp.js\");
I would like the person to see: ...
1
vote
0answers
122 views
Changing / overwriting OOTB javascript
I've came across an issue when I was modifying / customizing the mini social tag buttons (a delegate control - class), everything went good and well untill I encountered an issue "onmouseover" event.
...
0
votes
0answers
142 views
Uploading file “NewItem2”
I'm attempting to upload a file to SharePoint using the NewItem2 function. However, after uploading the file, I want to get the relative URL of the uploaded file. Is this possible? Is there a ...
0
votes
1answer
255 views
List Onload event
What I want to do:
I have a custom list that contains a lot of items. When an user loads the list, all items of his view should be checked. If there is a special value in the listitem a notifiaction ...
0
votes
1answer
229 views
Inherited Page Viewer Control - allowTransparency on iframe
I created a custom control that inherits from PageViewerWebPart.
Now I need to toggle the allowTransparency attribute to = "true" on the rendered iframe to enable background transparency for the page ...
2
votes
1answer
424 views
Inject Script Block after SP.js loads
I have a giant script block inside my code file and I want to load it after SP.js loads. I've looked at ScriptLink, but I don't think ScriptLink injects code, it only injects code files.
Is there a ...
0
votes
1answer
284 views
SPRibbon Button Unique Button Commands
I basically have a WP with its own custom Ribbon Buttons and Commands. The command's are hard-coded inside the the Elements.xml. However, the webpart basically breaks once you add another "same ...
1
vote
2answers
447 views
Is it possible to change the visual style of a JSGrid row?
I am working on a SharePoint solution using the SharePoint JS Grid control to display data. What I'd like to do is to change the default style (mainly background color) of specific rows in the grid to ...
0
votes
1answer
127 views
Sharepoint 2007 Windows Gadget [closed]
I am trying to develop a Gadget for Sharepoint 2007, which will authenticate a user and then fetch him a sharepoint list from a specific URL,
For the last 4 days I have been working on it and came ...
0
votes
2answers
84 views
c# and JavaScript
So i have this code
sb.AppendLine( "var nameSplit = users[i].split('\');");
The sb.AppendLine is C# and the bit inside is JavaScript, I am trying to split users[i] so that I can strip out the ...
3
votes
2answers
391 views
Generate file then close SharePoint dialog page
I have a custom solution where I open a SP Dialog box through Javascript. From this dialog, I want to generate a file and sent it to the user when he is clicking on a button, than close the dialog.
...
1
vote
1answer
618 views
How can I implement SharePoint JSGrid filtering and grouping functionality?
I am working on SharePoint JSGrid. I am able to implement the sort functionality in JSGrid. Now I want to implement the grouping and filtering in my custom JSGrid.
For filtering we have to attached ...
1
vote
2answers
693 views
Sharepoint Ribbon: Circumventing Context sensitivity
First of all, I've asked this same question on StackOverflow. I don't know if questions asked there are visited by users here and vice-versa, so in hopes that my question gets the most exposure, I'm ...
2
votes
4answers
3k views
Loading jQuery in the Correct order
I wish to use a jQuery plugin in SharePoint. Currentley I have jQuery added to each page via a custom master page.
<script src="/Style Library/js/jquery-1.6.4.min.js" ...
7
votes
2answers
4k views
SP.UI.ModalDialog.showModalDialog using the html option
http://msdn.microsoft.com/en-us/library/ff410058.aspx says that you can use the option html to display html text in a modal.
I have a string like this;
var html = ...
5
votes
3answers
6k views
Get Site Collection full URL using javascript
I want to get the URL for my site collection. One way I thought I could do it was using the window.location in javascript and getting it that way.
I know that you can use ECMA script and the client ...
3
votes
1answer
405 views
SharePoint 2010 Save ListItem without closing
Is it possible to save a ListItem without closing the modal dialog in SharePoint 2010? Possibly by replacing the save button on the Ribbon with a custom button that calls the submit function and keeps ...
1
vote
2answers
113 views
Tooltips on check boxes
I have a CheckBoxList , I want to assign tooltip to all the checkboxes. How is it possible? I cannot find any property associated with this.
<asp:CheckBoxList ID="XYZ" RepeatColumns="3" ...
3
votes
1answer
439 views
In SharePoint 2010 how can I add user selected WebParts at run time?
I am quite new to SharePoint and have been given an interesting problem to solve. My users have requested to each have a custom home page that they can customise with ease. The design I have been ...
0
votes
1answer
128 views
Issue with editing SharePoint Page
I have an issue with editing a Sharepoint page.
I have to check whether Silverlight is installed in the user's system which is done by a Javascript function, but the issue I'm getting after ...
0
votes
2answers
244 views
Link in master page to base url
In a WebApp with diffrent site collections and subsites, I would like to add a link on the custom master page of all sites to the WebApp Url. (This Url is corresponding with a home/top site ...
0
votes
1answer
388 views
Is there a way to get the currently logged user’s colleague list using ECMA client script?
Is there a way to get the currently logged user’s colleague list using ECMA client script?
Used the below script to pull the currently logged user name:
<script ...
2
votes
1answer
843 views
JavaScript error using date picker inside an update panel?
I placed the SharePoint date picker control inside an update panel and when I click on the calendar it gives me this error:
Microsoft JScript runtime error: The value of the property
...
4
votes
2answers
1k views
Sharepoint 2010 ModalDialog title
I am creating a popup window in sharepoint using this code in javascript.
function openDialog(title, url, width, height, CallResult) {
var options = { url: getUrl(url),
title: title,
...
3
votes
2answers
461 views
Sharepoint 2010 MdalDialog title [duplicate]
Possible Duplicate:
Sharepoint 2010 ModalDialog title
Hi,
I am creating a popup window in sharepoint using this code in javascript.
function openAutoResizableDialog(title, url, ...
1
vote
1answer
328 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
172 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?
1
vote
1answer
309 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
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
3answers
1k 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 ...
5
votes
3answers
7k views
How to use JavaScript and CSS in a web part?
I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I am using publishing portal template. I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net. And I want to ...
0
votes
3answers
999 views
Setting display:none for empty web part zones
Does anyone know the JavaScript for setting display:none on an empty web part zone? I remember seeing it once on a publishing site but now can't find it.
This is to avoid the padding and spacing a ...

