opera

How do I keep two divs on the same line?

大憨熊 提交于 2019-12-01 02:11:24
I've been working on a dropdown menu similar to suckerfish. I've got the dropdown side working now, but I have some images I'm trying to put on either side of the links. Right now I'm using a div the size of the image, then setting the background-image property to the image I need (so that it can change using the pseudo :hover class). Here is the CSS That applies: ul#menu3 li { color: #000000; float: left; /*I've done a little playing around here, doesn't seem to do anything*/ position: relative; /*margin-bottom:-1px;*/ line-height: 31px; width: 10em; padding: none; font-weight: bold; display:

JQuery val() does not work for textarea in Opera

為{幸葍}努か 提交于 2019-12-01 01:21:21
问题 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

print() not working on opera browser

泪湿孤枕 提交于 2019-12-01 00:34:37
I am trying to open a print dialog box in Opera browser using javascript. The print() is working fine in all browsers but in opera it doesn't work. My print() code as, var printContent = document.getElementById(elementId); var windowUrl = url; var uniqueName = new Date(); var windowName = 'Print' + uniqueName.getTime(); var printWindow = window.open(windowUrl, windowName, 'scrollbars=yes'); printWindow.document.write(printContent.innerHTML); printWindow.document.close(); printWindow.focus(); printWindow.print(); I want to open print dialog box in Opera browser. Can anyone help me? In Opera,

Standards on behaviour of nested labels

喜欢而已 提交于 2019-11-30 23:50:28
问题 I was wondering what would happen if I'd nest 2 <label> tags, and it turns out, in all the most recent versions of all browsers, except for Opera , clicking the inner label results in only that label being clicked. Here's a demo of nested label tags' behaviour. My question is: Are there any standards on the behaviour of browsers when handling click events in nested labels? All I could find was this MDN section about Gecko's behaviour, but I couldn't find anything about the other browsers. The

Where to disable cross-network protection in Opera?

蹲街弑〆低调 提交于 2019-11-30 22:28: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. I believe opera:config#Network|AllowCrossNetworkNavigation is the right preference. Nowadays Opera is based on chromium, so you shoud use chromium way to disable SOP and process requests without CORS

Disable doubleclick event for an element in Opera

安稳与你 提交于 2019-11-30 18:57:09
问题 Is there a way to disable (with CSS, JS or jQuery) double-click for a given element? The problem with Opera is that it displays a menu when I click on an element too fast. Note that I know how to disable this for me. I'd like to be able to disable this for all user that use the script. The buttons in question are "next"/"previous" buttons and I use input type image for them, but the same happens with "a". 回答1: It turended out I need this: /** Disable text selection by Chris Barr, of chris

what input field type forces the number pad mobile keyboard to come up when focused?

十年热恋 提交于 2019-11-30 16:26:25
问题 I tried the <input type="number" /> but on Opera that outputs a strange input box coupled with an "up and down" handler. What I expected was a regular text field that once you focus on it prompts the number keyboard instead of the alphabets. Is that even possible? p.s. I'm not trying to validate. It would be a nice user experience, that's all. 回答1: type="number" is HTML5 and many phones do not support HTML5 . For call link you can use type="tel" or <A href="wtai://wp/mc;600112233">Special A<

How to remove button outline in Opera on focus

三世轮回 提交于 2019-11-30 14:02:00
Does anybody know how to remove the dotted outline on buttons in Opera? I have done it. Here you go: http://jsbin.com/oniva4 . [tested on Opera 10.5/11] The secret is using outline-offset:-2px; (effectively covering the dots) and the background's color for the outline. outline-offset is supported since version 9.5. The introduction of the article Do not lose your focus For many web designers, accessibility conjures up images of blind users with screenreaders, and the difficulties in making sites accessible to this particular audience. Of course, accessibility covers a wide range of situations

SSE(EventSource): why no more than 6 connections?

感情迁移 提交于 2019-11-30 13:19:39
问题 I wanted to see how many simultaneous SSE (aka EventSource) connections I could setup, before overloading my machine. But testing with Firefox (Firefox 18 or Firefox 20) it stopped at 6 connections: the additional connections give no error, but do not send any data. (In Firebug I can see them there, waiting to connect.) Chromium 25 also stopped at 6 connections, and so did Opera 12.15. But it does not seem to be a server-side limit (I'm using Apache + PHP), as I could run all three browsers

Rails ( set_no_cache method) Cannot disable browser caching in Safari and Opera

丶灬走出姿态 提交于 2019-11-30 11:59:40
After using Devise for my authentication, I found that there was a security hole in that, after the user logs out, the session variables are preserved. This allows anyone to press the back button and access the logged in user's previous screen. I looked at these posts Num 1 Num 2 Num 3 I added these lines to my application_controller before_filter :set_no_cache def set_no_cache response.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate" response.headers["Pragma"] = "no-cache" response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT" end In the _form.html.erb I