gunnarflax 0 Junior Poster

Hi, I'm trying to create a javascript plugin but the problem is that the users of the plugin will most likely keep the plugin in another folder than me. So my options is to either let the user set in the plugin's directory in a variable into the javascript itself or to let the javascript detect where it's located by itself. And it's the latter I want to be able to do. I need this because I have images and other files related to the script which I want to be able to reach and I can't get the location of the folder (the location object can't fetch the scripts directory, only the html document's).

Any help appreciated!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.