This is my code and it works well in FF 41.0.2, GC 46.0, IE 11 and Opera 33, I haven't tried it in Safari yet. The problem is this is not working in FF version 37 and 38. Is there any thing I need to change or add to make this code compatible with as much as possible all browser and versions?
------------jsonp.php-------------------
  $.ajax({
         url : "http://www.sample.sample.ph/sample.php",
         dataType:"jsonp",
         jsonp:"mycallback",
         success:function(data)
          {
           alert(data.status);                                          
          }
        });
------------sample.php-------------------
$callback ='mycallback';
if(isset($_GET['mycallback'])) {
    $callback = $_GET['mycallback'];
}   
$arr =array();
$arr['status']="success";   
echo $callback.'(' . json_encode($arr) . ')';
