JavaScript runtime error: 'init' is undefined

1867
2
Jump to solution
08-31-2016 11:08 AM
jayshukla
New Contributor III

Hi All, I am getting this error while implementing map/legend in an existing ASP.NET application. As a proof of concept, I have a section on the page that shows map with the control. While debugging in IE in Visual Studio 2013 I get this error but Google chrome handles it without any problems. Appreciate any feedback. 

Thanks

Jay

ArcGIS API for JavaScript Sandbox 

0 Kudos
1 Solution

Accepted Solutions
thejuskambi
Occasional Contributor III

Please share more code so that we can take a look at the implementation. The screen shot of error is not helping much.

just by looking at the second image, it feel like the init function is within the require and you are trying to access it outside the require.

View solution in original post

2 Replies
thejuskambi
Occasional Contributor III

Please share more code so that we can take a look at the implementation. The screen shot of error is not helping much.

just by looking at the second image, it feel like the init function is within the require and you are trying to access it outside the require.

jayshukla
New Contributor III

Hi Thejus, The init function was out of require block and that was causing this issue, it's all good now. Thanks for your help. Jay

0 Kudos