WELCOME TO THE CITY

WELCOME TO THE CITY

 

WELCOME TO THE CITY

Expanding and Promoting the Kingdom of Jesus Christ as Lord
10943 MONCRIEF DINSMORE RD JACKSONVILLE FL 32219 9044474916

 

 

 

 

 

*** Upcoming Events Schedule ***

 

 

var sendReq = getXmlHttpRequestObject(); var receiveReq = getXmlHttpRequestObject(); var lastMessage = 0; var mTimer; //Function for initializating the page. function startActiveBlock() { //Start Recieving Messages. getActiveBlockText(); } //Gets the browser specific XmlHttpRequest Object function getXmlHttpRequestObject() { if (window.XMLHttpRequest) { return new XMLHttpRequest(); } else if(window.ActiveXObject) { return new ActiveXObject("Microsoft.XMLHTTP"); } else { document.getElementById('p_status').innerHTML = 'Status: Cound not create XmlHttpRequest Object. Consider upgrading your browser.'; } } //Gets the current messages from the server function getActiveBlockText() { if (receiveReq.readyState == 4 || receiveReq.readyState == 0) { var randomnumber=Math.floor(Math.random()*101); receiveReq.open("GET", 'http://myflock2.com/cgi-bin/footer_im_online_get_json.pl?churchid=church5612&im_user_name=Guest388883&last_id=' + lastMessage + '&rand=' + randomnumber, true); receiveReq.onreadystatechange = handleReceiveActiveBlock; receiveReq.send(null); } } function handleReceiveActiveBlock() { if (receiveReq.readyState == 4) { //Get a reference to our activeblock container div for easy access var activeblock_div = document.getElementById('div_activeblock'); //Get the AJAX response and run the JavaScript evaluation function //on it to turn it into a useable object. Notice since we are passing //in the JSON value as a string we need to wrap it in parentheses var response = eval("(" + receiveReq.responseText + ")"); for(i=0;i < response.messages.message.length; i++) { activeblock_div.innerHTML = response.messages.message[i].text; lastMessage = response.messages.message[i].id; } mTimer = setTimeout('getActiveBlockText();',15000); //Refresh our activeblock in 15 seconds } } //This function handles the response after the page has been refreshed. function handleResetActiveBlock() { document.getElementById('div_activeblock').innerHTML = ''; getActiveBlockText(); } function ringbell(callercallee) { //callercallee format is caller_name2callee_name var calling=callercallee.split(":"); var caller=calling[0]; var callee=calling[1]; question = confirm('You are being paged by ' + caller + '. Would you like to chat with them? disable pop-up blockers'); if (question != '0'){ window.open('im_room.pl?churchid=church5612&caller=' + caller + '&callee=' + callee, 'NewWin', 'toolbar=no,location=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=640,height=480'); } else { window.open('im_clear_call.pl?churchid=church5612&caller=' + caller + '&callee=' + callee, 'NewWin', 'toolbar=no,location=yes,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=50,height=50'); } }