Tagged Questions
2
votes
0answers
15 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
36 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
66 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
335 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
505 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
299 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
473 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
549 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
277 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
166 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
254 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
431 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
606 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
490 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
374 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="..."
...