Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6089385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:05:39+00:00 2026-05-23T12:05:39+00:00

It works on Chrome and every other browser, just not IE, I’ve made an

  • 0

It works on Chrome and every other browser, just not IE, I’ve made an example below:

http://develop.davzy.com/test1.php

(talking about IE 8, I’m not sure if it runs okay in 9)

When I run the JSON request I get an error that says Object expected. THis occurs 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>

And here is an example of the JSON it returns (the callback is working fine, ignore the ? this is from http://davzy.com/cache/api/rarevalues.php?callback=?&search=petal)

    ?([{"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"}])

Strimp099 was correct, I needed header(‘content-type: application/json; charset=utf-8’); for my IE to treat it as JSON. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:05:40+00:00Added an answer on May 23, 2026 at 12:05 pm

    Strimp099 was correct, I needed header(‘content-type: application/json; charset=utf-8’); for my IE to treat it as JSON. Thanks!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

wmode=opaque for flash object works in chrome but not in IE9. when I open
For whatever reason, lowercase 'o's are invisible in my textarea. Every other letter works
THE EXAMPLE First and foremost, here's my code and problem: http://www.nathanstpierre.com/MBX/showoff.html THE ISSUE So
Hello stackoverflow community, I have some code that works on virtually every browser except
I have this CSS3 animation that works in Chrome .circle-label-rotate { -webkit-animation-name: rotateThis; -webkit-animation-duration:.5s;
I have a simple function that works in chrome, but in Internet explorer (9)
In this fiddle when user drags a div auto scroll works in chrome but
When using HTML custom attributes it doesn't works in Chrome. What I mean is,
There are several resources out there that explain how the sandbox in Chrome works
I have this in my JavaScript var identifier = event.target.id; it works on Chrome

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.