--- interfaces/opera7.pm 2006-05-01 02:55:46.000000000 -0700 +++ interfaces/opera7.pm 2007-02-04 19:07:52.780825000 -0800 @@ -301,7 +301,7 @@ CGI:IRC - Loading - + @@ -787,7 +787,7 @@ } function send_make(data) { - var xmlhttp = 0 + var xmlhttp = xmlhttp_new() if(xmlhttp) { try { @@ -884,9 +884,41 @@ var i = new Image(); i.src = "$config->{script_form}?R=$cgi->{R}&cmd=quit"; } +function xmlhttp_new() { + if(window.XMLHttpRequest) + xmlhttp = new XMLHttpRequest() + else if (window.ActiveXObject) + xmlhttp = new ActiveXObject("Microsoft.XMLHTTP") + return xmlhttp +} + +function xmlhttp_send(xmlhttp, data) { + var send = ""; + xmlhttp.open("POST", "$config->{script_form}", 1) + xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded; charset=utf-8") + xmlhttp.onreadystatechange = post_results + data.R = "$cgi->{R}"; + data.xmlhttp = 1; // should be header (needs client.cgi proto changes...) + for(var i in data) + send += i + "=" + escape(data[i]).replace('+', '%2b') + "&" + xmlhttp.send(send) + return false +} + +function post_results() { + if(xmlhttp.readyState < 4) + return + + if(xmlhttp.status != 200) { + var w = window.open() + w.document.write(xmlhttp.responseText) + w.document.close() + return + } +} // --> - + @@ -894,7 +926,7 @@ - + @@ -923,10 +955,11 @@ print < - + @@ -999,7 +1032,7 @@ // --> - + @@ -1227,13 +1260,14 @@ //--> - +
+
EOF if($ENV{HTTP_USER_AGENT} !~ /Mac_PowerPC/ && (!exists $config->{disable_format_input} || !$config->{disable_format_input})) {