Tagged Questions
2
votes
1answer
20 views
Updating contents in a custom webpart in a Discussion Board topic page
I have made a custom Visual Webpart. I'm wanting to periodically update a label in the webpart without refreshing the whole page. I've got the label to update, however it is also updating the replies ...
0
votes
3answers
40 views
Multiple Webparts with same JavaScript on one Site (another Problem)
I rebuild the site (site before). I have on the site two or more Webparts. These CEWP are including the same JavaScript and this the JavaScript is displaying a table via:
...
0
votes
2answers
69 views
Multiple Webparts with the same Javascript
I have a site with multiple Webparts. Some Webparts are linking on the same .html file.
The HTML file reads data from a list and displays it in a table by using javascript. My problem is that there ...
0
votes
1answer
48 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 ...
1
vote
2answers
345 views
SharePoint javascript refresh page is reloading the whole page
In a webpart, I added a button that should trigger a modal dialog, and display a message when the dialog is closed.
The dialog script is handled by this code :
function OpenGenericForm(formUrl, ...
3
votes
2answers
537 views
ExecuteOrDelayUntilScriptLoaded not executing after page publish
In SharePoint 2013 I have a page that is using the Script Editor web part.
In the script editor web part I have the following:
ExecuteOrDelayUntilScriptLoaded(startIt, "sp.js");
function startIt() {
...
1
vote
1answer
309 views
How to add Client Web Parts (App Parts) to a page from JavaScript CSOM?
We're working on a custom way of adding and deleting Web Parts and App Parts to a page in SharePoint 2013. We have to use the new App way of developing and all code has to be using the JavaScript ...
1
vote
2answers
493 views
How to get value of List Filter web part in Javascript?
I use the SharePoint List Filter web part on a page to control several Data View Web Parts.
How do I read the current value of the List Filter in Javascript?
0
votes
1answer
577 views
Jquery + Instant Search / Filter of a list
I've seen a clip on bentedder.com where this developer got instant search (filter) to work within a webpart list view. I find this may be very useful for general 911/411 annoucements and archive if i ...
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
3answers
280 views
How to load page load javascript when update progress is over
How to load page load javascript when update progress is over.
$(function()
{
// how to load this after update progress is over
}
Explanation
My Grid inside update panel..
In Grid some of ...
0
votes
1answer
60 views
Change Language in ModalDialog without reload
I´ve got the following issue:
I want to change the Language of a .aspx Page, the NewForm.aspx. Therefor I created a WebPart which was added to the NewForm.
<div>
<a href="" ...
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 ...
2
votes
1answer
79 views
How can I fit a Datatable only into a webpart (not page) dynamically?
I develop a Webpart, which should be deployed in other SP-Farms.
The Webpart contains a DataTable.
I deployed the solution and the DataTable appears in the right side of the Website.
I'm using a ...
1
vote
2answers
180 views
Get id's of tags that are in a web part in Javascript
Ok, I have a page that that has a DataFormWebPart that basically displays the info from a document library. Now what I want to do is, using jquery, display or hide a section in the web part.
I can do ...
0
votes
2answers
283 views
Reference InfoPath field in edit.aspx InfoPath web part
I have a colleague I'm trying to help. He has a list on a SharePoint site. He modified said list's web part with InfoPath. Upon creating a new item, the item is saved as well as emailed to a 3rd party ...
0
votes
1answer
167 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
3answers
256 views
Why don't update a choice column with javascript?
I have a list .
I want update special item of it with javascript.
I created a js file and add this code to it :
var context = new SP.ClientContext.get_current();
var web = context.get_web();
var ...
0
votes
2answers
432 views
referencing jquery in a sandboxed solution
I have a sandboxed sharepoint project, in which I have created a module, put jQuery there and referenced it from my webpart's ascx page like this:
<head>
<script ...
0
votes
1answer
608 views
CheckBox header to select all checkBoxes in SPGridView
I have a webpart with SpGridView.
<SharePoint:SPGridView ID="grid" AllowSorting="true" AllowFiltering="true" CssClass="ms-listviewtable"
runat="server" AutoGenerateColumns="false" ...
3
votes
2answers
492 views
SharePoint webpart and application page
I need to make an application page or a webpart that have a javascript code and i tried to add the jquery i a new project to upload it to the SharePoint but the code didn't work
this is the code that ...
2
votes
3answers
3k views
How to add javascript and css to a SharePoint 2010 webpart?
What is the proper way (i.e. without having to manually copy the assets to any sharepoint folder or anything like that) to add custom javascript and CSS to a SP 2010 web part?
I would like them to be ...
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 ...
3
votes
3answers
377 views
jquery projects and visual studio best practices?
Just curious how others are handling their jquery related solutions. It's obviously very easy to add a Content Editor web part with a content link to a source file. That file could have your ...
1
vote
2answers
358 views
Icon-based menu that dynamically changes based on permissions
We're trying to create an square grid, icon-based menu that is permission trimmed (certain icons appear based on your specific SP permission group), that dynamically rearranges the icons based on your ...
2
votes
3answers
553 views
Can a web part prevent master page jQuery from executing properly?
I'm including jQuery and a custom .js file into the master page of my SharePoint 2010 site. In the $(document).ready() function, I'm setting a live event handler on an element in the header of the ...
0
votes
3answers
2k views
Register and run javascript on load in a sandboxed webpart
Got a placed called 'SiteAssets/test.js' with the function test().
I've created a nonvisual webpart, would like the script via the cs file and then run the function during the loading of the webpart.
...
2
votes
1answer
7k views
Calling the SP.UI.ModalDialog.showModalDialog method
My SharePoint solution has a userControl that Register a js block
string getJS(string title, string htmlContent)
{
return (string.Format(@"
ExecuteOrDelayUntilScriptLoaded(function ...
1
vote
3answers
378 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
2answers
1k views
Handle the event generated by ddwrt:GenFireServerEvent('__name')
I have a custom DataFormWebPart that renders some content based on an XSLT. Inside the XSLT I have a button that does a postback like so:
<input type="button" value="..." name="..."
...
0
votes
2answers
4k views
How do get selected item of list?
I have a webpart .I add a listviewbyquary in createchildcontrols and a hyperlink in visualwebpart.
i use this
http://graegert.com/featured/using-the-editorpart-to-create-a-custom-listview-web-part
...
2
votes
3answers
2k views
Expanding and collapsing sharepoint webparts
I want to implement a collapsing/expanding feature to all my webparts in a certain page and tried the code shown here: http://moblog.bradleyit.com/2009/08/sharepoint-expand-or-collapse-web-parts.html
...
6
votes
1answer
343 views
Get and remove all currently displayed notifications from SP.UI.Notify
I am sending a variety of notifications via
SP.UI.Notify.addNotification("blah", true);
setting the "sticky bit" to true so that the notification stays visible. When I display a second ...
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?
0
votes
1answer
99 views
Available web part width
Is it possible to find out the available web part width in px via JavaScript? Because I need to set the size of a component manually.
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 ...
1
vote
4answers
140 views
Showing url images in webpart
I need to display the images of the url typed in a custom webpart .
i.e if i type url name (www.google.com) , atomatically it should display the small logo of google in webpart .Anyone with this idea ...
0
votes
1answer
380 views
Add a JS file as embedded resource in a web part in VS2010
I am trying to add resources JS files, images, CSS files as embedded resources to my custom web part, I am writing in VS2010. I have set the properties of these files as "Embedded Resources", but I am ...
3
votes
1answer
1k views
How to import external javascript in a User Control?
I have a code-behind User Control (myUserControl.ascx and myUserControl.ascx.cs) that are in
ControlTemplates/MyFolder/
and, in the code of myUserControl.ascx I need to use some javascript ...
4
votes
4answers
2k views
What is the proper way to add jQuery to a MasterPage?
Currently I am using this method in the header:
<script src="/_layouts/MNCAssets/scripts/jquery-1.5.1.min.js"></script>
But for some reason, my webparts that use jQuery don't appear to ...
0
votes
0answers
68 views
Is the javascript in my webpart executing before the javascript in my MasterPage? [duplicate]
Possible Duplicate:
What is the proper way to add jQuery to a MasterPage?
I have a few webparts that use jQuery. Instead of adding the jQuery in each web part I decided to add it in the ...
1
vote
1answer
1k views
Script Manager in SharePoint pages
I am working on some mobile web parts and have got into a problem.
My issue is that I have a custom web part which is a mobile web part. I have got everything working and I can see the web part in ...
1
vote
1answer
177 views
Guidelines for rich UI?
Edit : actually, my current task is focused on the refactor of a webpart, but the question is in fact a general question : what are guidelines for "cool" SP UI. /Edit
I have to maintain a set of ...
2
votes
1answer
737 views
sharepoint webpart javascript - 'null' is null or not an object
I have an issue on one of my sharepoint enviriontments regarding some kind of javascript problem with the Content Editor Web Part which keeps returning me these errors when I try to user the RTF-text ...
9
votes
4answers
924 views
Why does having `windows.onload` break page editing?
This is related to an earlier question that I posted:
Can't edit page after adding custom web part!
Basically, I have created a web part with some javascript. When I add this web part to a ...
1
vote
2answers
4k views
How to add a pop up aspx page to your web part?
I'd like to have a pop up that contains an aspx page. It appears that adding an aspx page to a web part is not possible. When I went to add a new item to the project the closest I could find were ...
5
votes
2answers
5k views
Adding ScriptLink for js file to my Visual Webpart causes error: “Cannot make a cache safe URL for…”
Full error:
Cannot make a cache safe URL for
"sprocketcomplete/layouts/sprocketcomplete/js/sprocketcomplete.js",
file not found. Please verify that the
file exists under the layouts
...
0
votes
1answer
122 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
978 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
3answers
2k 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 ...

