by Garth | Oct 5, 2022 | Javascript, Vue JS
axios.post(‘/your-url-or-api-destination’, payload) .then((response) => { // Show Success Message this.$bvToast.toast(‘Terms and Conditions Saved’, { title: ‘Success’, variant: ‘success’, solid: true }); })...
by Garth | Nov 11, 2021 | Javascript, PHP
When you write your script and save it, it will not automatically run. You must load the file first. After loading the file the cronjob will continue running automatically. <script type=”text/javascript”> // Cron Timer (Set run timer)...
by Garth | May 7, 2021 | Javascript, Jquery
$(document).on(“click”,”tr”,function(){ var projectId = $(this).attr(“data-projectId”); $(this).nextAll(“tr:eq(0)”).toggle(500); $(this).nextAll(“tr:eq(1)”).toggle(500);...
by Garth | Apr 29, 2021 | Javascript, Jquery
$(“#debtor-customer-filter”).on(‘submit’, function(e) { e.preventDefault(); var data = new FormData(this); $(“#debtors-table”).DataTable().destroy(); $(“#debtors-list”).load(“debtor/filterCustomerDebtorById”,...
by Garth | Nov 24, 2020 | Javascript
INTRO JS https://introjs.com/example/hello-world/index.html Wizard steps are managed with simple HTML attributes data-step=”1″ data-intro=”This is a tooltip for wizard step 1!”data-step=”2″ data-intro=”This is the second...
by Garth | Nov 9, 2020 | Javascript
In the Ajax submits you will see a variable. formdata The below snippet is what you must append to the top of your Ajax call to initiate the variable Otherwise you need to change the variable to what ever you are targeting. var formdata = new FormData;...