Forum Stats

  • 3,853,848 Users
  • 2,264,287 Discussions


js not working in webcenter 12c .. when we upload or share path in pages

Pradeep-India Member Posts: 6 Blue Ribbon
edited Jan 13, 2020 9:18AM in WebCenter Portal

js and jquery not working in webcenter 12c ... how to share path in html in new pages ..

i have an script it is working on webcenter 11g but not in 12c...

<!DOCTYPE html>

<html lang="en">


    <meta charset="utf-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->


    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->

    <script src="/webcenter/content/conn/UCMConnection/path/Enterprise%20Libraries/JStest/jquery-2.1.4.min.js"></script>

    <script src="/webcenter/content/conn/UCMConnection/path/Enterprise%20Libraries/JStest/snowfall.jquery.min.js"></script>

    <!-- Bootstrap -->


    <style media="screen">


        font-size: 18px;




        background: #2C1A33;

color: #965B5B;


    .santa {

        position: fixed;

        bottom: 10px;

        right: -500px;


    .xmas-tree {

        position: fixed;

        bottom: -20px;

        right: 5px;




<body class="well">

<script type="text/javascript">

    $(document).ready(function() {

        var windowWidth = $(document).width();

        var santa = $('.santa');

        santa_right_pos = windowWidth + santa.width();

        santa.right = santa_right_pos;

        $(document).snowfall({flakeCount : 100, maxSpeed : 5, maxSize : 5});

        function movesanta(){

            santa.animate({right : windowWidth +  santa.width()},15000, function(){










    <!-- Include all compiled plugins (below), or include individual files as needed -->





  • Daniel Merchán
    Daniel Merchán Enterprise Achitect Member Posts: 2,192 Gold Trophy
    edited Jan 13, 2020 9:18AM


    The code is confusing at your end, your code looks like a full HTML page instead of a WebCenter Page.

    What do you need exactly?

    A way of sharing the Current Page in an Oracle WebCenter Page?

    A way of sharing the Page in a HTML Markup?

    Depending on the answers may I can provide the required support.

    Note: Yes, JS Works in WCP 12c too

    Kind regards.