Allows adding an embeddable resource like an image, CSS or JS file or other file to be stored and then served as a WebResource url of the application.
To use this functionality you call
Server.AddResource() to add images, .js, .css, .htm files etc. to the resource pool which is stored in Server.oResources. You can then retrieve these Resources via Server url by calling:
.wwd is your application's script map. WebResources is available on any Process class implementation.
Note this approach causes extra hits on your Web Connection server and it's more expensive to serve requests this way than letting the Web Server manage the resources and caching. Returning reseources is efficient - they are cached internally and maximum caching is applied in the browser.
The Id by which the Resource can be retrieved. Should be unique and preferrably a single non-spaced string.
The actual content of the resources in string format. The content can be binary such as an image, or text like a .js or .css file.
See also:Class wwServer | wwProcess::WebResource
Comment or report problem with topic