Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Javascript no longer working after upgrade to Apex 5.1

Jeff99Dec 22 2016 — edited Jan 2 2017

Hi,

I've upgraded my instance to apex 5.1 and thus far I'm very happy with it.  However, I had some small customization's I did to my calendar that no longer work. 

These 2 customization's are on the same calendar page and did the following:

  1. Refreshed it every so often
  2. Showed the times when the Day View is displayed on my events

So, the below is what/where my Javascript is (Which is combined with some Dynamic Actions, if it should be somewhere else in 5.1 please let me know (everything worked great in 5.0).  If anyone can nudge me in the right direction it would be greatly appreciated.

Function and Global Variable Declaration

---------------------------------------------------------

function refreshCalendar() {

  $("#refreshbutton span.t-Icon").addClass("fa-spin");

  window.setTimeout(function() {

    $("#teamcalendar_calendar").fullCalendar("refetchEvents");

    window.setTimeout(function() {

      $("#refreshbutton span.t-Icon").removeClass("fa-spin");

    }, 1000);

  }, 50);

}

Execute when Page Loads

--------------------------------------

$("#teamcalendar_calendar").fullCalendar('option','height',670);

var periodicrefresh = setInterval(function() {

                                    refreshCalendar();

                                  }, 120000);

/*

The below code shows the time in the week view.

*/

              

$(".fc-agendaDay-button").click(function() {

    $s("P193_VIEW","Day");

});

$(".fc-agendaWeek-button").click(function() {

    $s("P193_VIEW","Week");

});

$(".fc-month-button").click(function() {

    $s("P193_VIEW","Month");

});

$(".fc-list-button").click(function() {

    $s("P193_VIEW","List");

});

HTML Header

-------------------

<script language="JavaScript" type="text/javascript">

function f_setItem (pItem)

{

  var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=dummy',&APP_PAGE_ID.);

  get.add(pItem,$x(pItem).value)

  gReturn = get.get();

  get = null;

}

</script>

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 30 2017
Added on Dec 22 2016
3 comments
463 views