Is there a way to retrieve the module path in Drupal 7 from which a .js file was loaded?
Although JS is primarily a front-end language, is it possible that Drupal includes this information within the Drupal object?
Essentially, I am trying to achieve something similar to the following:
$('#selectable_html').load("selectable_html.html");
However, due to Drupal's dynamic page construction, this request ends up translating to
"http://___/node/add/selectable_html.html"
, which obviously does not work.