Hi,
I'm in the process of adding a new functionality to my plugin which requires displaying custom HTML/Javascript inside Wiki pages.
It is a GWT project and I have all the files generated by GWT inside a subfolder inside static directory. The entry point is a javascript file which processes some parameters and then calls another .html file to display my content. For this to work, the initial JS file should be able to access the other files in its folder (using relative path), like in a normal web server environment. (I have done the exact same thing on a plugin for another Wiki platform. Also, when I host and serve the GWT files on my own web server and change the URLs inside the Fogbugz plugin to refer location of my hosted files, it displays fine inside Fogbugz Wiki pages).
I have read the documentation on IPluginStaticJS interface and am in the process of implementing it but without success so far. I'm actually confused by its usage and would be grateful if additional info could be provided for following questions:
Is it possible to include non .js files inside public string[] StaticJSFiles() method? If I specify all files inside my static folder/subfolders here, would the js files be able to access other files using relative path?
How exactly do I access the files once they are defined inside the implementation class. If I add js/custom_message.js file to the array of files, how do I access this file, say for example using a URL?
Is there any way to access a file inside the static folder of a plugin using a direct URL? Right now I use http://server/fogbugz/default.asp?pg=pgPluginStatic&ixPlugin=37&sFilename=fileName to refer these. But when using this notation it seems files cannot access other files in the same directory tree using relative path.
I would be very grateful if you could help me with the above. Thanks in advance.