| | |
| | | document.getElementById('pageContent').innerHTML = o.responseText; |
| | | }, |
| | | failure: function(o) { |
| | | alert('Ajax Request was not successful.'); |
| | | alert('Ajax Request was not successful.'+pagename); |
| | | } |
| | | } |
| | | |
| | |
| | | loadContent(parts[1]); |
| | | //redirect = parts[1]; |
| | | //window.setTimeout('loadContent(redirect)', 1000); |
| | | } else if (o.responseText.indexOf('LOGIN_REDIRECT:') > -1) { |
| | | // Go to the login page |
| | | document.location.href = 'index.php'; |
| | | } else { |
| | | document.getElementById('pageContent').innerHTML = o.responseText; |
| | | } |
| | |
| | | var pageContentObject = YAHOO.util.Connect.asyncRequest('GET', 'content.php?s_mod=login&s_pg=index', pageContentCallback); |
| | | |
| | | loadMenus(); |
| | | keepalive(); |
| | | |
| | | } |
| | | |
| | |
| | | alert('Sorry. There was an error.'); |
| | | } |
| | | |
| | | function del_record(link) { |
| | | if(window.confirm("<tmpl_var name='delete_confirmation'>")) { |
| | | function del_record(link,confirmation) { |
| | | if(window.confirm(confirmation)) { |
| | | loadContent(link); |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | var pageContentObject2 = YAHOO.util.Connect.asyncRequest('GET', pagename, itemContentCallback); |
| | | } |
| | | |
| | | function keepalive() { |
| | | var pageContentCallbackKeepalive = { |
| | | success: function(o) { |
| | | setTimeout( keepalive, 1000000 ); |
| | | }, |
| | | failure: function(o) { |
| | | alert('Sorry. There was an error.'); |
| | | } |
| | | } |
| | | |
| | | var pageContentObject3 = YAHOO.util.Connect.asyncRequest('GET', 'keepalive.php', pageContentCallbackKeepalive); |
| | | //setTimeout( keepalive, 1000000 ); |
| | | } |