cross-browser

The height of the code-mirror block are not the same in Chrome and Safari

倖福魔咒の 提交于 2019-12-04 23:18:31
I want to make a layout that satisfies the following conditions: 1) it has a block on the top whose height is up to its content 2) below it has a code-mirror and a block side by side, which fill in exactly the rest of the page in terms of height . I have made a plunker here. The problem is it works well in Chrome 57.0.2987.133 , whereas it does NOT work well in Safari 10.1 : the height of the code-mirror is NOT enough; it shows only 76 lines of the code rather than the correct 80 lines. Does anyone know how to fix this? <style> .rb { display: flex; flex-direction: column; height: 100%; } .rb

Why does my form not upload files in Internet Explorer 9?

微笑、不失礼 提交于 2019-12-04 22:37:45
Welcome to episode 32,342,343 of "Why does Internet Explorer Suck So Much?" ... I've seen lots of reports that IE9 does a crappy job uploading files. Apparently it has lots of caveats about when it will or won't work (If someone has a definitive list I'd love to see it). However, most of the problems/solutions I see have found are related to javascript, usually the jQuery form plugin or something similar. My form is not submitted via AJAX and the the file input field is not hidden or obscured with css. Yet, I get several support tickets per day from users on IE9 trying to submit the form and

What is the best service for cross-browser screen shots?

☆樱花仙子☆ 提交于 2019-12-04 21:52:31
I have a website that I'd like to monitor for display problems in various browsers (mainly Internet Explorer.) I know that browsercam.com and broswershots.org provide this as a service. Could anyone recommend the best way/service to do this? I have used browsershots.org. Internet Explorer is very populair and there are long waiting lists for IE versions. Most of the time you will not see your screenshot before your 30 minutes will expire. You can try www.litmussapp.com. They have software which checks css. oeps typo: it should be www.litmusapp.com I like Adobe Browserlab , even though it's

Print iframe in IE

亡梦爱人 提交于 2019-12-04 21:31:32
问题 I have a button that loads a report for print into an "invisible" iframe inside a div and prints that iframe; the user presses a button to print the report (contained on a different page) without changing pages or any visual disruption aside from the print dialog. It works in Chrome and Firefox but not IE. In IE the parent page is printed in full, and a tiny messed up iframe is inserted at the bottom of the page (where I'm loading the iframe). Here's the empty div without content, it's there

How can i send data from chrome extension to localhost?

最后都变了- 提交于 2019-12-04 20:15:14
I am creating a google chrome extension to read my History of browser. All works done. Now i am willing to send the retrieved history data to my localhost server . Is this possible? How to do this? Please anyone help me. Thanks in advance. Simply post your data to localhost server. Just remember to add permission in manifest.json. { "manifest_version": 1, "name": "Your Extension", ... "permissions": [ .... "http://localhost:1234/" ] } Second version would be via app network in Chrome https://developer.chrome.com/apps/app_network But this requires more low level programming. The basic steps

chrome setSelectionRange() not work in oninput handler

可紊 提交于 2019-12-04 19:38:57
问题 I'm working with some auto-completion code. setSelectionRange() is used to select text been completed in oninput event handler. It works at least in Firefox 14, but not in Chrome(6, 17). Simplified code snippet demonstrating the problem is like this: <input type='text' oninput='select()' /> function select(e){ var s = this.value; if (s.length) this.setSelectionRange(s.length-1, s.length); } I debugged the code in chrome, and it turns out that text has been selected at first right after the

problems with socket.io on IE8 and 9

为君一笑 提交于 2019-12-04 18:29:27
Socket.io works perfectly on every platform except IE8 and 9, which is a client requirement. could you guys help with this issue? i've been reading all similar issues but most of the solutions i found till now can't solve this problem on IE8. here's the structure: SERVER-SIDE var ip = 'xxx.xxx.xxx.xxx'; var ipPort = '8081'; var app = require('http').createServer(handler); var io = require('socket.io')(app); var fs = require('fs') app.listen(ipPort, function() { //console.log('Listening at: http://'+ ip +':'+ ipPort +''); }); //io.set('transports', ['websocket','flashsocket', 'htmlfile', 'xhr

How cross browser is backbone.js?

丶灬走出姿态 提交于 2019-12-04 18:17:24
问题 We are working with several browser types - on web, mobile, tablet and smart-tv. We are looking into backbone.js for our mvc. Is there any known cross browser limitations of backbone.js? 回答1: I think this has less to do with Backbone then it has to do with the HTML and CSS you use. You can see a list of mobile uses of Backbone here: http://backbonejs.org/#examples. jQuery is commonly used together with Backbone and has a great track record of browser compatiblity. Check that out here: http:/

What cross-browser JavaScript libraries exist? [closed]

橙三吉。 提交于 2019-12-04 18:15:30
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I'm gearing up to do some Ajax style client-side JavaScript code in the near future, and I've heard rave reviews of jQuery when it

Why doesn't this script work with successive page clicks?

纵饮孤独 提交于 2019-12-04 18:12:27
I am currently using the following script in Tampermonkey in Google Chrome: // ==UserScript== // @name Youtube opt in Ads per channel // @namespace schippi // @include http://www.youtube.com/watch* // @version 1 // ==/UserScript== var u = window.location.href; if (u.search("user=") == -1) { var cont = document.getElementById("watch7-user-header").innerHTML; var user=cont.replace(/.+\/user\//i,'').replace(/\?(?:.|\s)*/m,''); window.location.href = u+"&user="+user; } It seems to work perfectly in Firefox with Greasemonkey but in Google Chrome, it seems that it only works on the first click on a