FisUserTest

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • FisUserTest
    Participant

    <p>This code is written in jQgrid.js file. however, sometime there is condition which evaluate by below code and sometimes json object. when we use the filters of jqgrid…below code runs an fails, if we use — return JSON.parse(obj), as you suggested earlier. if possible can we have a call?</p><p>//if(eval(match)){results.push(this);}–commented in new version|</p><p>if ($.jgrid.runCode.call($t, match.replace(/this/g, JSON.stringify(this)) ) ) {results.push(this);}</p><p>//opts.alsoResize = eval(‘(‘ + optstest + ‘)’); // the only way that I found to do this</p>

    • This reply was modified 7 months, 2 weeks ago by FisUserTest.
    FisUserTest
    Participant

    <p>That code does not work, if the filters are enabled.</p><p>below code fails to execute -</p><p>————————————————————————————–</p>

    1. //if(eval(match)){results.push(this);}<br />if ($.jgrid.runCode.call($t, match.replace(/this/g, JSON.stringify(this)) ) ) {results.push(this);}

    <p>————————————————————————————–</p><p>2. //opts.alsoResize = eval(‘(‘ + optstest + ‘)’); </p><p>opts.alsoResize = $.jgrid.runCode(optstest);</p>

    • This reply was modified 7 months, 2 weeks ago by FisUserTest.
    • This reply was modified 7 months, 2 weeks ago by FisUserTest.
Viewing 2 replies - 1 through 2 (of 2 total)

Stay connected with us in your favorite flavor!