Custom Module AJAX URL
Jamroom Developers
1. They are created when a module has a javascript file added in its init function
2. Just like your example, but replace jrProfile_url with sdModule_url (assuming your module is called sdModule)
3. You don't need to do anything except add the parameter so the router can do its job.
In your module javascript file you create your url before your ajax function:
var url = core_system_url + '/' + sdModule_url + '/my_custom_view/__ajax=1';
Create your view (named view_sdModule_my_custom_view) in your module index.php (look at view_jrProfile_get_pulse_counts in jrProfile index.php as an example). The view needs to encode and return its data using jrCore_json_response($_your_array) - just pass your array in and Jamroom does the rest.