Is there any way to get the path to the drupal (7) module from which .js was loaded?
I know JS is an interface, but maybe Drupal passes this information in a Drupal object?
Basically I want to do something like this:
$('#selectable_html').load("selectable_html.html");
But since Drupal builds pages on the fly, this request is converted to "http://___/node/add/selectable_html.html" , which is clearly incorrect.
NoRiM source share