How to trigger an update function when page reloaded

How to trigger an update function when page reloaded

isicong@163.comisicong@163.com Posts: 3Questions: 2Answers: 0
edited May 2017 in Free community support

Hi in the server side, I would like to execute this:

#

<?php

editor
->on ("(syntax for page reloading)", function($editor, $id, $values) {
// my own function to update a specific field
}

<?php > ?>
#

My goal is to update a particular field every time my database is updated.
This field has nothing to do with any data submitted in the form.
It counts the number of files I have in a folder.

This question has an accepted answers - jump to answer

Answers

  • bindridbindrid Posts: 730Questions: 0Answers: 119
    Answer ✓

    Why would you not call that function from your sever side ajax handler function for your paging?

  • isicong@163.comisicong@163.com Posts: 3Questions: 2Answers: 0

    Hi bindrid,
    Could you be more specific?
    I am having trouble activate the function when the page reload is triggered.

This discussion has been closed.