3 Managing Required Script Files

This chapter discusses jquery-1.3.2.min.js and msPortletResizeHelper.js files.

3.1 Managing Required Script Files

The 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 any 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, to the web.config file of your WSRP Producer for .NET.

Example 3-1 .NET Application Settings Keys

<appSettings>
      <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"/>
</appSettings>