Commit 5f67275b authored by Markus Bergt's avatar Markus Bergt

added more update stuff

parent 5d26dcb4
$(document).ready(function() { $(document).ready(function() {
setInterval(function(){ setInterval(function(){
var obj = $.get( "update.php", function( data ) { $.get( "update.php", function( data ) {
alert( "Data Loaded: " + data ); UseData(data);
}); });
}, 3000); }, 3000);
function UseData(data){
var obj = jQuery.parseJSON(data);
alert(obj.newMessages);
}
$('#showRegBtn').click(function(){ $('#showRegBtn').click(function(){
$('#loginCol').hide(); $('#loginCol').hide();
$('#registerCol').show(); $('#registerCol').show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment