Bug 73040 - My bank's javascript menu not working (www.osuuspankki.fi) with mozilla it is OK
Summary: My bank's javascript menu not working (www.osuuspankki.fi) with mozilla it is OK
Status: RESOLVED WORKSFORME
Alias: None
Product: konqueror
Classification: Applications
Component: kjs (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-20 17:47 UTC by Jarkko Haapalainen
Modified: 2004-03-11 07:31 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jarkko Haapalainen 2004-01-20 17:47:14 UTC
Version:           3.2.0 RC1 (using KDE KDE 3.2.0)
Installed from:    Gentoo Packages
Compiler:          gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice) 
OS:          Linux

When you go address : http://www.osuuspankki.fi

You see top menu like : Maksut | Tilit | Kortit ... so on

If you enter username (Käyttäjätunnus): 123456
..and password (Salasana): 7890

And click "Jatka".

You can see now that the menu is not working. With mozilla the menu is ok and working, but I don't want to use mozilla anymore, I want to use konqueror ;)

And this bug has been here for ages.
Comment 1 George Staikos 2004-01-20 21:11:31 UTC
Subject: Re:  New: My bank's javascript menu not working (www.osuuspankki.fi) with mozilla it is OK

On Tuesday 20 January 2004 11:47, Jarkko Haapalainen wrote:
> When you go address : http://www.osuuspankki.fi
>
> You see top menu like : Maksut | Tilit | Kortit ... so on
>
> If you enter username (Käyttäjätunnus): 123456
> ..and password (Salasana): 7890
>
> And click "Jatka".
>
> You can see now that the menu is not working. With mozilla the menu is ok
> and working, but I don't want to use mozilla anymore, I want to use
> konqueror ;)
 
  Seems to work for me. Very recent KHTML update...

Comment 2 Tommi Tervo 2004-01-20 22:43:43 UTC
Wfm too. I've have real account and it worked, although I've used to use
<URL: http://pda.osuuspankki.fi>. 3_2_BRANCH build from today CVS.
Comment 3 Jarkko Haapalainen 2004-01-21 14:11:50 UTC
Great if it's working! :) .. but anyway here's screenshot how it looks with 3.2-RC1 >> http://www.student.oulu.fi/~johaapa/desktop2.jpg
Comment 4 Jarkko Haapalainen 2004-01-23 05:29:36 UTC
Nope, I compiled kdelibs and kdebase 20040122 snapshots and it's not working.

I turned on javascript debugging and this kind errors I got from:
 https://www.osuuspankki.fi/ui/quickmenu_dom.asp

Parse error at line 51

line 278:
ReferenceError: Can't find variable: initMenus

Can't find variable: cancelTimeout


Javascript is working on other sites, so this is kinda weird.
Comment 5 Harri Porten 2004-02-23 12:56:58 UTC
The parse error comes from the following JS code in quickmenu_dom.asp: 
 
  const BODY_HEIGHT = 35;

"const" is not a standard JS keyword, yet. We'll add a workaround but I suggest that you contact your bank's webmaster and tell him to use "var" instead. My Finnish is not good enough for this :)
Comment 6 Harri Porten 2004-02-23 13:14:18 UTC
CVS commit by porten: 

for now, make "const" a synonym for "var". Not standardized as of Edition 3
but already supported by other browsers.

CCMAIL: 73040-done@bugs.kde.org


  M +6 -0      ChangeLog   1.36.2.2
  M +1 -1      keywords.table   1.3


--- kdelibs/kjs/ChangeLog  #1.36.2.1:1.36.2.2
@@ -1,2 +1,8 @@
+2004-02-23  Harri Porten  <porten@kde.org>
+
+        * keywords.table: for now, make "const" a synonym for "var". Not
+        standardized as of Edition 3 but already supported by other
+        browsers.
+
 2004-02-22  Harri Porten  <porten@kde.org>
 

--- kdelibs/kjs/keywords.table  #1.2:1.3
@@ -37,5 +37,5 @@
 char            RESERVED
 class           RESERVED
-const           RESERVED
+const           VAR
 debugger        RESERVED
 double          RESERVED


Comment 7 Jarkko Haapalainen 2004-02-24 17:56:00 UTC
Thanks, but.. ;) Just patched my kdelibs (3.2.0). It works now if you go straight to url in comment #4 , but not then if you log in www.osuuspankki.fi . Menu doesn't show up. Strange.. No javascript errors now, but menu isn't showing. 

Can it be now khtml issue? Because if I open the menu frame in new window and selecting text the menu show up (kinda). Menu is very messy and not showing right. Hard to explain, but you should see it what I mean if you test.
Comment 8 Jarkko Haapalainen 2004-03-10 17:20:07 UTC
Installed KDE 3.2.1. Bug persist. I think this is not javascript problem now, more likely "khtml" issue. Reopening bug. If someone please confirm this and change component to khtml.
Comment 9 Tommi Tervo 2004-03-10 18:03:15 UTC
I'd say it's a site bug. Change UA -> mozilla and menu works.
<URL: http://zebra.tky.hut.fi/~teve/kde/op.png>
Comment 10 Jarkko Haapalainen 2004-03-10 18:38:36 UTC
What about if you are in "main" https://www.osuuspankki.fi ? Does the menu look same there?

I noticed if I go further to accounts (from left side links) the top menu looks ok and it is working correctly there. So weird.. 

Btw. what you mean by "UA -> mozilla"? Browser identification? that didn't work to main page.
Comment 11 Tommi Tervo 2004-03-10 19:00:24 UTC
Main page works without tricks.
<URL: http://zebra.tky.hut.fi/~teve/kde/op_main.png>

UA = User Agent <-> Browser Identification.
Comment 12 Jarkko Haapalainen 2004-03-10 19:14:42 UTC
> Main page works without tricks. 
>  <URL: http://zebra.tky.hut.fi/~teve/kde/op_main.png> 

What about if you are logged in?
Comment 13 Tommi Tervo 2004-03-10 19:37:48 UTC
> What about if you are logged in? 

Menu is present. 
Comment 14 Jarkko Haapalainen 2004-03-10 19:59:01 UTC
Hmm.. What distribution are you using? Planning to make same setup and find where the problem lies with my current setup..
Comment 15 Tommi Tervo 2004-03-10 20:51:22 UTC
RH-7.3, self compiled kde and Debian unstable with debian packaged kde-3.2.1.
Both behaves similarly.
Comment 16 Jarkko Haapalainen 2004-03-11 07:31:13 UTC
Now I got it working. I backed up and deleted all of mine ~/.kde* files and now it is working. I tried first to delete all cache and temporary files, but that didn't help. 

I have tried this before, but not yet with 3.2.1. Nice :)

Thank you for solving this with me! :)