--- loncom/interface/loncommon.pm 2007/08/30 20:26:50 1.564.2.3 +++ loncom/interface/loncommon.pm 2007/08/24 18:41:06 1.568 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.564.2.3 2007/08/30 20:26:50 albertel Exp $ +# $Id: loncommon.pm,v 1.568 2007/08/24 18:41:06 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1084,6 +1084,63 @@ sub changable_area { =pod +=item * resize_textarea_js + +emits the needed javascript to resize a textarea to be as big as possible + +creates a function resize_textrea that takes two IDs first should be +the id of the element to resize, second should be the id of a div that +surrounds everything that comes after the textarea, this routine needs +to be attached to the for the onload and onresize events. + + +=cut + +sub resize_textarea_js { + return <<"RESIZE"; + +RESIZE + +} + +=pod + =back =head1 Excel and CSV file utility routines @@ -7309,14 +7366,6 @@ sub lonhttpdurl { my ($url)=@_; my $lonhttpd_port=$Apache::lonnet::perlvar{'lonhttpdPort'}; if (!defined($lonhttpd_port)) { $lonhttpd_port='8080'; } - - # IE doesn't like a secure page getting images from a non-secure - # port (when logging we haven't parsed the browser type so default - # back to secure - if ((!exists($env{'browser.type'}) || $env{'browser.type'} eq 'explorer') - && $ENV{'SERVER_PORT'} == 443) { - return 'https://'.$ENV{'SERVER_NAME'}.$url; - } return 'http://'.$ENV{'SERVER_NAME'}.':'.$lonhttpd_port.$url; }