但我需要写一个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>