Hi All:
I have a .js file with client functions. I am trying to call the function for client events of PDVDynPage. I am wondering how to include the js file with the PDVDynPage.
I have tried the following code in ProcessBeforeOutput event.
IPortalComponentRequest request = ((IPortalComponentRequest) getRequest());
IPortalComponentResponse response = (IPortalComponentResponse) this.getResponse();
IPortalComponentContext context = request.getComponentContext();
IResource jsResource = request.getResource(IResource.SCRIPT, request.getWebResourcePath()+"/scripts/myscript.js");
response.include(request, jsResource);
I did not work.
Any leads would be great.
cheers
-srini
Add a comment