opera

Python basehttpserver not serving requests properly

 ̄綄美尐妖づ 提交于 2019-12-04 11:45:16
I'm trying to write down a simple local proxy for javascript: since I need to load some stuff from javascript within a web page, I wrote this simple daemon in python: import string,cgi,time from os import curdir, sep import urllib import urllib2 from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer class MyHandler(BaseHTTPRequestHandler): def fetchurl(self, url, post, useragent, cookies): headers={"User-Agent":useragent, "Cookie":cookies} url=urllib.quote_plus(url, ":/?.&-=") if post: req = urllib2.Request(url,post,headers) else: req=urllib2.Request(url, None, headers) try: response

Inaccurate rem units in Opera12 and IE9

 ̄綄美尐妖づ 提交于 2019-12-04 09:13:35
问题 Although I'm not new to the idea of responsive design I have experienced a very troublesome thing... I have decided to completely move to rem units, but I still follow 62.5% rule (I have used it with em ). So for starters: html { font-size: 62.5%; } I assume that 1rem = 10px (I know it's not always true, but hey, it's for me to ease math a little bit, for browser it's still relative right?) Horror starts in Opera ( 12.12 both linux and win version, where default font-size is set to 14px and

Catching all JavaScript errors/exceptions on Wii/Opera 9

扶醉桌前 提交于 2019-12-04 04:57:09
I am updating a site that I've built for the Nintendo Wii, and am looking for a good way to debug the application. Wii's browser (a version of Opera 9.3) does not have any sort of JavaScript console. I was going to use one of the various remote debug console solutions (such as jsconsole.com ), but none of them seem to work. I suspect the reason for this is some sort of unsupported functionality, but I cannot figure out what that is without a console or some sort of error output. Things I've tried: window.onerror ( Not supported until Opera 11.6 ) Overriding the Error.prototype.toString method

window.onfocus not firing in IE7, inconsistent in Opera

旧城冷巷雨未停 提交于 2019-12-04 03:28:16
问题 Note that this relates to focus and blur events on a window, not on form fields. I'm loading a document in a pop-up window, and it includes the following code: <script type="text/javascript"> window.onblur = function(){ document.title="BLURRED"; } window.onfocus= function(){ document.title="FOCUSED"; } </script> These functions are temporary, for testing. I'd hoped to use these events to set a flag indicating the window state; I'm doing a chat app, and if messages come in when it's minimized

Back button fails after window.location.replace(href);

亡梦爱人 提交于 2019-12-04 02:47:08
I made simple function which makes all container behave like link ("a" element). function allHot(element){ $(element) .click( function(){ var href = $(this).find('a').attr('href'); window.location.replace(href); }) .hover( function(){ $(this).css({'text-shadow' : '0px 1px 0px #D6D6D6'}); }, function(){ $(this).css({'text-shadow' : 'none'}); } ); } Function works great. Instead of clicking the "more" button, user can click everywhere on container and is properly redirected. However, if user after redirection clicks back button, browser goes back two steps instead of one as it should. What's

SVG in Opera using CSS background-image with scaling

非 Y 不嫁゛ 提交于 2019-12-04 01:28:48
问题 I'm trying to use an SVG on background-image like: .logo {position: absolute; width: 300px; height: 300px; background-image: url(../img/logo.svg); background-size: 256px 256px; background-repeat: no-repeat;} This works on Safari, Firefox, Chrome, but not on Opera and I don't get the problem. Example Chrome 24: [CHROME](I'm so sorry, I deleted the example from host) Example Opera 12.14: [OPERA](I'm so sorry, I deleted the example from host) UPDATE 1: SVG File <?xml version="1.0" encoding="utf

Mimic Window. onerror in Opera using javascript

假如想象 提交于 2019-12-04 00:58:13
问题 I am currently working on a web application, I have a JS logging mechanism that Handles Javascript error that are not caught by the js code inside the page. I am using window.onerror to catch all such errors and log them else where. However, Problem is with Opera which does not have window.onerror event. one approach I could think of is, to string process all js functions code and insert try catch blocks inside those functions after body load. It does not work in many cases though, But, It at

How do I keep two divs on the same line?

拥有回忆 提交于 2019-12-03 23:19:34
问题 I've been working on a dropdown menu similar to suckerfish. I've got the dropdown side working now, but I have some images I'm trying to put on either side of the links. Right now I'm using a div the size of the image, then setting the background-image property to the image I need (so that it can change using the pseudo :hover class). Here is the CSS That applies: ul#menu3 li { color: #000000; float: left; /*I've done a little playing around here, doesn't seem to do anything*/ position:

print() not working on opera browser

半腔热情 提交于 2019-12-03 22:23:11
问题 I am trying to open a print dialog box in Opera browser using javascript. The print() is working fine in all browsers but in opera it doesn't work. My print() code as, var printContent = document.getElementById(elementId); var windowUrl = url; var uniqueName = new Date(); var windowName = 'Print' + uniqueName.getTime(); var printWindow = window.open(windowUrl, windowName, 'scrollbars=yes'); printWindow.document.write(printContent.innerHTML); printWindow.document.close(); printWindow.focus();

IE and Socket.io compatibility

老子叫甜甜 提交于 2019-12-03 15:49:20
I make some chat example like here: http://psitsmike.com/2011/09/node-js-and-socket-io-chat-tutorial/ When I use Chrome and Firefox everything works like a charm. With IE9 or Opera some socket.io events are not firing (e.g. disconnect) or firing too late, and data receiving is too slow. I installed node.js and socket.io module with the npm method. Please help. Martin Socket.IO works best with websockets. Prior to 2012, most browsers did not support websockets ( source ). With such browsers, socket.io falls back to various polling methods, but those may lead to problems you are experiencing,