jQuery和阿贾克斯之间的冲突 [英] Conflict between jquery and ajax

查看:178
本文介绍了jQuery和阿贾克斯之间的冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用iGoogle分量 inettuts 和我有一些链接我的网页中,如果用户删除数据块的一侧,他可以拿回来我使用 AJAX 来实现我的目标如下:

I use Igoogle component inettuts 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 :

 <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>
  <!-- ////////////////////////////////////////////////-->


我的.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)
                {
                }
            }
        }


 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
        }

我的问题是:当我点击链接(在我的列表视图),而创建的数据块(删除,修改,最小化)功能,该框架(inettuts)提供!!

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 !!

如何解决AJAX和jQuery之间的冲突?

How to fix this conflict between ajax and jquery?

推荐答案

如果我的理解以及您搜索的jQuery的 noConflict()命令

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

http://api.jquery.com/jQuery.noConflict/

您拨打后加载了jQuery,然后您使用jQuery您的来电

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

这篇关于jQuery和阿贾克斯之间的冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