Everything is functioning well on Chrome and other browsers except for IE. Below is an example to illustrate:
(specifically referring to IE 8, unsure about compatibility with IE 9)
Upon running the JSON request, I encountered an error stating "Object expected" on line 29.
<!DOCTYPE html>
<html>
<head>
<title>Sandbox</title>
<script src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
</head>
<script>
function search()
{
$.ajax({
url: 'http://davzy.com/cache/api/rarevalues.php?callback=?&search=' + $('input').val(),
cache: false,
dataType: 'json',
success: function(data, status, xhr) {
$('body').append('<br>' + data[0].name);
$('input').focus().val('');
}
});
}
</script>
<body>
<div>type test or rare or chair</div>
<input onkeydown='if(event.keyCode == 13) search();'>
<button onclick='search()'>Go</button>
</body>
</html>
Below is a snippet of the JSON response (the callback functions as expected, ignore the "?", source: )
?([{"0":"18","id":"18","1":"Petal Patch","name":"Petal Patch","2":"75","parent":"75","3":"cache\/rare_values\/images\/petal_patch.gif","small_image":"cache\/rare_values\/images\/petal_patch.gif","4":"cache\/rare_values\/images\/large\/petal_patch.gif","big_image":"cache\/rare_values\/images\/large\/petal_patch.gif","5":"A little bit of outdoors indoors..","motto":"A little bit of outdoors indoors..","6":"0","displayorder":"0","7":"1_center cache\/rare_values\/images\/petal_patch_1.png\n1_left cache\/rare_values\/images\/petal_patch_2.png","interactiveimages":"1_center cache\/rare_values\/images\/petal_patch_1.png\n1_left cache\/rare_values\/images\/petal_patch_2.png","hcs":12.5,"throne":0.06,"credits":"25"},{"0":"685","id":"685","1":"Petals","name":"Petals","2":"28","parent":"28","3":"cache\/rare_values\/images\/petal_flurry.gif","small_image":"cache\/rare_values\/images\/petal_flurry.gif","4":"cache\/rare_values\/images\/large\/petal_flurry.gif","big_image":"cache\/rare_values\/images\/large\/petal_flurry.gif","5":"Romance is in the air. And so are rose petals apparently.","motto":"Romance is in the air. And so are rose petals apparently.","6":"0","displayorder":"0","7":"","interactiveimages":"","hcs":1.5,"throne":0.01,"credits":"3"}])
Following Strimp099's advice, including header('content-type: application/json; charset=utf-8'); resolved the issue with IE. Appreciate the help!