MyOpera community

www.opera.commy.opera.com

My Opera Forums

Not registered yet? Sign up for a My Opera account.

Login

Lost password?


 

Search Thread


New Thread

Post New ThreadPost A Reply
Go to first unread post first unread  « Last Thread | Next Thread »
yourruinreverse
Megasenior ultramember

Registered: Mar 2003
Location:
Posts: 167
Status: offline

7.54 and 8.01 issue -- (X)HTML, JavaScript or CSS?

Recently I updated my webcam page http://www.xs4all.nl/~rooversj/webcam.html with some new features. The JavaScript for reloading the webcam image (executed by clicking on the figure at the top of the page) did not change. The only real changes to the page regarding this reload function included changes to the HTML and CSS, which shouldn't affect the way this reload function works.

Still, I now see different behaviour in two distinct Opera versions (and on separate platforms; Gentoo Linux with 7.54 u2, and Windows 2000 running Opera 8.01).

The way it used to be, clicking on the image changed its border colour to a pale blue, and changed it back to pale gray after a fixed number of milliseconds. It still works that way in IE, Firefox and Safari. Yet it no longer works quite the same way in Opera.

In Opera, when I click on the image, the border colour changes to blue but is not reset after the preset 700 ms. It iss, however, switched back to the default gray when the image is next reloaded automatically.

Assuming I had introduced some syntactical or logical error, I tried different approaches to solving the problem, yet none of them gave the expected result in Opera, while the page kept on working as it should in IE, Firefox and Safari.

I guess the cause of the problem is somewhere in Opera's DOM implementation.

The relevant files for this webcam page are:

http://www.xs4all.nl/~rooversj/webcam.html
-- The page itself, validates as XHTML 1.0 Strict

http://www.xs4all.nl/~rooversj/webcam.js
-- The JavaScript file, has worked without trouble for a long time. I recently cleaned it up (and moved the code to a separate file) but it still works in other browsers.

http://www.xs4all.nl/~rooversj/default.css
-- The CSS file, validates as "Valid CSS". It's contents shouldn't affect the border colour of a single element at all.

Running alert(document.compatMode); returns "CSS1Compat".

I can only assume the problem is caused by Opera itself. Could any of you test this in other versions of Opera and report back in this thread?

Report this post

New Post 28 May 2005 08:27 Profile Find  posts by yourruinreverse Add to buddy list Edit/Delete Message Reply w/Quote
jebediah
Member

Registered: Apr 2004
Location:
Posts: 64
Status: offline

I don't think this is related to your JavaScript. With Opera 8.0 on XP, it looks like a repaint bug. After you've clicked on the image try moving another window over a portion of the image -- when you remove that window is the portion that was covered now styled correctly?

As further evidence, try changing your definition of var bsg from "2px solid #eee" to "3px solid #eee". This causes it to repaint for me, proving that it's not your logic that's in error.

A workaround (should you want one) is to set up your css so that it has classes like

img.regular {
border: 2px solid #eee;
}

img.waiting {
border: 2px solid #abe;
}

and then have the javascript change the image's class with setAttribute. If I do that, the repainting works correctly.

Report this post

New Post 28 May 2005 09:09 Profile Send Private Message Find  posts by jebediah Add to buddy list Edit/Delete Message Reply w/Quote
yourruinreverse
Megasenior ultramember

Registered: Mar 2003
Location:
Posts: 167
Status: offline

Thanks for checking this so quickly.

Under Windows 2000 using 8.01 and Gentoo Linux using 7.54 u2 the repaint trick works equally well. And thank you for the workaround, but it's a superficial problem so I won't fix this. I think that's not my job but Opera's. ;-)

Report this post

New Post 28 May 2005 09:59 Profile Find  posts by yourruinreverse Add to buddy list Edit/Delete Message Reply w/Quote
jimraehl
Justa Member

Registered: Apr 2004
Location: Orem, UT, USA
Posts: 1158
Status: offline

quote:


Originally posted by yourruinreverse
I think that's not my job but Opera's. ;-)

Only if someone submits a bug report. Please post the bug number in this thread, and reference this thread in the bug report, in addition to the usual bug description and reproduce method.
http://www.opera.com/support/bugs/

Opera 8.00 (build 7561) ID=Opera * Sun Java 5.0 * Windows 98SE * AMD Duron 950MHz (2001) * 256MB RAM * 1280x1024 * Tweakmaster DSL Option 3 on 256K Qwest DSL+DU Meter * Ad-Aware+Spybot * Norton Systemworks 2003 * AVG free anti-virus * No firewall or proxy * Family 1.6 (28 yrs)

Report this post

New Post 28 May 2005 17:09 Profile Send Private Message Find  posts by jimraehl Add to buddy list Edit/Delete Message Reply w/Quote
yourruinreverse
Megasenior ultramember

Registered: Mar 2003
Location:
Posts: 167
Status: offline

Sure.

Report this post

New Post 28 May 2005 17:27 Profile Find  posts by yourruinreverse Add to buddy list Edit/Delete Message Reply w/Quote
yourruinreverse
Megasenior ultramember

Registered: Mar 2003
Location:
Posts: 167
Status: offline

bug 171263

Last edited by yourruinreverse on 28 May 2005 at 21:46

Report this post

New Post 28 May 2005 17:34 Profile Find  posts by yourruinreverse Add to buddy list Edit/Delete Message Reply w/Quote
userdude
The Secret Blabberer

Registered: Jan 2005
Location: North Texas
Posts: 1894
Status: online

