opera

Print iframe content in Opera and Chrome

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 http://stackoverflow.com/questions/472951/how-do-i-print-an-iframe-from-javascript-in-safari-chrome. But it didn't...

Problem with jquery ajax in Opera and Google Chrome

I have a page where I need to add a drag and drop functionality to certain elements. When the drop event occurs, it makes an ajax call to a php function and then refreshes the contents of a div. I'm using jQuery with jQueryUI for the drag and drop, and CakePHP as a PHP framework (not sure if this is relevant). Everything is working just...

Opera colors strangeness

I jave a Javascript code that draws a shape with specific color using "style.backgroundColor=". It works fine with one exception - for some reason Opera decides to set the color to similar, but not exactly the same one as the one that I want. For instance, if I set the color to #324252 Opera decides that it should be #314152! All other b...

get text from non window class

I am trying to get url from opera browser. In Spy++, you can have a target cursor where it detects window control and give you class name. When I hover it over Opera's address bar, it can't detect the url control so i assume it is drawn internally. Is there a way to get text from the class? I am using MFC and for IE8, I am sending wm_Get...

Opera and Css rendering issue

I have a height rendering issue with Opera. Out of desperation I have been using "em" and this does not provide a workable proportional height rendering (depending on screen size and resolution). In IE and Firefox I am able to use "%". If I use "%" in Opera I get a mess. I am providing the URL because the source itself is too lengthy...

Font rendering differently in Opera 9

The font is rendering as a serif in Opera 9, image here in case you're curious and don't have Opera 9: image I've looked around but can't seem to find why Opera 9 wouldn't listen to the CSS for font-family: Helvetica. Any ideas? Thanks~ ...

sifr: Opera-Bug: Flash Object too wide

Hey there, I have used sifr to replace the fonts for headlines. It works fine in Firefox and IE. http://design.speak-friend.com/ In Opera however, the headlines of the articles (object-tag within a-tag with-in h1-tag) get as wide as the used text is. If I limit the size of the object-tag via css, it just get's cut off (meaning some te...

Opera: Altering img src attribute does not automatically update display?

When using javascript to swap images the HTML is updated fine but what Opera actually displays is not unless you scroll or resize the window. A picture of what happens when you scroll explains it best. Any ideas? EDIT: The source of the problem seems to be that the image is inside a div that has float right. EDIT2: This http://trac....

How to exclude added to Array methods from processing in "for..in" loop? (javascript)

Hi. I've added some useful helpers to Array (such as toSource() for Opera). And now for..in returns the functions with normal properties. I'm using for..in now, because the code is easier to read with it. And it's a native functional of js, so must be faster. But adding type checks in loop makes it easier to use classic for(;;). Is t...

Access to 127.0.0.1 by default in Opera 10?

Unlike other browsers (IE, FF, Chrome) Opera 10 doesn't allow websites to access content from localhost. Only when 127.0.0.1 is explicitly added to the trusted websites list in Opera does this work - all other browsers don't need this. Any suggestions on how I can either programatically add this to the trusted sites list in Opera (unlik...

Firefox and Opera do not finish loading webpage with an embedded Windows Media Player file

BROWSERS CAUSING PROBLEM: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.10 CLIENT MACHINE: Windows 7 Ultimate 64-bit, 4 GB RAM, 250 GB HD, 2.3 GHz. TEST WEBSITE: http://www.microwavecontrolledfusion.us I have no problems loading the ...

Cookies in IE6+, Safari vs. Opera, Firefox (JQuery)

Hi, I have found a weird difference in cookie behavior in IE+Safari/Opera+Firefox while navigating with the 'back' button: in IE and Safari the cookies set on a page get dropped (reverted) when returning to the previous page via the 'back' button, while in Opera and Firefox the new cookies persist. The latter behavior is what I need, b...

No access to developer tools in Opera without a conection to Internet.

I have noticed that when being in offline mode (the computer is not connected to the Internet), Developer Tools (AKA Dragonfly) in Opera are not accessible. When choosing them from the menu, Opera thinks for a while then displays a connection error. Is there any way to use Developer Tools without being connected to Internet? ...

JQuery problem with html() handling in Opera

Hello everyone. I have following JS code (stripped to minimal size where problem still exists) <html> <head> <script type="text/javascript" src="jquery.js"></script> </head> <body> <div id="debug">this is <em>test</em></div> <script type="text/javascript"> var string1 = $('#debug').html(); var string2 = string1.replace(/<em>/g,...

Disable Opera's autocomplete

Hello! Opera's autocomplete function draws a yellow border around text inputs where it saved data. Is there any way to disable it programmatically? Here's a picture to illustrate it: ...

Opera, custom context menu, picking up the right click

Hi, I want to implement a custom context menu on a site that I am working on. I have used document.oncontextmenu which works with all, except Opera, the main browsers that I am developing for. How would I the same result in Opera? I need to disable the default context menu and display mine. The first thing I would like to do is pick...

Opera 10, jquery with regex replace

Hi all. I have a jquery plugin that is working on all browsers, except opera. The removeHighlight function gets triggered, but the html is not changed. As far as I can see IE, FF, Chrome and Safari work as expected. My example can be found here: http://www.pritaeas.net/public/jquery/plugin-dev/ The plugin's url is: http://www.pritaeas....

How to Wrap unspaces word for Opera Browser

I am currently testing this function in all browser using php. <style> #preview_desc{ text-wrap: suppress; word-break: break-all; word-wrap: break-word; /* IE>=5.5 */ white-space: -moz-pre-wrap; /* For Fx<=2 */ white-space: pre-wrap; /* Fx>3, Opera>8, Safari>3 */ white-space: -o-pre-wrap; /* Opera 7 */ whi...

jQuery, $.load doesn't work in webkit and opera?

Hello, I'm trying to load an external document using jQuery, $.load call. It seems to work in IE6, IE8 and Firefox 3.5, but it doesn't work in Opera and Webkit browsers (Chrome and Epiphany)... all of them report (in their developer consoles) that they load external document successfully, but they don't show its content. Test case is h...

meta "viewport" device-width: Wrong width small on Opera Mobile 9.7 (10 works)

For my current mobile web project I use the meta "viewport" tag to instruct the mobile browser to use a scale of 1:1 with the devices' width: <meta name="viewport" content="initial-scale=1.0, width=device-width, height=device-height, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> This works on IE mobile, iPhone Safari and ...