Opera 11.62 not working for www.spv.no and clanforge.multiplay.co.uk

Forums » Opera for Windows/Mac/Linux » Opera browser

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

10. April 2012, 17:17:30

SoidSnake

Posts: 17

Opera 11.62 not working for www.spv.no and clanforge.multiplay.co.uk

Hey.
The first problem is the bank Sparebanken Vest http://www.spv.no where there is impossible to log in to your bank account where this works perfectly in older builds of Opera.

The second page is http://clanforge.multiplay.co.uk where there are a frame on the right and another frame to the left where the menus are and when you click on Servers, profile etc the frame on the right wont change. This worked perfectly in older builds except 11.62.

I know this 2 sites will be hard to test since you need an account on both sites to test it. But its a major problem then needs to be fixed. I really want to downgrade my Opera for the time being. Is that possible?

-Best Regards
Stian

10. April 2012, 17:55:42

Pesala

Reclining Buddha

Posts: 25584

Have you tried deleting your cookies for those sites? That solves some problems.
SkinsTipsButtonsBackupSecurityUser ScriptsLanguage ForumsWiki
Browser JSChangelogsOpera NextDragonflyBugsCrashesFTP
My WebsiteMy ForumsOpera ReviewMy FontsIrfanViewSearchDownloads
Opera 11.64 on Windows XP Home • AMD64 3500 1GB RAM specs idea
Rules of Conduct and Posting RulesPlease Don't ShoutEditing PostsOpera Config Links

10. April 2012, 21:30:14

SoidSnake

Posts: 17

I deleted all my cookies and also restarted my Opera and deleted all my cookies again and tried to login to both of those sites. And I am still having the same problem.


Link to the image
On the spv.no page this stays like this forever on trying to log in






Link to the image
And on the clanforge page this will always show the news even though i select Server or Profile etc

11. April 2012, 10:40:16

SigurdAA

Posts: 22

Having the same problem with using the net bank Sparebanken Vest.

It works with other browsers and, as previously said, it worked perfectly in older Opera versions too.

12. April 2012, 11:01:06

Opera Software

hallvors

Opera Software

Posts: 1776

Hi,
does it solve these problems to use this user script?

http://files.myopera.com/hallvors/userjs/document_attachEvent.js

In 11.62 we've hidden the document.attachEvent method because having this method caused compatibility problems on certain important sites. I can easily believe that hiding it also causes compatibility issues..
--
My blog: miscoded
Stupid code from major websites uncovered and criticised
Contribute site fixes! - OTW&TA- all sites must work

12. April 2012, 11:03:37

Opera Software

hallvors

Opera Software

Posts: 1776

(If you don't know how to install user javascripts, have a look at this guide: http://my.opera.com/operafan2006/blog/2007/02/13/how-to-install-user-java-script-in-opera . To run the script on the bank's website you probably need to go to opera:config#r%20j and turn on the "User JS on HTTPS" setting, then OK it when you load the first https page.)

Thanks a lot for letting me know whether this helps - it will help us understand the problem.
--
My blog: miscoded
Stupid code from major websites uncovered and criticised
Contribute site fixes! - OTW&TA- all sites must work

12. April 2012, 11:27:47

SigurdAA

Posts: 22

Originally posted by hallvors:

Hi,
does it solve these problems to use this user script?

http://files.myopera.com/hallvors/userjs/document_attachEvent.js

In 11.62 we've hidden the document.attachEvent method because having this method caused compatibility problems on certain important sites. I can easily believe that hiding it also causes compatibility issues..



Hi and thanks for your reply,

I can't answer for the second site mentioned by OP, but for spv.no: Yes, it does work again when using this user script smile

12. April 2012, 11:39:27

Opera Software

hallvors

Opera Software

Posts: 1776

OK, colleague Yngve also uses this bank and share an error message. Thanks to you both, I'm about to ship a browser.js update that will make spv.no work in 11.62 smile
--
My blog: miscoded
Stupid code from major websites uncovered and criticised
Contribute site fixes! - OTW&TA- all sites must work

12. April 2012, 15:10:40

SoidSnake

Posts: 17

Thank you very much smile
This script works perfectly on the bank site www.spv.no but I'm still having the same problem on the other page
http://clanforge.multiplay.co.uk :-/

13. April 2012, 07:20:18

Opera Software

hallvors

Opera Software

Posts: 1776

Hm, is it possible to register a free account for testing with this site? Or could you send me any errors and/or a copy of the page, saved?
--
My blog: miscoded
Stupid code from major websites uncovered and criticised
Contribute site fixes! - OTW&TA- all sites must work

13. April 2012, 17:16:01 (edited)

SoidSnake

Posts: 17

I saved the website here: http://dl.dropbox.com/u/69721925/clanforge.rar
I hope this will help. All the different pages seems to have .pl after instead of .htm or .php etc.

EDIT: I don't think there's possible to get a free account since it is a webpage for controlling a rented server from multiplay. So I think you will only get access if you rent a server there

16. April 2012, 08:24:21

Opera Software

hallvors

Opera Software

Posts: 1776

Originally posted by SoidSnake:

I'm still having the same problem on the other page



Thanks for saving the files - it fails because we started hiding window.event. This code looks pretty old:

if ( window.event && window.event.srcElement && window.event.srcElement.href )
{
	// default the source object
	oSrc = window.event.srcElement;
}
else
{
	// reload the current page
	oSrc = document.getElementById( curTab );
}
}

