1

This is how my request is looking right now. If i acces directly the server url it works. It's returning the needed data. In Chrome and Firefox works flawless. In IE it doesn't. The request is successful but the returned json is null. It does the same thing in Firefox 3.0 as in IE.

$.ajax({
                        type: "POST",
                        url: "http://www.tpltm.ro/dbm/index.php?r=routes/get&type=4e60922f2eb58",
                        cache: false,
                        contentType: "application/json; charset=utf-8",
                        dataType : "json",
                        success: function(msg) {
                          console.log(msg);
                               createMenu(msg);
                        },
                        error: function() {
                               console.log("Error: ajaxRequest");
                        }
                 });
2
  • 3
    Are you going cross domains? Then you need to use JSONP. If not, why use full path? Commented Oct 21, 2011 at 12:10
  • Try URL encoding that forward-slash in the r query parameter, eg r=routes%2Fget Commented Oct 21, 2011 at 12:11

1 Answer 1

1

Are you sure the problem isn't simply the 'console.log(msg);' which would cause IE to silently fails before executing the 'createMenu' function ?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.