PHP Classes

File: WIMembers/WICore/WIJ/WIListings.js

Recommend this page to a friend!
  Classes of Jules Warner   WICMS   WIMembers/WICore/WIJ/WIListings.js   Download  
File: WIMembers/WICore/WIJ/WIListings.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WICMS
Database driven content management system with PDO
Author: By
Last change:
Date: 7 years ago
Size: 898 bytes
 

Contents

Class file image Download
$(document).ready(function(){ var ajax_call = function() { var userId = $(".modal-header").attr('id'); $.ajax({ url: "WICore/WIClass/WIAjax.php", type: "POST", dataType: "json", data: { action : "checkrequest", userId : userId }, success: function (result) { // var res = JSON.parse(result); //console.log(res); if( result.status == 'requested' ){ $("#modal-debate-request").css("display", "block"); $("#details-body").html(result.msg); }else if( result.status == 'not_requested' ) { $("#modal-debate-request").css("display", "none"); } } }); }; var X = 0.5; var interval = 1000 * 60 * X; // where X is your every X minutes setInterval(ajax_call, interval); }); var WIListings = {};