3113

Conflict between jquery and ajax

Question:

I use Igoogle component <a href="http://james.padolsey.com/demo/tut-inettuts-with-cookies/" rel="nofollow">inettuts</a> and I have some links in the side of my web page if the user remove a block of data he can get it back i use ajax to achieve my goal as the following :

My .aspx :

<ul id="column2" class="column" runat="server"> <asp:UpdatePanel ID="uppnl_2" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="rlv_mainservices" EventName="ItemCommand" /> </Triggers> </asp:UpdatePanel> <!-- ////////////////////////////////////////////////--> <hr />

My .cs :

protected void rlv_mainservices_ItemCommand(object sender, RadListViewCommandEventArgs e) { if (e.CommandName == "GetDtails") { try { int index = Convert.ToInt32(e.CommandArgument); CreateBlockOfData("widget color-blue", 2, "aaa"); } catch (Exception ee) { } } } <hr /> protected void CreateBlockOfData(string widget_color, int column_par, string process_name) { HtmlGenericControl outer_li = new HtmlGenericControl("li"); outer_li.Attributes.Add("class", widget_color); if (column_par == 1) { column1.Controls.Add(outer_li); } else if (column_par == 2) { uppnl_2.ContentTemplateContainer.Controls.Add(outer_li); } else if (column_par == 3) { column3.Controls.Add(outer_li); } else if (column_par == 4) { column4.Controls.Add(outer_li); } //The rest of code }

My problem is :when i click on the link (in my list view) the block of data created without(remove,edit,minimize)features which the framework(inettuts) provide !!

How to fix this conflict between ajax and jquery?

Answer1:

If I understand well you search for the noConflict() command of jQuery

<a href="http://api.jquery.com/jQuery.noConflict/" rel="nofollow">http://api.jquery.com/jQuery.noConflict/</a>

You call it after you load the jQuery, and then you make your calls using the jQuery

Recommend

  • Value cannot be null. Parameter name: control
  • Telerik RadGrid - How do I set default data on insert?
  • UserControl causes full postback in UpdatePanel
  • Update Datalist in UpdatePanel
  • ASP.NET Ajax UpdatePanel flicker
  • Custom calendar with bootstrap and momentjs
  • firing ASP.NET Events from javascript
  • How to trigger UpdatePanel from a GridView TemplateColumn click?
  • Java generic/wildcard type mismatch
  • Matching IDs in Update Panel within a Repeater - “already contains a definition for…”
  • How do I preserve a value entered in a TextBox inside a gridview's templatefield when the gridv
  • C#/WPF: Binding to an element outside of the visual/logical tree
  • React Noob - onChange Element Loses Focus
  • Powershell Timer - Update gui
  • EntityDataSource query inner join
  • HTML file fetched using 'wget' reported as binary by 'less'
  • ASP.Net Routing in asp.net web-forms
  • How would you audit ASP.NET Membership tables, while recording what user made the changes?
  • Azure deployment continually recycling since upgrading the June 2012 SDK 1.7
  • .NET Core IHttpContextAccessor issue
  • How do I redirect with a Drop Down List, and not a Button?
  • How to use compare validator to compare the data between two dropdownlists values?
  • Hatch area using pcolormesh in Basemap
  • Grails/Roo for a .Net developer
  • Is MVC2 ASP.Net URLDecoding automatically?
  • java.net.SocketTimeoutException on embedded tomcat with jersey
  • Why isn't \\\\ interpreted as a blackslash in this regex?
  • ASP.NET MVC2 Error: No parameterless constructor defined for this object
  • How do i find all references to a user control
  • NRefactory: How do I access unresolved Named Arguments on a Property Attribute?
  • C# List of Panels
  • How to return DataSet (xsd) in WCF
  • Laravel: Getting Session ID oddly truncates when using foreach
  • Bypass multiple inheritance in Java
  • Custom validator control occupying space even though display set to dynamic
  • Recording logins for password protected directories
  • how to do an event when i swipe from fragment to the other
  • json Serialization in asp
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • How to stop GridView from loading again when I press back button?