marcus.bush

Failing to run dojo parser, AMD style, in MVC?

Discussion created by marcus.bush on Nov 20, 2013
Hello, I'm using the JS API in an MVC app, and when I do the code in AMD style:
require([
 ...
  "dojo/parser",
  ... 
], function (
   ... parse,...
) {
    parser.parse();...

The app fails and I get: "0x800a1391 - JavaScript runtime error: 'parser' is undefined"

Some details, this code is in a separate javascript file and not in script tags in the MVC layout page, and is being ran after the ESRI JSAPI.  My IDE is Visual Studios 2012.

Anyone have any ideas?  (This works fine in its own HTML page in the app.)

Thank you ahead of time for any considered replys!

Outcomes