3 Managing Required Script Files

This chapter discusses the Oracle WebCenter WSRP Producer for .NET script files (jquery-1.3.2.min.js and msPortletResizeHelper.js.)

3.1 Managing Required Script Files

The Oracle WebCenter WSRP Producer for .NET makes use of two files: jquery-1.3.2.min.js and msPortletResizeHelper.js. By default, these files are made into WSRP resources. Unlike other javascript files, portlet content transformation rulesets (described in Section 2.2, "Portlet Content Transformation Rulesets") are not applied to these files. To take advantage of browser caching of javascript you may wish to deploy these required scripts to a web server, such as Apache.

To override the default behavior, add the jQueryExternalURL and msResizeHelperExternalURL .NET application settings keys, as shown in Example 3-1 below, to the Oracle WebCenter WSRP Producer for .NET's Web.config file.

Example 3-1 .NET Application Settings Keys

      <add key="jQueryExternalURL" value="http://myhost.mycompany.com/path/jquery-1.3.2.min.js"/>
     <add key="msResizeHelperExternalURL" value="http://myhost.mycompany.com/path/msPortletResizeHelper.js"/>