would this work
Code:
//Submit Data
function submitData(pageId, data, type) {
type = typeof(type) != 'undefined' ? type : 'GET';
//passedData = typeof(passedData) != 'undefined' ? passedData : '';
$(document).ready(function()
{
message();
$.ajax({
type: type,
data: data+'&pageId='+pageId,
url: 'ajax/includes/content.php',
cache: false,
success: function(data){
$('#content_holder').html(data);
remove_message();
}
});
});
return false;
}
Run this on a timer???
|