JavaScript tutorial:
Resource Wizard

 

Resource Wizard helps you decide where your resources are to be located in relation to the document using them.

This is important because a web page tells the browser where to find a resources relative to the web page location.

The Resource Wizard dialog pops up when you are insterting a resource (image, sound, video, etc) into your document, if your resource is not in your document's folder (or one of its sub-folders).

If your site is a small one, the simplest solution is to keep both web pages and resource files in the same folder. If this is the case, use Copy the file to the DOCUMENT folder below.

If your web site is a medium or a large one, it is a good idea to organize your web pages and resources into different folders. We recommend using one of the models below:

Or:

In this case, select Copy to the SELECTED folder below, and browse to the correct folder.

If you do not wish to have duplicates of your resource files and do not intend to publish your site on the Internet, go for the Use the absolute path to the file option.

As the web site grows, the number of web pages in one folder can be so large that it becomes hard to maintain them. In an attempt to organize the pages better, new folders can spring to life, resulting in web pages and resources being in parallel folders the same as or similar to the model below:

In this case, select the Construct a relative path to the file option. Depending on how deep your resource is, JavaScript Editor constructs the relative path to it, similar to the examples below:

    ../Images/MyImage.gif
    ../../Images/MyImage.gif
    ../../../Images/MyImage.gif