Home > SAP Enterprise Portal > SAP Portal how do I reference a Javascript file?

SAP Portal how do I reference a Javascript file?

5 December, 2006

Easy when you know how

request = (IPortalComponentRequest)this.getRequest();
response = (IPortalComponentResponse)this.getResponse();
IResource jsResource = request.getResource(IResource.SCRIPT, “scripts/myscript.js”);
response.addResource(jsResource);
Advertisements
Categories: SAP Enterprise Portal
%d bloggers like this: