English 中文(简体)
ajax的变数声明
原标题:variable declaration in ajax
  • 时间:2009-08-25 19:57:34
  •  标签:

但我需要写一个jax功能,以便在我自由标识工具页的四页上重载内容。

离散问题包括与否的无线电信 but,当用户收看成和点击提交书子时,应当重新上载,而且由于我对Ajax 我写了像PLEASE LET ME KNOWIF这样的新文字,例如,PLEASE LET ME KNOWIF AT I WROTE IN CREAMENT A VARIABLE IS RLI OR ONG WR和PLEASE LET ME KNOWIF I WROTE ANY SYNTRP ERRORS TKHANS

<script type="text/javascript">
function submitOptIn() {
    $( optInError ).hide();
    dataString = $( #partnerOptIn ).serialize();
    $.ajax({
        data: dataString,
        timeout: 30000,
        type: "POST",
        var newHtml = "<h4>Thank you</h4>
        <p>We appreciate your time to respond to our request.</p>";
        success: function(html){
            $( #optInContent ).html(newHtml);
        },
        success: function(html){
            $( #optInContent ).html(html);
        }, 
        error: function(){
            $( #optInError ).show();
        }
    });
}
</script>
问题回答

将新的超文本声明放在成功职能范围内:

    success: function(html){
            var newHtml = "<h4>Thank you</h4><p>We appreciate your time to respond to our request.</p>";
            $( #optInContent ).html(newHtml);
    },

代表: www.un.org/Depts/DGACM/index_french.htm

success: function(html){
    var newHtml = "<h4>Thank you</h4><p>We appreciate your time to respond to our request.</p>";
    $( #optInContent ).html(newHtml);
},




相关问题
热门标签