opera

will Opera's DragonFly and Extentions still exist in Webkit world?

孤人 提交于 2019-12-01 21:13:56
问题 I just saw that Opera will stop using Presto, and switches to WebKit, so will DragonFly still exists, or this will be replaced by Chrome Inspector? And what about Extensions too! 回答1: There will be no Dragonfly in Opera with WebKit (Blink): https://twitter.com/runeh/status/301616059729969152 回答2: Yes, Opera Dragonfly will still exist. The current beta of Opera 15 includes Web Inspector, however, Opera are porting Opera Dragonfly to Blink. It will be included when ready. Note: I was formally

window.onfocus not firing in IE7, inconsistent in Opera

本小妞迷上赌 提交于 2019-12-01 17:34:36
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 I'll do some attention-getting title changes. If they don't cancel when the window gets focus, though,

Why is text rendered with a greater font-size in Opera?

血红的双手。 提交于 2019-12-01 16:09:21
I'm working on an HTML page that needs to be more or less pixel-perfect, and I noticed that in Opera 10, fonts are rendering larger than they do in other browsers, even though the font-size is effectively the same. Please see this example page in Opera 10 and another browser like Firefox 3.6: http://troy.onespot.com/static/stack_overflow/opera_font_size.html Alternatively, here's a screenshot that illustrates the issue: http://skitch.com/troywarr/d47m1/font-size The red boxes behind the "50px" and "46px" text (both styled to have the corresponding font-size) both have a height of 50px. In

Setting -os-/-ms prefix for background gradient in jQuery fails to work?

自古美人都是妖i 提交于 2019-12-01 07:54:19
问题 I've seen a couple of other posts on here in regards to jQuery .css() not working with -webkit-gradient , however I've yet to find one pertaining to -ms-linear-gradient , -o-linear-gradient and linear-gradient . Long story short, I've created a function which sets a #hex based background gradient for an element using the all the most popular CSS properties for cross-browser compatibility, taken directly from ColorZilla. Here's a look at the particular snippet I'm talking about: $(elem).css({

Spring Boot Security No 'Access-Control-Allow-Origin' header is present on the requested resource Error

≡放荡痞女 提交于 2019-12-01 06:37:47
问题 I'm building a Spring Boot application with Spring Security. I have a delete functionality which is done through AJAX request using JavaScript's Fetch API. The functionality works correctly in Chrome and Firefox, however it causes problem in Opera. As I mentioned, 'No 'Access-Control-Allow-Origin' header is present on the requested resource' error is shown in the console. I searched for it, it was because of CORS, browsers normally doesn't allow AJAX requests to different origins, however

Opera preventDefault() on keydown event

送分小仙女□ 提交于 2019-12-01 06:07:55
I'm trying to embed some keybindings in my webapp, and I'm having hard times with Opera. I have this code: window.onkeydown = function(e){ var key = e.keyCode ? e.keyCode : e.charCode ? e.charCode : false; if (e.ctrlKey && key === 84) { alert("foo"); e.preventDefault(); // return false; } } It works like a charm in Firefox and Chrome, but Opera still opens new tab. Same happens with return false; . My info: Opera/9.80 (X11; Linux i686; U; en) Presto/2.7.62 Version/11.00 Marcel Korpel Opera doesn't support preventDefault on keydown , only on keypress . As you can see in this example , you

How do I prevent IE save file dialog when using fileupload in asp.net mvc

£可爱£侵袭症+ 提交于 2019-12-01 05:18:46
问题 When I try and upload a file using ASP.NET MVC it works fine in FF && Chrome, but in IE and Opera a dialog pops-up which asks me to either download, save or cancel. Choosing either of the options, prevents the fileupload from working. How can I get round this problem? public class ImportModel { [Required] [FileExtensions("csv", ErrorMessage = "Please upload a valid .csv file")] public HttpPostedFileBase File { get; set; } } [HttpPost] public virtual ActionResult StartImport(ImportModel model

JQuery val() does not work for textarea in Opera

回眸只為那壹抹淺笑 提交于 2019-12-01 03:58:47
I am displaying a modal dialog using jQuery. This dialog has a textarea control on it. But while submitting this dialog, the value of this textarea is not recognized by jQuery for some reason: it always comes blank. This works perfectly in other browsers. I put alert to display the value but it looks blank. Can anybody help me in this regards? Controls: <input type="text" id="txtGroupName"/> <textarea rows="3" cols="30" id="txtDescription"></textarea> jQuery code which used this value: var postData = new Object(); postData.GroupName = $('#txtGroupName').val(); postData.Description = $('

Mimic Window. onerror in Opera using javascript

走远了吗. 提交于 2019-12-01 03:47:00
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 least works to some extent. I am sure this approach sucks, But, I could not think of anything better.

Opera preventDefault() on keydown event

六眼飞鱼酱① 提交于 2019-12-01 03:46:40
问题 I'm trying to embed some keybindings in my webapp, and I'm having hard times with Opera. I have this code: window.onkeydown = function(e){ var key = e.keyCode ? e.keyCode : e.charCode ? e.charCode : false; if (e.ctrlKey && key === 84) { alert("foo"); e.preventDefault(); // return false; } } It works like a charm in Firefox and Chrome, but Opera still opens new tab. Same happens with return false; . My info: Opera/9.80 (X11; Linux i686; U; en) Presto/2.7.62 Version/11.00 回答1: Opera doesn't