sUrl = oSrc.href;


Could you please report a bug on this issue?
--
My blog: miscoded
Stupid code from major websites uncovered and criticised
Contribute site fixes! - OTW&TA- all sites must work

16. April 2012, 13:32:36

SoidSnake

Posts: 17

I did report it through the Opera menu -> Help - > Report a site problem..
if that helps?

16. April 2012, 13:39:39

Opera Software

hallvors

Opera Software

Posts: 1776

Sorry, it would be better to report it at https://bugs.opera.com/wizard/ - and link to this thread smile
--
My blog: miscoded
Stupid code from major websites uncovered and criticised
Contribute site fixes! - OTW&TA- all sites must work

16. April 2012, 14:09:42

SoidSnake

Posts: 17

Okay. I have now posted the bug report smile Should I also report one on the www.spv.no site aswell?

16. April 2012, 14:18:21

Opera Software

hallvors

Opera Software

Posts: 1776

Thanks! No report required for spv.no, I've already shipped a browser.js update for it. smile
--
My blog: miscoded
Stupid code from major websites uncovered and criticised
Contribute site fixes! - OTW&TA- all sites must work

16. April 2012, 14:35:39

SoidSnake

Posts: 17

Ok thats good smile So we can be using www.spv.no in the next update without the script then?

17. April 2012, 06:52:50

Opera Software

hallvors

Opera Software

Posts: 1776

Yes, it should in fact be working already if the browser.js info page says your active file is from April 12 or later.
--
My blog: miscoded
Stupid code from major websites uncovered and criticised
Contribute site fixes! - OTW&TA- all sites must work

17. April 2012, 14:53:09

SoidSnake

Posts: 17

I see smile It works great now without the script smile

9. June 2012, 14:07:22

WoodrowShigeru

Posts: 6

A bit on that matter:

I was wondering how "if (event)" can deliver a false value - as it does since the v11.62 update - although event.which or event.srcElement do deliver proper values.

  if ( window.event )
    output.innerHTML = "defined";             // "output" is just a debug div box.
  else
    output.innerHTML = "undefined: "+ [ window.event, window.event === undefined, typeof window.event, window.event.which, window.event.which === undefined ].join( " | " );

… delivers this line in an onKeyUp scenario:

undefined: [object KeyEvent] | true | undefined | 13 | false

Seems a bit illogical to me. Which is why, from my perspective, I don't understand why the code mentioned by hallvors is old. You prevent a runtime error of calling "uncertainObject.attribute" by making sure that the object is defined in the first place, before addressing its attributes. Yet, there is no alternative that I know how to make that check. Instead, these attributes (i.e. "event.which") can only be used by wholly omitting that check.

Doesn't seem like elegant programming to me.
-[ Woodrow ]-

12. June 2012, 12:05:44

Opera Software

hallvors

Opera Software

Posts: 1776

Originally posted by WoodrowShigeru:

I was wondering how "if (event)" can deliver a false value



This is a magic hack for compatibility. The purpose is to make sites that do things like this start working:

if(window.event){
   // some IEish thing we don't support
}


and at the same time keep sites that do this working:
if( isOpera )element=event.srcElement;

or
if(!isMoz)element=event.srcElement;

or even just
var type=window.even.type

with no extra detection. It is illogical, but it makes a number of sites that otherwise wouldn't work, work.

Originally posted by WoodrowShigeru:

I don't understand why the code mentioned by hallvors is old



I'd call it old - or at least not well maintained - because it seems to have no usable alternative code for browsers that do not support window.event. More "modern" browsers and coding style don't support or discourage window.event and use the event object passed as an argument to the event listener instead.
--
My blog: miscoded
Stupid code from major websites uncovered and criticised
Contribute site fixes! - OTW&TA- all sites must work

18. June 2012, 18:48:08

WoodrowShigeru

Posts: 6

Ah, I see. Thanks for clearing that up.
-[ Woodrow ]-

Forums » Opera for Windows/Mac/Linux » Opera browser