我正在使用Netbeans开发一个网站,有时会出现一个通知,上面写着"修改名称......"但我不明白'修改名称'的含义是什么或它的作用是什么......
有人可以向我解释一下它的含义吗?
谢谢!
当我尝试使用jquery发送var时,ajax php没有收到它,我不知道为什么.
这是我的脚本:
function showHiddenUserInfoPanel(id){
$(document).ready(function(){
$('#admin-resume').fadeToggle('slow', 'linear', function(){
$.ajax({
async: true,
type: "POST",
dataType: "html",
contentType: "application/x-www-form-urlencoded",
data: "userid="+id, // Also I tried with : data: {userid: id},
url: "user-profile.php",
success: function(){
$('#info-user').fadeToggle('slow', 'linear');
alert(id); // I receive the correct id value
}
});
});
});
Run Code Online (Sandbox Code Playgroud)
这是我的user-profile.php:
<div id="activity_stats">
<h3>Viendo el perfil de <?php echo $_POST["userid"]; ?></h3>
</div>
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮助我吗?
谢谢 :)