Tagged Questions
3
votes
2answers
1k views
Page.ClientScript.RegisterClientScriptInclude in Sandbox?
I'm trying to use jQuery in a Sandboxed Visual WebPart (2010):
protected void Page_Load(object sender, EventArgs e)
{
string jQuerySrc = Page.ClientScript.GetWebResourceUrl(this.GetType(), ...
1
vote
2answers
47 views
jQuery.noConflict() and Sharepoint 2010 WebParts
I've made two webparts for Sharepoin 2010 with jQuery plugins fancybox (slider) and cycle (slider). I need to locate both webparts on one page. But it doesn't work. I tried to use jQuery.noConflict() ...
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 ...
0
votes
4answers
405 views
How to know if JS file has been registered in a visual web part?
Let me explain the situation:
I have a Sharepoint 2010 solution in VS that contains:
Some Model classes
A LINQ-to-SQL data context
A WCF REST service
3 Visual web parts
The web parts calls some ...
0
votes
0answers
42 views
Cancel Ajax Request in Webparts
In my visual web parts used in modal dialog, I have used a UpdatePanel and added an initializeRequest function and an endRequest function like following:
<script type="text/javascript">
...