My JQuery template working with drag and drop code template

628
1
09-25-2014 01:50 PM
AlexGole
Occasional Contributor II

Hi all,

I have a pretty general/complex question:

My script is here

I am trying to re-use the drag and drop code here . within my own JQuery. All I see that is needed are modules and then "mapCanvas" ID to hook up drophandler with the map canvas in html, and the script of course. But I keep getting errors such as "TypeError" (on is undefined) and such. I copied and pasted the template code to my app. What should I modify to make the drag and drop work in my template??

Any tip or advice is welcome.

Thank you,

Alex

Tags (2)
0 Kudos
1 Reply
JonathanUihlein
Esri Regular Contributor

My advice is to create a smaller sample of the drag and drop, without all of your extra application code.

When you get it to work on a smaller scale, and understand *how* it works, it should be easier to implement in your main application.

That TypeError is very clear in describing an eventing issue.

Copy and pasting large chunks of code and expecting it to work is not recommended or feasible in an already-large application.

0 Kudos