- Messages
- 880
- Reaction score
- 0
- Points
- 26
View attachment 278387 <- online user
View attachment 278388
$base_url = http://localhost:8080/
function getChat(uid){
$.ajax({
url : "<?php echo $base_url; ?>serverside/chat/chat_user.php",
data: "uid="+uid,
type: "GET",
dataType: "JSON",
cache: false,
success: function(data)
{
var uname = data.profile_username;
alert(uname);
$.post("<?php echo $base_url; ?>serverside/chat/chat_logs.php?uname="+uname);
$('form')[0].reset();
},
error: function (jqXHR, textStatus, errorThrown)
{
alert('Error get data from ajax');
}
});
}
- - - Updated - - -
na solved ko na. thx sa mga nagview
View attachment 278388
$base_url = http://localhost:8080/
function getChat(uid){
$.ajax({
url : "<?php echo $base_url; ?>serverside/chat/chat_user.php",
data: "uid="+uid,
type: "GET",
dataType: "JSON",
cache: false,
success: function(data)
{
var uname = data.profile_username;
alert(uname);
$.post("<?php echo $base_url; ?>serverside/chat/chat_logs.php?uname="+uname);
$('form')[0].reset();
},
error: function (jqXHR, textStatus, errorThrown)
{
alert('Error get data from ajax');
}
});
}
- - - Updated - - -
na solved ko na. thx sa mga nagview