Skip to:
Content
Pages
Categories
Search
Top
Bottom

Make a AJAX button to call a function


  • MilliR
    Participant

    @millir

    I want to create a “Refresh” button that when clicked, calls a custom function that get’s data via API and inserts it in DB. The function I made is working well. The data is displayed via xprofile_field in member profile header. Even the button is there.

    I just want to know how to make a AJAX button that calls my custom function, say my_get_data_api(); ? Currently I have it as it is, i.e automatically runs when someone views profile, which is very counter-productive as the data only occasionally needs to be updated.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Make a AJAX button to call a function’ is closed to new replies.
Skip to toolbar