I've been trying to use Nliu's TOC today. I've followed a few examples and looked through the threads here, but I'm totally stumped on why my code isn't working.
My service is definitely working. It contains one layer. You can substitute any known service, but while the service shows in the map, it does not show in the TOC.
I've made sure the dijits/functions are called in the correct order. I've seen other examples use the online source for AGSJS so I can't see how that's an issue.