Welcome Guest, Not a member yet? Register   Sign In
CSS styling for every blog from database
#2

[eluser]Unknown[/eluser]
please use the
Code:
<?php json_encode ?>
function.after that try to use this code for parsing json

Code:
success:function(response){
  //alert(response);
  var obj = jQuery.parseJSON(response);
  $.each(obj,function(index,val){
    var html= '<div id="ajaxtitle"><b>'+val.title+'</b><br/> '+val.ajaxcomment+'</div>';
    $("div[id=titlebody]").append(html);
  });                                      
}


Messages In This Thread
CSS styling for every blog from database - by El Forum - 11-12-2012, 04:21 AM
CSS styling for every blog from database - by El Forum - 11-13-2012, 12:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB