- Messages
- 880
- Reaction score
- 0
- Points
- 26
View attachment 281316
View attachment 281317
View attachment 281318 <- Internet
View attachment 281321 <- Mozilla
View attachment 281319 <- still loaded conversation (Internet)
bali ang problem ko po dito is still loaded yung conversation namin ni Internet kahit si mozilla na ang selected data ko. kung kaya't yung conversation box nagsshifting.
function getChatlist(uid){
$('#chatFrm').trigger('reset');
$('.conversation-title').html('');
$.ajax({
url : "<?php echo $base_url; ?>serverside/chat/chat_user.php",
data: "uid="+uid,
type: "GET",
contentType: "application/json; charset=utf-8",
dataType: "JSON",
success: function(data)
{
var id_user = data.profile_id;
var uname = data.profile_username;
$('.conversation-title').html(uname);
$('#chat_id').val(data.profile_id);
setInterval(function() {
$('.chat_logs').load('<?php echo $base_url; ?>serverside/chat/chat_logs.php?uid='+id_user+'&uname='+uname);
}, 2000);
$('#chatFrm').trigger('reset');
},
error: function (jqXHR, textStatus, errorThrown)
{
alert('Error get data from ajax');
}
});
}
View attachment 281317
View attachment 281318 <- Internet
View attachment 281321 <- Mozilla
View attachment 281319 <- still loaded conversation (Internet)
bali ang problem ko po dito is still loaded yung conversation namin ni Internet kahit si mozilla na ang selected data ko. kung kaya't yung conversation box nagsshifting.
function getChatlist(uid){
$('#chatFrm').trigger('reset');
$('.conversation-title').html('');
$.ajax({
url : "<?php echo $base_url; ?>serverside/chat/chat_user.php",
data: "uid="+uid,
type: "GET",
contentType: "application/json; charset=utf-8",
dataType: "JSON",
success: function(data)
{
var id_user = data.profile_id;
var uname = data.profile_username;
$('.conversation-title').html(uname);
$('#chat_id').val(data.profile_id);
setInterval(function() {
$('.chat_logs').load('<?php echo $base_url; ?>serverside/chat/chat_logs.php?uid='+id_user+'&uname='+uname);
}, 2000);
$('#chatFrm').trigger('reset');
},
error: function (jqXHR, textStatus, errorThrown)
{
alert('Error get data from ajax');
}
});
}