Page 1 of 1

Button to make Api call

Posted: Thu Feb 01, 2018 9:57 am
by Alphadek
Is it possible to maken a button by wysiwygwebbuilder to make a Api call to a site (HTTP Get).

Like

http://<ipadress>/<password>/sw/5/on

When i now make an button the action is done but the browser change to te respose page. I dont want that.

Re: Button to make Api call

Posted: Thu Feb 01, 2018 10:20 am
by Pablo
yes, you can add a link to a button.

Re: Button to make Api call

Posted: Thu Feb 01, 2018 10:34 am
by Alphadek
Hi Pablo,

Yes i know, butt when i press the button. The webpage wil follow the link en display de response of the API. I want to stay on the button page.

Re: Button to make Api call

Posted: Thu Feb 01, 2018 10:39 am
by Pablo
In that case you will have to implement a AJAX call.
For example:
http://api.jquery.com/jquery.ajax/

Note that this is unrelated to WWB.