wordpress - javascript for stopped working -


this how script appeared in wordpress visual editor , database. has been working fine until pm.

if (xmlhttp.readystate==4) {   if ( xmlhttp.status==200)      {        document.getelementbyid("droptargethere").innerhtml=xmlhttp.responsetext;        var svg = document.getelementbyid("droptargethere").childnodes;        for(var = 0; < svg.length; i++) {          var element = svg[i];          if (element.localname == "div") {            var rect = element.offsettop;            var retid = element.id;            updtable (retid , rect , "../wp-admin/custom/");          }        }      } 

but viewing source in browser looks this, corrupted. after statement 1 continuous line.

if (xmlhttp.readystate==4) {   if ( xmlhttp.status==200)      {        document.getelementbyid("droptargethere").innerhtml=xmlhttp.responsetext;        var svg = document.getelementbyid("droptargethere").childnodes;        for(var = 0; < svg.length; i++) {               var element = svg[i];               if (element.localname == "div") {                 var rect = element.offsettop;                 var retid = element.id;                 updtable (retid , rect , "../wp-admin/custom/");               }             }           } 

further investigation showed following line seems cause issue

for(var = 0; < svg.length; i++)  

tried re-keying, while.., do...while makes no difference.

also appears not "if" statements. frustrating

anyone got ideas, due demonstrate client in morning , cannot see way round it.

thanks


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -