id, string or integer was expected with eval()
<p>I get a strange error in IE.. but no problems in both FF and chrome</p>

<p>when I alert the variable I get this:</p>

<pre><code>json_post('delete_accounting', 'json.action.php?action=delete_accounting', 'id=682', 'rtn_accounting', {tr_id:'tr_acc682', enc_id:374, delete:1});
</code></pre>

<p>but when I want to eval() the sting I get this error (the error is translated from danish, so I don't know how it is put in english?)</p>

<pre><code>id, string or integer was expected
</code></pre>

<p>EDIT:</p>

<pre><code>var xmlhttp = {};
function json_post(request_var, response, get_str, callback_function, callback_var)
{
    request_var += Math.floor(Math.random()*999).toString();

    CNSTR.mouseLoader.cnstr();

    if(window.XMLHttpRequest) xmlhttp[request_var] = new XMLHttpRequest();
    else if(window.ActiveXObject) xmlhttp[request_var] = new ActiveXObject('Microsoft.XMLHTTP');

    xmlhttp[request_var].open('POST', response, true);
    xmlhttp[request_var].setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlhttp[request_var].onreadystatechange = function()
    {
        if(xmlhttp[request_var].readyState == 4)
        {
            CNSTR.mouseLoader.dstr();

            if(callback_function) eval(callback_function+'('+xmlhttp[request_var].responseText+(callback_var ? ', callback_var':'')+')');
        }
    }
    xmlhttp[request_var].send(get_str);
}
</code></pre>

<p>I'm quite sure that the error occurs in the eval() because when I run the sting as real code there are no problems..</p>

<p>like this:</p>

<pre><code>json_post('delete_accounting', 'json.action.php?action=delete_accounting', 'id=682', 'rtn_accounting', {tr_id:'tr_acc682', enc_id:374, delete:1});
</code></pre>

<p>I have also tried to escape everything in the callback function rtn_accounting(), and still the same error in the same line with the eval()</p>
