So I need some serious help as I've created a new project that seems to be working well but I need to convert it to AMD. I think it is half AMD and half old style. I see this as a huge undertaking on my part as this is still all really new to me but I would like to be up to date. Can someone take a look at this code and help me get started. I'm willing to purchase an alcholic beverage or two to someone who can do this for me. I could pay this dept up at the ESRI conference. I think this would be simple for those of you who code in Javascript all of the time.
i've attached a zip file of both legacy and AMD versions of 3 different applications that are a little more complicated than I used for my blog. hope you find reviewing them helpful.
Thanks, John, for posting that. A few comments-
Your ZIP file contains three samples but only one (ed_multipleAttrInspector) is actually legacy and AMD. Most likely a copy/paste error but the other two samples are both AMD despite what the file name says.
As for the one sample that does include both, it's helpful but still simplistic and pared down. I'm thinking something more along the lines of the JavaScript Viewer or Finder application template. One of my apps uses the Highchart JS library for charting, another library for date/time manipulation, and another for just general JS related functions. They all have their own Javascript source files. How do I incorporate these into AMD style code?
That's what I mean when I say that the official ESRI samples are on the simplistic side.
Thanks for all of the help. I looked at the zip file as well and noticed Steve was right about only one file truely being a legacy file. I'm almost done with my conversion. One issue with the TOC but I thought that deserved a new thread.