• Hi,

    I am using custom scripts defined in the MyCalendar Script page. These execute fine when the calendar is first displayed. However my scripts are doing some runtime modifications on event details, and I need them to run also when we change page like going to the next/prev. month. However the scripts won’t run in this case. How can I do to run scripts every time the calendar displays a new page? Thanks.

    https://ww.wp.xz.cn/plugins/my-calendar/

Viewing 1 replies (of 1 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    Generally, this means your custom scripts aren’t attached to a live event. If you reference the standard scripts, you’ll see that all the events are attached using a pattern with .on( 'click'. If you just use .click(), then the pattern won’t be available after an AJAX load.

    See the documentation here: http://api.jquery.com/on/

Viewing 1 replies (of 1 total)

The topic ‘Script execution on page change’ is closed to new replies.