编辑内部HTML页面,直到jQuery对话框打开 [英] Edit inner html page befor jQuery dialog opens

查看:67
本文介绍了编辑内部HTML页面,直到jQuery对话框打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是初学者.

function show()
{
        result = $.ajax({ url: "Index.aspx?cmd=fill",
            async: false,
            complete: function () {
                // unblock when remote call returns 
                $("#div_userregist").dialog("open");
            }
        }).responseText; ;
}


FormLoad() //on codebind
{
    if(request["cmd"]=="fill")
    {
      // place 1
    }
}

我可以在第1个位置执行此操作(请参见上文):编辑html,然后显示jQuery对话框吗?

解决方案

也许是吗?

I am a beginner.

function show()
{
        result = $.ajax({ url: "Index.aspx?cmd=fill",
            async: false,
            complete: function () {
                // unblock when remote call returns 
                $("#div_userregist").dialog("open");
            }
        }).responseText; ;
}


FormLoad() //on codebind
{
    if(request["cmd"]=="fill")
    {
      // place 1
    }
}

Can I do this in place 1 (see above): I edit html and then show jQuery dialog?

解决方案

Maybe this?

FormLoad() //on codebind
{
    result = $.ajax({ url: "Index.aspx?cmd=fill",
        async: false,
        complete: function (request) {
            if(request.cmd=="fill")
            {
                $('#randomelement').innerHtml = request.data;
            }
            $("#div_userregist").dialog("open");
        }
    }).responseText; 
}

这篇关于编辑内部HTML页面,直到jQuery对话框打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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