Uname: Linux webm005.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User: 6036 (villadal)
Group: 100 (users)
Disabled functions: NONE
Safe mode: On[ PHPinfo ]
//home/villadal/www/old/booked/Web/////scripts      ( Reset | Go to )
File Name: ajax-helpers.js
Edit
function ajaxPost(formElement, url, onBefore, onAfter) {
    $.ajax({
        type:'POST',
        data:formElement.serialize(),
        url:url,
        cache:false,
        beforeSend:function () {
            if (onBefore) {
                onBefore();
            }
        }
    }).done(function (data) {
                if (onAfter) {
                    onAfter(data);
                }
            });
}

var ajaxGet = function (url, onBefore, onAfter) {
    $.ajax({
        type:'GET',
        url:url,
        cache:false,
        beforeSend:function () {
            if (onBefore) {
                onBefore();
            }
        }
    }).done(function (data) {
                if (onAfter) {
                    onAfter(data);
                }
            });
};

All system for education purposes only. For more tools: Telegram @jackleet

Mr.X Private Shell

Logo
-
New File | New Folder
Command
SQL