| | |
| | | if ((this.env.action=='add' || this.env.action=='edit') && this.gui_objects.editform) |
| | | this.enable_command('save', true); |
| | | |
| | | this.enable_command('list', 'add', 'ldappublicsearch', true); |
| | | this.enable_command('list', 'add', true); |
| | | |
| | | this.enable_command('ldappublicsearch', this.env.ldappublicsearch); |
| | | |
| | | break; |
| | | |
| | | |
| | |
| | | this.display_message(this.pending_message[0], this.pending_message[1]); |
| | | |
| | | // start interval for keep-alive/recent_check signal |
| | | if (this.kepp_alive_interval) |
| | | this.kepp_alive_int = setInterval(this.ref+'.'+(this.task=='mail'?'check_for_recent()':'send_keep_alive()'), this.kepp_alive_interval); |
| | | if (this.kepp_alive_interval && this.task=='mail' && this.gui_objects.messagelist) |
| | | this.kepp_alive_int = setInterval(this.ref+'.check_for_recent()', this.kepp_alive_interval); |
| | | else |
| | | this.kepp_alive_int = setInterval(this.ref+'.send_keep_alive()', this.kepp_alive_interval); |
| | | }; |
| | | |
| | | |
| | |
| | | console(request_obj.responseText); |
| | | |
| | | // if we get javascript code from server -> execute it |
| | | if (request_obj.responseText && (ctype=='text/javascript' || ctype=='application/x-javascript')) |
| | | eval(request_obj.responseText); |
| | | if (request_obj.get_text() && (ctype=='text/javascript' || ctype=='application/x-javascript')) |
| | | eval(request_obj.get_text()); |
| | | |
| | | // process the response data according to the sent action |
| | | switch (request_obj.__action) |
| | |
| | | |
| | | else if(this.xmlhttp.readyState == 4) |
| | | { |
| | | this.responseText = this.xmlhttp.responseText; |
| | | this.responseXML = this.xmlhttp.responseXML; |
| | | |
| | | if(this.xmlhttp.status == 0) |
| | | this.onabort(this); |
| | | else if(this.xmlhttp.status == 200) |
| | |
| | | return this.xmlhttp.getResponseHeader(name); |
| | | }; |
| | | |
| | | this.get_text = function() |
| | | { |
| | | return this.xmlhttp.responseText; |
| | | }; |
| | | |
| | | this.get_xml = function() |
| | | { |
| | | return this.xmlhttp.responseXML; |
| | | }; |
| | | |
| | | this.reset(); |
| | | |