opera

FB.login callback not working on Opera Mobile browser

时间秒杀一切 提交于 2020-01-02 17:13:09
问题 I am testing our web application on OPera Mobile. We have a signIn through facebook link. It takes me to the login page, but after I enter my ID and password nothing happens. If I click on the login button mutliple times, it gives me too many failed attempts error. But after this my facebook account seems to be logged in. If I login to facebook and come back to our application and click on login, nothing happens, I see a blank page. After I did Javascript debug, I could see that the FB.login(

Svg image does not show in Firefox

ε祈祈猫儿з 提交于 2020-01-01 08:06:12
问题 Inside a simple SVG element I have an image. Chrome: Version 28. - works perfect Firefox: 22.0 - no image is drawn Opera: 12.16 - image is show 4 times larger than normal Code: <svg width="500px" height="500px" viewBox="0 0 70 70"> <image x="0" y="0" width="10" height="10" id="knight" xlink:href="/images/knight.svg" /> </svg> 回答1: Your SVG is not being scaled to fit your 10x10 image rectangle because it has no viewBox. SVG renderers need to know the dimensions of the SVG content in order to

How do I make Opera upload files like other browsers?

为君一笑 提交于 2020-01-01 07:23:21
问题 When uploading one file using <input type="file" /> in Opera, it works as expected. That is, you find the expected file data in $_FILES in PHP server side. However, when I try to upload several files at once using Opera, by setting <input type="file" min="1" max="999" /> then all the files' contents are glued together in one long string and sent as POST data. All the files in this string are separated by headers such as this: ------------94QV8HRqBwta8NY4L2WH0r Content-Disposition: form-data;

IE and Socket.io compatibility

↘锁芯ラ 提交于 2020-01-01 05:16:48
问题 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. 回答1: Socket.IO works best with websockets. Prior to 2012, most browsers did not support websockets (source). With such browsers,

How does Gmail do comet on Opera?

六月ゝ 毕业季﹏ 提交于 2019-12-31 10:00:36
问题 I would like to know how Gmail (or anyone else) does comet on Opera. Here is what I know so far from my experiments. It doesn't use the event-source tag which is broken in Opera 10.51. It doesn't use iframe which displays a spinning throbber and a busy mouse cursor. It doesn't use responseText on xmlhttprequest when readyState = 3 which is known to be broken on Opera. I tried seeing how it was done in mibbit and etherpad, and I found that they both use long-polling. Bounty The bounty goes to

拉伸和缩放CSS背景

醉酒当歌 提交于 2019-12-29 18:03:02
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 有没有办法让CSS中的背景拉伸或缩放以填充其容器? #1楼 另一个很好的解决方案是Srobbin的Backstretch,它可以应用于身体或页面上的任何元素 - http://srobbin.com/jquery-plugins/backstretch/ #2楼 SolidSmile作弊的另一个提示是通过设置宽度并使用auto作为高度来缩放(按比例调整大小)。 例如: #background { width: 500px; height: auto; position: absolute; left: 0px; top: 0px; z-index: 0; } #3楼 这就是我所做的。 在拉伸类中,我只是将高度更改为 auto 。 这样你的背景图片总是与屏幕的宽度相同,高度总是大小合适。 #background { width: 100%; height: 100%; position: absolute; margin-left: 0px; margin-top: 0px; z-index: 0; } .stretch { width:100%; height:auto; } #4楼 试试这个 http://jsfiddle.net/5LZ55/4/ body { background: url(http:/

Do latest Chrome / Opera get srcset wrong?

别来无恙 提交于 2019-12-29 07:44:23
问题 I'm working on a page that has the following markup: <img alt="" src="/banner_home.300x200.jpg" srcset="/banner_home.300x200.jpg 320w, /banner_home.600x400.jpg 480w, /banner_home.728x242.jpg 768w, /banner_home.920x306.jpg 960w, /banner_home.1234x400.jpg 1280w"> and it seems that in the latest Chrome & Opera, they ignore whatever the screen size is and just output whichever file is listed last (so the 1234x400.jpg in my case). Using Picturefill, Firefox and Safari both show the correct image

Javascript Run Function After Page Load

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-29 07:18:12
问题 I'm trying to create a small automation script in Javascript that I want to run with a site using Opera's User Script feature to define external scripts to run. I have used this feature before to run scripts I wrote with external sites, to nice effect. I need to wait till the page loads for the script to run, but I can't seem to get this to work. The code currently is: if (addEventListener in document) { // use W3C standard method document.addEventListener('load', meerfirst(), false); } else

Print iframe content in Opera and Chrome

扶醉桌前 提交于 2019-12-28 06:36:06
问题 I'm trying to print iframe content. contentWindow.focus(); contentWindow.print(); This code works in IE, Firefox and Safari. But don't work in Chrome and Opera. These browsers print entire page. I tried to use this topic How do I print an IFrame from javascript in Safari/Chrome. But it didn't help me. Could someone help me? 回答1: This is a known bug in Opera. In addition to the above ideas for workarounds, you may want to play with something like this: var clone=document.documentElement

favicon必须是32x32或16x16吗?

白昼怎懂夜的黑 提交于 2019-12-26 21:28:58
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我想使用单个图像作为常规的图标和iPhone / iPad友好的图标。 这可能吗? 如果链接到常规浏览器图标,iPad友好的72x72 PNG会不会缩放? 或者我是否必须使用单独的16x16或32x32图像? #1楼 对于IE, Microsoft建议在favicon.ico文件中打包16x16,32x32和48x48 。 对于iOS, Apple建议使用特定的文件名和分辨率 ,对于运行iOS 8的最新设备,最多为180x180。 Android Chrome主要使用清单,也依赖于Apple touch图标。 Windows 8.0上的IE 10需要PNG图片和背景颜色 , Windows 8.1和10上的IE 11接受在名为 browserconfig.xml 的专用XML文件中声明的几张PNG图片 。 用于Mac OS X的Safari El Capitan为固定标签引入了SVG图标 。 其他一些平台寻找具有各种分辨率的PNG文件,例如 Google TV 的 96x96图片 或 Opera Coast 的 228x228图片 。 请查看此 favicon图片列表 以获取完整参考。 TLDR:这个 favicon生成器 可以一次生成所有这些文件。 生成器也可以实现为 WordPress插件 。 完全披露