Take the 2-minute tour ×

this part of code works in all browsers but not in IE. Can you help me fix this?

function getData(userId, instrumentId, minStep) {
    alert(1); // worked!
    console.log(userId, instrumentId, minStep);
        type: "POST",
        url: '/controllers/ajax.php',
        data: "instrument=" + instrumentId + '&user=' + userId,
        dataType: 'json',
        cache: false,
        success: function(msg) {
            alert(2); // doesn't work
            document.getElementById("chart").dataFromJS(msg, minStep); // "chart" - id of flash player object loaded using swfobject
share|improve this question
When you say it doesn't work in IE, what's the error or problem? –  JcFx Oct 12 '12 at 15:51
I'd start by getting rid on console.log as that's not supported in IE. –  NoobsArePeople2 Oct 12 '12 at 17:15
add comment

1 Answer

up vote 1 down vote accepted

I had a similar problem and it was something really stupid, at least after I realized what was. Try to don't use console.log in IE... maybe will be the same, good luck ;)

share|improve this answer
add comment

Your Answer


