JSGen.property

Description

Settings that specify the physical path to which generated JavaScript is published and the URL indicating the location of the generated JavaScript.

Applies to

DataWindow objects

Syntax

Describe and Modify argument:

"DataWindow.JSGen.property { = ' value ' }"

Parameter

Description

property

One of the following:

  • PublishPath

  • ResourceBase

value

(exp) PublishPath – A string that specifies the physical path of the Web site folder to which the DataWindow server publishes the generated JavaScript.

(exp) ResourceBase – A string that specifies the URL of the generated JavaScript for performing client-side XSLT transformation and instantiation of client-side data.

Usage

The PublishPath folder must correspond to the URL specified in the ResourceBase property. At runtime, after the DataWindow server generates JavaScript to the PublishPath folder, it includes it in the final XHTML page by referencing it with the value of the ResourceBase property in a <script> element.


In the painter

On the JavaScript Generation page in the Properties view for the DataWindow object, select XHTML from the Format to Configure list and specify the ResourceBase and Publish Path locations.


In DataWindow .NET

In DataWindow .NET, you can specify the physical directory in which dynamically created files, such as .css, .js, .xml, and .xslt files, and URL references are stored, using the XmlConfigurations.UrlPath property. If you specify a value for XmlConfigurations.UrlPath, it overrides the values set for PublishPath and ResourceBase set in the DataWindow painter.

If you want to specify different paths for each of the different file types or if you want to specify a full path, set the properties in the DataWindow painter and leave the XmlConfigurations.UrlPath property empty in DataWindow .NET.

If you do not set these properties in the DataWindow painter or in DataWindow .NET, the files are saved in the current Web application’s path.

Examples

Example 1

These statements set the JSGen.ResourceBase and JSGen.PublishPath properties:

[Visual Basic]
dw_1.Modify("DataWindow.JSGen.PublishPath=
   'C:\Inetpub\wwwroot\MyWebApp\generatedfiles'")
dw_1.Modify("DataWindow.JSGen.ResourceBase=
   '/MyWebApp/generatedfiles'")