Load SC from javascript

Hey All,

Looking for how to (re)load the data coming from server connect, triggered by a callback.

Specifically, this code works fine and is part of a broader script:

$.post('/dmxConnect/api/banks/addBank.php', {
       public_token: public_token, 
        metadata: metadata
        }, function(result) {alert(result);
});

Rather than the displaying an alert (just in here for testing,) I would like to refresh this connection:

    <dmx-serverconnect id="scGetBanks" url="dmxConnect/api/banks/getBanks.php"></dmx-serverconnect>

In other words, user adds a bank, refresh the list of banks.

Appreciate any help you can provide!

–Ken

Community Page
Last updated: