Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

Lines of code are not executed in the order they are written... Why?

$
0
0

I have the following fragment of code:


<script>

  someGrid = new dhtmlXGridObject('someGridContainer');
  // additional someGrid settings...

  someGrid.loadXML("url", function () {
    console.log('inside loadXML');
  });
  console.log('after loadXML');

</script>

 

 

If I run it on my local PC, I will receive:

inside loadXML

after loadXML

 

But when executing this within MII, I will receive:

after loadXML

inside loadXML

 

Why?


Viewing all articles
Browse latest Browse all 4841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>