Skip to content

Tag: javascript

Get API data form URL to display

I am trying to build a basic tool to display someones congress representative via zipcode. The API that I am trying to use is offered for free via: https://whoismyrepresentative.com The link to get the info via zipcode is: https://whoismyrepresentative.com/getall_mems.php?zip=31023 It can also be formatted fo…

SweetAlert2 disallow outside click after confirm

I want to create an alert similar to the ajax-example, but allowing outside click dismiss before confirming. After the user clicks confirm I would like to disallow outside click until the operation is finished. Setting the config variable allowOutsideClick to false like in the example will never allow outside…