My Oracle Support Banner

Javascript file with Alert not Executed From WebCenter Portal (Doc ID 2917803.1)

Last updated on MARCH 27, 2023

Applies to:

Oracle WebCenter Portal - Version 12.2.1.4.0 and later
Information in this document applies to any platform.

Symptoms

Javascript file with Alert is not executed from WebCenter Portal.
Other Javascript files can be executed without issue.


STEPS

The issue can be reproduced with the following steps:

  1. Create a Javascript file that calls an alert.
    e.g.:
     
    myFunction.js
     
     
     
     
  2. Upload the html file to WebCenter Portal.

    • Go to the Documents page of the portal where the Javascript file was uploaded.
       

    • Upload the TestAlert.html file.
       

    • Select the TestAlert.html file and click "Get Link" to get the document links.
       

    • Note down the file additional link.
      It should look like this:
       
      http://<HOST>:<PORT>/webcenter/content/conn/WebCenterSpaces-ucm/path/Enterprise Libraries/PortalTest/TestAlert.html

  3. Open a new browser window and enter the html document URL.  Notice the alert does not work. 

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.