opera

Cookies not being sent back and forth properly in Opera

天大地大妈咪最大 提交于 2019-11-30 11:07:36
First off, I'm not sure whether this is a problem in Opera 12.01 or not, but the problem only occurs in Opera. I've tested in FF14, Chrome 21, Safari 5 (Windows) and Safari Mac and Webkit browsers on Android and iPhone. My application runs on the trigger.io forge platform and uses a proxy to route requests from the web application to the service. The proxy simply forwards the requests and cookies along and this works as expected in most of the browsers. After inspecting the request in dragonfly, I noticed that the server sends the proper headers in the response, but Opera seems to be ignoring

JavaScript - How can i tell Browser Chrome, Firefox, Safari, to allow me to have the refresh button disabled?

南笙酒味 提交于 2019-11-30 09:47:24
问题 I have logical application running where i need to store the var algorithmToApply=1 or etc ; Where each of my value has relative algorithm assigned. The main problem is while testing people clicking on browser refresh button and all my application logic crash. algorithmToApply = 1 ; // Thinking algorithmToApply = 2 ; // Waiting algorithmToApply = 11 ; // Downloading algorithmToApply = 100 ; // Booting algorithmToApply = 900 ; // Kernel prepare algorithmToApply = 0 ; // User refresh button is

FW: 认识 Iconfont 以及什么是 .eot、.woff、.ttf、.svg

杀马特。学长 韩版系。学妹 提交于 2019-11-30 07:12:52
认识 Iconfont 以及什么是 .eot、.woff、.ttf、.svg 一、Iconfont 1. 概述 在前端作业中,二十年前只有页面中铺满文字就算上线产品,现如今,不加点俏皮的“图标”会让页面显得很 Low 很 Low。 图标 在写这篇文章之前,我一直以为上图中的“图标”是一个个的图片组成,但学习总是给人新知,现在我知道了它们只是一种字体,类似于“宋体”、“楷体”这种。如果我们要使用它们,也只需要在 css 文件中使用 @font-face 引入这种字体即可。@font-face 是 css3 的一个语法,刚兴趣的可以自行阅读 @font-face 用法 。 2. Iconfont 介绍 Iconfont 是阿里提供了一个图标库,你可以想象成是一个售卖图标的超市,挑选你需要的图标放入购物车,然后 Iconfont 会为你打包你购物车里的图标,自动生成一种新的字体,你可以选择下载到本地,在你的项目中引入这种字体,这样即便没有网络的情况也可以使用图标。 这种模式的一大优点就是只挑选出需要的图标,不会像其他图标库那样直接下载一整个图标库的内容,尽管你可能只会使用到其中一到两个图标。要知道,有的项目打包上线对大小是有严格要求的,比如微信小程序打包之后的代码大小就要控制在 1 M以下。 关于如何使用 Iconfont,网络已经有人赘述的很详细了,这里就不再重复。具体步骤参阅:

AJAX技术

你。 提交于 2019-11-30 07:09:48
1.1 准备工作 因为AJAX也需要请求服务器,异步请求也是请求服务器,所以我们需要先写好服务器端代码,即编写一个Servlet! 这里,Servlet很简单,只需要输出“Hello AJAX!”。 public class AServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { System. out .println( "Hello AJAX!" ); response.getWriter().print( "Hello AJAX!" ); } } 1.2 AJAX核心(XMLHttpRequest) 其实AJAX就是在Javascript中多添加了一个对象:XMLHttpRequest对象。所有的异步交互都是使用XMLHttpRequest对象完成的。也就是说,我们只需要学习一个Javascript的新对象即可。 注意,各个浏览器对XMLHttpRequest的支持也是不同的!大多数浏览器都支持DOM2规范,都可以使用: var xmlHttp = new XMLHttpRequest() 来创建对象;但IE有所不同,IE5.5以及更早版本需要

jQuery animate scrolltop on Opera bug

你。 提交于 2019-11-30 06:56:34
Has anyone tried using $(“html, body”).animate({scrollTop:0}, 'slow'); on Opera browser? It does a weird effect especially if you scroll on a long page, it seems like the page go first to the top and then it scroll down to the right point. It is a weird disturbing effect... Is there any workaround to fix it? thanks The attribute was not defined properly in the past. It was introduced by IE, I think, then reverse engineered to be implemented by different user agents. It has been since described in CSSOM (still a working draft). As of today, there is still a bug indeed in Opera which is being in

Where to disable cross-network protection in Opera?

