Without $(".refresh"). $.ajax , we can see $('.link').click(function (){ is working .
But with the
$(".refresh"). $.ajax is inserted,
$('.link').click(function ( does NOT work .
Question: I think this problem is related to the conflict. Any good way for ajax refreshing???
===================================================================
<script type="text/javascript">
$(document).ready(function(){
$(".refresh").everyTime(1300,function(i){
e.preventDefault();
$.ajax({
type: "POST",
url: "refresh.php",
cache: false,
data: "no="+"1",
success: function(html){
$(".refresh").html(html);
}
});
$('#textb').focus();
})
$('.link').click(function(){
var elem = $(this);
$.ajax({
type: "GET",
url: "patest.php",
data: "id="+elem.attr('data-artid'),
success: function(data) {
$('#right_td').html(data);
}
});
return false;
});
$("#post_button").click(function(e){
e.preventDefault();
var datas = "Looks easy but difficult to apply"
$.post("save.php",
{
name: datas
},
function(data, status){
//alert("data:" + data + "\nStatus: " + status);
$('#stage').html(data);
});
});
});
</script>