i wanted to fire off get_convo after 5000 seconds but it fires automatic after i click a message.
$(".mes").click(function(){
var user = $(this).attr("id");
$("#convo").html(user);
$(".convo_mes").html("Loading conversation <img width='15' height='15' src='./img/load.gif'>");
setTimeout(get_convo(user),5000);
});
//get convo
function get_convo(user){
$.post("./php/get_convo.php",{username:user},function(get_convo){
$(".convo_mes").html(get_convo);
});
}