Just the bug number:

bug-171263

Interestingly enough, the patent also appears to cover a feature that allows the procedural synthesis logic to send only the vertices that have changed between two poses along to the GPU, so that the entire model doesn't have to be retransmitted across the bus. This will help cut down on bus traffic in instances where the characters' movements in between frames are slight..

- Inside the Xbox 360, part I: procedural synthesis and dynamic worlds
Read more at :: arstecnica.com ::

Report this post

New Post 28 May 2005 17:42 Profile Send Private Message Find  posts by userdude Add to buddy list Edit/Delete Message Reply w/Quote
yourruinreverse
Megasenior ultramember

Registered: Mar 2003
Location:
Posts: 167
Status: offline

?

Report this post

New Post 28 May 2005 17:56 Profile Find  posts by yourruinreverse Add to buddy list Edit/Delete Message Reply w/Quote
userdude
The Secret Blabberer

Registered: Jan 2005
Location: North Texas
Posts: 1894
Status: online

Remove the @opera[...]com

Interestingly enough, the patent also appears to cover a feature that allows the procedural synthesis logic to send only the vertices that have changed between two poses along to the GPU, so that the entire model doesn't have to be retransmitted across the bus. This will help cut down on bus traffic in instances where the characters' movements in between frames are slight..

- Inside the Xbox 360, part I: procedural synthesis and dynamic worlds
Read more at :: arstecnica.com ::

Report this post

New Post 28 May 2005 17:58 Profile Send Private Message Find  posts by userdude Add to buddy list Edit/Delete Message Reply w/Quote
F_V
Junior Member

Registered: Jan 2004
Location:
Posts: 273
Status: offline

One easy trick to check if something is a repaint issue, is pressing ctrl-F7 twice. In this case, it corrects the display. This is a longstanding problem since the first betas of Opera 7.

[Please don't post the complete bug mail address, as it may attract spam.]

Report this post

New Post 28 May 2005 21:23 Profile E-mail Find  posts by F_V Add to buddy list Edit/Delete Message Reply w/Quote
yourruinreverse
Megasenior ultramember

Registered: Mar 2003
Location:
Posts: 167
Status: offline

I didn't think that would matter...

Report this post

New Post 28 May 2005 21:46 Profile Find  posts by yourruinreverse Add to buddy list Edit/Delete Message Reply w/Quote
yourruinreverse
Megasenior ultramember

Registered: Mar 2003
Location:
Posts: 167
Status: offline

quote:


Originally posted by F_V
One easy trick to check if something is a repaint issue, is pressing ctrl-F7 twice. In this case, it corrects the display. This is a longstanding problem since the first betas of Opera 7.


Is there a list of these issues? Another problem with my webcam page and a couple of other pages that use similar code is that these pages steal focus or attempt to steal focus in tabbed / MDI mode. When a different tab has focus / is active and an image reload occurs, the active tab loses focus (whereas the webcam page in the background does not gain focus). Does this sound familiar?

Report this post

New Post 28 May 2005 21:49 Profile Find  posts by yourruinreverse Add to buddy list Edit/Delete Message Reply w/Quote
sgunhouse
Moderator

Registered: Nov 2002
Location: Flag City, USA
Posts: 13253
Status: offline

Sounds like a plugin or Java ... I'm sure you must be using one or the other with your webcam.

Report this post

New Post 28 May 2005 22:41 Profile Send Private Message Find  posts by sgunhouse Add to buddy list Edit/Delete Message Reply w/Quote
yourruinreverse
Megasenior ultramember

Registered: Mar 2003
Location:
Posts: 167
Status: offline

A plugin or Java? Have you seen the page or the script? That's all there is to it: XHTML, CSS and JavaScript/DOM. No Java or plugin needed. I can absolutely assure you this is caused by this webcam page's script reloading the image.

Report this post

New Post 28 May 2005 22:51 Profile Find  posts by yourruinreverse Add to buddy list Edit/Delete Message Reply w/Quote
jp10558
Member

Registered: May 2004
Location:
Posts: 1280
Status: online

I'll bet it's a javascript raising the window to the foreground. In Opera 8 go to tools, preferences, advanced tab, content leaf, Javascript options, uncheck "allow raising of windows" and "allow lowering of windows". If that "fixes" it, then it's definately javascript doing it.

Opera 8(Build 7561); Windows XP Pro SP2; Athlon 64 3400+; 1GB PC3200 DDR; 1M/128k DSL ; NOD 32 (Version 1.1006); Sygate Pro 5.5 (Build 2637);Proxomitron 4.5j Grypen 5/1/05, Custom Filters; GPG key ID: 0x78EC02E0
Journal

Report this post

New Post 28 May 2005 23:24 Profile Send Private Message Find  posts by jp10558 Add to buddy list Edit/Delete Message Reply w/Quote
yourruinreverse
Megasenior ultramember

Registered: Mar 2003
Location:
Posts: 167
Status: offline

All the options there are in the Off position and have been for a long time.

Edit: Which is exactly why I am raising the issue.

Report this post

New Post 28 May 2005 23:26 Profile Find  posts by yourruinreverse Add to buddy list Edit/Delete Message Reply w/Quote
« Last Thread   Next Thread »
Subscribe to this Thread Post A ReplyPost New Thread

New Thread

Quick Reply

[check message length]

Forum jump

Misc

Forum rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

All times are GMT. The time now is 18:42.

Powered by: vBulletin Version 2.3.0
Copyright ©2000 - 2002, Jelsoft Enterprises Limited.