I have finally managed to splice together the directions and closestFacility tasks, but I now get a new proxy error, and I can't trace down what is causing it. I am able to get both the directions and closestFacility examples to work on the site using the same url's, but for some reason when they come together they throw the error: "esri.config.defaults.io.proxyUrl is not set. If making a request to a CORS enabled server, please push the domain into esri.config.defaults.io.corsEnabledServers". You can see this in action at the site below, and if you f12 in chrome you can see the error. Has anyone else encountered this or have an idea as to how I might solve this? Any help would be greatly appreciated.
Flood HIPPO