余生长醉 提交于 2019-11-30 05:36:28
问题 In JS security issue with Opera 11.01, after moving from server A to B I learned that opera has some "cross-network" protection. I encountered the same js security problem and I found that Opera 11.10 (“Barracuda”) added a preference to disable cross-network protection. My Opera is 11.50 but I can't find the specific preference. Do I misunderstand the meaning of the "cross-network"? Thanks a lot. 回答1: I believe opera:config#Network|AllowCrossNetworkNavigation is the right preference. 回答2:

js中将字符串转换成json的三种方式

大城市里の小女人 提交于 2019-11-30 05:27:54
使用ajax的开发项目过程中,经常需要将json格式的字符串返回到前端,前端解析成js对象(JSON )。 ECMA-262(E3) 中没有将JSON概念写到标准中,还好在 ECMA-262(E5) 中JSON的概念被正式引入了,包括全局的JSON对象和Date的toJSON方法。 1,eval方式解析,恐怕这是最早的解析方式了。如下: function strToJson(str) { var json = eval('(' + str + ')'); return json; } 记得别忘了str两旁的小括号。 2,new Function形式,比较怪异哦。如下 function strToJson(str) { var json = (new Function("return " + str))(); return json; } 3,使用全局的JSON对象,如下: function strToJson(str) { return JSON.parse(str); } 目前 IE8(S)/Firefox3.5+/Chrome4/Safari4/Opera10 已实现了该方法,以下是部分资料: http://blogs.msdn.com/ie/archive/2008/09/10/native-json-in-ie8.aspx https://developer.mozilla

如何在Html5中添加音频

假装没事ソ 提交于 2019-11-30 03:46:55
Web 上的音频 直到现在,仍然不存在一项旨在网页上播放音频的标准。今天,大多数音频是通过插件(比如 Flash)来播放的。然而,并非所有浏览器都拥有同样的插件。 HTML5 规定了一种通过 audio 元素来包含音频的标准方法。 audio 元素能够播放声音文件或者音频流。 音频格式 当前,audio 元素支持三种音频格式: IE 9 Firefox 3.5 Opera 10.5 Chrome 3.0 Safari 3.0 Ogg Vorbis √ √ √ MP3 √ √ √ Wav √ √ √ 如何工作 如需在 HTML5 中播放音频,您所有需要的是: <audio src="song.ogg" controls="controls"> </audio> control 属性供添加播放、暂停和音量控件 。<audio> 与 </audio> 之间插入的内容是供不支持 audio 元素的浏览器显示的: 实例 <audio src="song.ogg" controls="controls"> Your browser does not support the audio tag. </audio> 上面的例子使用一个 Ogg 文件,适用于Firefox、Opera 以及 Chrome 浏览器。要确保适用于 Safari 浏览器,音频文件必须是 MP3 或 Wav 类型。

Opera (and Chrome) is changing colors of my images! Why ? How to stop that?

别来无恙 提交于 2019-11-30 02:37:55
问题 link to this image : img Firefox shows this image as is. But if I open it with Opera Gray colors is different instead if I download it and open with any editor. Why ? Here is how opera shows me my image : Here is true image colors : More picture (Just wondering) How to make my png shows native in all browsers. (as like as on FireFox or IE or Windows picture viewer) 回答1: According to Photoshop, the image contains a embedded color profile "LG L245WP". This will natually make the colors

《HTML+CSS3权威指南》笔记摘要

拈花ヽ惹草 提交于 2019-11-29 17:39:41
主要是想借助这个平台让大家给我学习途中的错误和不好的地方给与纠正。 我会努力最短时间内完成更新,如果发现有错别字或者Code错误,请指出。 信息:建议使用Opera10以上或者Google浏览器测试代码。本代码都没有测试过,不保证正确性。因为公司电脑没有支持HTML5的浏览器,而且代码全部记事本编写。 《HTML5+CSS3权威指南》 机械工业出版社 陆凌牛 著 目录 第一章 Web时代的变迁 第二章 HTML5和HTML4的区别 第三张 HTML5的结构 第四章 表单与文件(待) 第五章 绘制图形(待) 第六章 多媒体播放(待) 第七章 本地存储(待) 第八章 离线应用程序(待) 第九章 通信API(待) 第十章 使用Web Workers处理线程(待) 第十一章 获取地理位置信息 -----------------------------------[CSS3部分]--------------------------------- 第十二章 CSS3讲述(待) 第十三章 选择器(待) 第十四章 使用选择器在页面中插入内容(待) 第十五章 文字和字体相关样式(待) 第十六章 盒相关样式(待) 第十七章 与背景和边框相关样式(待) 第十八章 CSS3中的变形处理(待) 第十九章 CSS3中的动画功能 第二十章 布局相关样式(待) 第二十一章 Media Queries相关样式(待)