Select to view content in your preferred language

JQuery Plugin

1015
4
Jump to solution
10-24-2012 04:07 AM
JorgeVinagre
Deactivated User
HI there
Does anyone tried to build a JQuery plugin on any of the examples of the Samples?
For example a plugin that encapsulates the 'Show x,y coordinates' sample.


Thanks
0 Kudos
1 Solution

Accepted Solutions
derekswingley1
Deactivated User
Hi there
The thing is, the map will be be a part of an ASP.net MVC application in wich most of the interactions between the user and the web app will use JQuery.
So it´s a matter of consistency across the web application. My idea was to leave dojo only for ESRI API internals and JQuery to plugin, plugout site features


That's fair. We don't deal with jQuery nearly as much as we do with Dojo so this forum might not be much help. You're probably better off with other, more general jQuery plug-in development resources (jQuery docs, blogs, Stackoverflow).

View solution in original post

0 Kudos
4 Replies
derekswingley1
Deactivated User
I haven't seen any examples of wrapping any of the stuff from our samples in a jQuery plug-in.

Why not wrap use a Dojo class instead? Refer to our Writing a Class help topic if you haven't worked with those particular Dojo components before.
0 Kudos
JorgeVinagre
Deactivated User
Hi there
The thing is, the map will be be a part of an ASP.net MVC application in wich most of the interactions between the user and the web app will use JQuery.
So it´s a matter of consistency across the web application. My idea was to leave dojo only for ESRI API internals and JQuery to plugin, plugout site features

Thanks
0 Kudos
derekswingley1
Deactivated User
Hi there
The thing is, the map will be be a part of an ASP.net MVC application in wich most of the interactions between the user and the web app will use JQuery.
So it´s a matter of consistency across the web application. My idea was to leave dojo only for ESRI API internals and JQuery to plugin, plugout site features


That's fair. We don't deal with jQuery nearly as much as we do with Dojo so this forum might not be much help. You're probably better off with other, more general jQuery plug-in development resources (jQuery docs, blogs, Stackoverflow).
0 Kudos
JeffJacobson
Frequent Contributor
I've made a few jQuery plug-ins that interact with the ArcGIS JavaScript API

Note that I wrote these before AMD loading was available, so you'll need to do some tweaking if you want to take advantage of AMD.  While the main jQuery library supports AMD, jQuery UI (which I used in my plug-ins) does not.  (There are custom versions of jQuery UI that support AMD on github, though.)

Another project you might want to look at is jQuery Geo.  I haven't used this myself, but it looks like they wrote their own code to read map services (ArcGIS Server among other types) instead of using the ArcGIS JavaScript API.
0 Kudos