Problem making REST Web Service Call from Internet Explorer 8 to a 4.5 DotNet JSON returning WS

I wrote some Javascript code (see below) that calls a Dotnet V4.5 RestWeb Service that returns JSON. I get an error that shows the callback=JQuery plus a number. In the IE8 Developer Tools Console I can see the JSON content when I click on the error message. Would anyone know how to write this call so the return might be processed?

Thanks!



Error from the IE 8 Developer Tools Console:

Expected ';'  Version?callback=jQuery1910006037671125178057_1379537897000&_=1379537897001, line 1 character 16

Javascript Code:
function getHelloAjax(){
	//Works in Firefox/Chrome but not IE
	$.ajax
    ({
        type: "GET",
        url:  "http://myurl",
        contentType: "application/javascript; charset=utf-8",
        dataType: "jsonp",
        jsonpCallback: "MyCallBack",
        async: true,
        error: function(err) {
            alert("Error!");
            document.getElementById("myie8").innerHTML = err.responseText;
            console.log("error:" + err);
        }
    });
}

function MyCallBack(data) {
    alert(data);
}

Open in new window

mattjankowskiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

leakim971PluritechnicianCommented:
you've error in your json data, perhaps a useless comma
if you need more help you must post the data you receive or the URL line 6
0
Julian HansenCommented:
What is being returned?
0
mattjankowskiAuthor Commented:
Thank you for your comments. Here is the return:
{"ErrorMessage":"","Version":"JSONHelloCSharp"}
0
leakim971PluritechnicianCommented:
It must return :

MyCallBack({"ErrorMessage":"","Version":"JSONHelloCSharp"})
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.