Relative URL paths for image and javascript resources

In R5 I have images and javascript files in the list of Image Resources which I reference using 1 forward slash and then the alias as part of an HTML source statement (src=“/javascript_file” or src=“/image_file”). This has always worked perfectly.

In D6, I have simply moved the javascript file to the File Resources section and tried exactly the same thing. However, neither the images or the javascript can be found.

The minimum amount of information that appears to be required to access any resource is the directory(s), database name and the resource name (“dir/db/resource”) where the directory is immediately below the data directory. I’m going to have to change numerous code situations now and make them more complex (marginally I admit) so I can retrieve the path and db name in order to get at the resources.

Why has this changed or am I missing something?

Thanks,

Chris

Subject: Relative URL paths for image and javascript resources

We had a similar problem where we loaded (in R5) javascript files with the name extension ‘.js’ located in the list of image resources.With R6 this stopped working.

The solution we found was to move the javascript files to the script libraries, renaming them without the name extension ‘.js’ an loading them afterwards without the name extension.

Hope this helps,

Tobias