opera

Catching all JavaScript errors/exceptions on Wii/Opera 9

天大地大妈咪最大 提交于 2020-02-01 03:14:06
问题 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

Chrome, Safari and Opera do not remember password on simple form

萝らか妹 提交于 2020-01-24 10:33:11
问题 I first had the problem with an AJAX login, and after looking for a solution for hours I thought I would try something as simple as this: <html> <head></head> <body> <form id="login_form" action="login.html" method="post"> <input type="text" id="login_username" value="" /> <input type="password" id="login_password" value="" /> <input type="submit" id="login_submit" value="Login" /> </form> </body> </html> It goes to login.html but does not offer to save the password! I thought it might be a

Disable form validation in browser

南笙酒味 提交于 2020-01-22 13:23:30
问题 I'm coding on a website with forms and use HTML5 validation - no rocket science so far. Everything works fine for me in Google Chrome, but I want to get sure that even a IE 6 user with no formvalidation does not insert malformed data into my MYSQL database. Is there any way to turn off the HTML5 form validation in Google Chrome or some other state-of-the-art browser to test the serverside data validation? 回答1: To disable validation in HTML5 use <form method="post" action="/foo" novalidate>...

W3 VALID cross browser css gradient,

淺唱寂寞╮ 提交于 2020-01-15 12:38:06
问题 I am trying to find html conditional statement so that I can reference the required additional .css file. Opera, Ie8, Safari. I am using: background: -moz-linear-gradient(#ADD58A, #FFFFFF); for Firefox which is great. But having other browser css properties causes W3 css validation to fail! I believe with html conditional statements this can be done with valid code. Before you reply, yes I have looked at pie, i do not have the 3 green ticks of validation when using pie, hence wanting to use

HTML5 video MEDIA_ERR_DECODE occurs randomly

泄露秘密 提交于 2020-01-15 05:58:08
问题 I'm developing the project witch contains 6 audio and video elements which plays one after another. The code order before issue is like that: preloading all media resources till "canplaythrough" playing video-1 stoping video-1 and playing audio-1 stoping audio-1 and playing video-1 again. Then the video-1 is playing 2-3 seconds and stops sending the error code 3 (3 = MEDIA_ERR_DECODE - error occurred when decoding). I have tried to play the same video just by link and it is playing fine. Also

jQuery keyup keyCode doesn't work in Opera

让人想犯罪 __ 提交于 2020-01-14 13:58:29
问题 Is it possible that the opera browser ignore the keyCode 40 (arrow down)? $('#test').keyup(function(e) { $('body').append('' + e.keyCode + ''); }) Test it at: http://www.jsfiddle.net/V9Euk/454/ Thanks in advance! Peter 回答1: Try to use the autocomplete attribute, and set it to off : <input id="test" value="" autocomplete="off" > Opera uses the arrow down key for auto completion, and may therefore suppress the forwarding of the event. Working test: http://www.jsfiddle.net/V9Euk/455/ 回答2: Yes,

jQuery keyup keyCode doesn't work in Opera

时光怂恿深爱的人放手 提交于 2020-01-14 13:57:25
问题 Is it possible that the opera browser ignore the keyCode 40 (arrow down)? $('#test').keyup(function(e) { $('body').append('' + e.keyCode + ''); }) Test it at: http://www.jsfiddle.net/V9Euk/454/ Thanks in advance! Peter 回答1: Try to use the autocomplete attribute, and set it to off : <input id="test" value="" autocomplete="off" > Opera uses the arrow down key for auto completion, and may therefore suppress the forwarding of the event. Working test: http://www.jsfiddle.net/V9Euk/455/ 回答2: Yes,

Opera OL bad text align with justify

你离开我真会死。 提交于 2020-01-14 05:16:08
问题 I'm having a problem with justify alignment of list items ( <li> ) in an ordered list ( <ol> ) in Opera . There are different spacings in front of the lines. Opera version: Version: 11.62 Build: 1347 Platform: Win32 System: Windows 7 Screenshots: (reproduced at jsfiddle.com) Test code: http://jsfiddle.net/ySmJZ/ ol { list-style: decimal; margin: 16px 0px; padding: 0px 0px 0px 40px; text-align: justify; } 回答1: It's a known bug in Opera (CORE-41499). There isn't really a workaround, except to

How to move and resize the browser's window in Opera and Chrome?

被刻印的时光 ゝ 提交于 2020-01-11 09:59:54
问题 I was looking for a way to resize and move the browser's window and I've found these: self.resizeTo(w, h) and self.moveTo(x, y) - this seems to work perfectly, but only in Firefox and IE (tested with IE8, I don't know how it works in the previous versions). How can I force the same behavior (resizing and moving) in Opera and Chrome? In these browsers the above solution does not work at all. Just nothing happens and nothing appears in the error console. 回答1: In Opera and Chrome you can use

使用内置DOM方法或原型从HTML字符串创建新的DOM元素

≡放荡痞女 提交于 2020-01-10 12:15:31
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我有一个表示元素的HTML字符串: '<li>text</li>' 。 我想将其附加到DOM中的元素(以我的情况为 ul )。 如何使用Prototype或DOM方法做到这一点? (我知道我可以在jQuery中轻松完成此操作,但不幸的是,我们没有使用jQuery。) #1楼 这也将起作用: $('<li>').text('hello').appendTo('#mylist'); 感觉更像是带有链接函数调用的jquery方式。 #2楼 var jtag = $j.li({ child:'text' }); // Represents: <li>text</li> var htmlContent = $('mylist').html(); $('mylist').html(htmlContent + jtag.html()); 使用 jnerator #3楼 迟了,但只是作为笔记; 可以向目标元素添加一个琐碎的元素作为容器,并在使用后将其删除。 //在chrome 23.0,firefox 18.0(即7-8-9和Opera 12.11)上进行了测试。 <div id="div"></div> <script> window.onload = function() { var foo, targetElement