| | |
| | | |
| | | redirect = ''; |
| | | |
| | | function reportError(request) { |
| | | /* Error reporting is disabled by default as some browsers like safari |
| | | sometimes throw errors when a ajax request is delayed even if the |
| | | ajax request worked. */ |
| | | |
| | | /*alert(request);*/ |
| | | } |
| | | |
| | | function loadContentRefresh(pagename) { |
| | | var pageContentCallbackRefresh = { |
| | | success: function(o) { |
| | | document.getElementById('pageContent').innerHTML = o.responseText; |
| | | }, |
| | | failure: function(o) { |
| | | alert('Ajax Request was not successful.'+pagename); |
| | | reportError('Ajax Request was not successful.'+pagename); |
| | | } |
| | | } |
| | | |
| | |
| | | loadMenus(); |
| | | }, |
| | | failure: function(o) { |
| | | alert('Ajax Request was not successful.'); |
| | | reportError('Ajax Request was not successful.'+module); |
| | | } |
| | | } |
| | | var submitFormObj = YAHOO.util.Connect.asyncRequest('GET', 'capp.php?mod='+module, cappCallback); |
| | |
| | | loadMenus(); |
| | | }, |
| | | failure: function(o) { |
| | | alert('Ajax Request was not successful.'); |
| | | reportError('Ajax Request was not successful.110'); |
| | | } |
| | | } |
| | | |
| | |
| | | }, |
| | | failure: function(o) { |
| | | var parts = o.responseText.split(':'); |
| | | alert('Ajax Request was not successful.'); |
| | | reportError('Ajax Request was not successful. 111'); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | }, |
| | | failure: function(o) { |
| | | alert('Ajax Request was not successful.'); |
| | | reportError('Ajax Request was not successful. 112'); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | }, |
| | | failure: function(o) { |
| | | alert('Ajax Request was not successful.'); |
| | | reportError('Ajax Request was not successful. 113'); |
| | | } |
| | | } |
| | | |
| | |
| | | */ |
| | | }, |
| | | failure: function(o) { |
| | | alert('Ajax Request was not successful.'); |
| | | reportError('Ajax Request was not successful. 114'); |
| | | } |
| | | } |
| | | |
| | |
| | | document.getElementById('sideNav').innerHTML = o.responseText; |
| | | }, |
| | | failure: function(o) { |
| | | alert('Ajax Request was not successful.'); |
| | | reportError('Ajax Request was not successful. 115'); |
| | | } |
| | | } |
| | | |
| | |
| | | document.getElementById('topNav').innerHTML = o.responseText; |
| | | }, |
| | | failure: function(o) { |
| | | alert('Ajax Request was not successful.'); |
| | | reportError('Ajax Request was not successful. 116'); |
| | | } |
| | | } |
| | | |
| | |
| | | document.pageForm.next_tab.value = tab; |
| | | submitForm('pageForm',target); |
| | | } |
| | | |
| | | |
| | | |
| | | function reportError(request) |
| | | { |
| | | alert('Sorry. There was an error.'); |
| | | } |
| | | |
| | | function del_record(link,confirmation) { |
| | | if(window.confirm(confirmation)) { |
| | |
| | | document.getElementById(elementid).innerHTML = o.responseText; |
| | | }, |
| | | failure: function(o) { |
| | | alert('Ajax Request was not successful.'); |
| | | reportError('Ajax Request was not successful. 118'); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | }, |
| | | failure: function(o) { |
| | | alert('Ajax Request was not successful.'); |
| | | reportError('Ajax Request was not successful. 119'); |
| | | } |
| | | } |
| | | var pageContentObject2 = YAHOO.util.Connect.asyncRequest('GET', pagename, itemContentCallback); |
| | |
| | | setTimeout( keepalive, 1000000 ); |
| | | }, |
| | | failure: function(o) { |
| | | alert('Sorry. There was an error.'); |
| | | reportError('Session expired. Please login again.'); |
| | | } |
| | | } |
| | | |