You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, August 30th 2004, 8:10pm

Java script error in Konqueror

Hi,
I'm a newbie who just loaded SuSE 9.1 and I really like it. The only problem I am having is with one particular website that uses Javascript to open a login window. The script was written for IE 4+. I'm using Konqueror 3.2.1(KDE 3.2.1) to open it and it returns the error

"Error: node : TypeError: Value undefined (result of expression window.showModalDialog) is not an object. Cannot be called."
I was thinking there might be a way to add something that would allow Konqueror to make a call to the showModalDialog Method.

If anyone has any Ideas help would be greatly appreciated.
Thanks in advance.

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Tuesday, August 31st 2004, 12:05pm

Which website?

Cheers,
_
Qt/KDE Developer
Debian User

3

Tuesday, August 31st 2004, 3:08pm

It is an intranet site. We run Network Associates web version of Support Magic. The part in the script that is giving me trouble is line 85. I think it is trying to incorrectly call the window object or something like that, I'm not really a programmer.

78<script language="javascript">
79function login()
80{
81 if (window.screen.width ==800) {
82 ReturnVal = window.showModalDialog (code to set window size)
83 }
84 else {
85 ReturnVal = window.showModalDialog (code to set window size)
}
If you want to see an example of it on the web go to "http://www.codestore.net/store.nsf/unid/DOMM-4R5MDQ" and click on "this link" about half way down the page.

Thanks for posting.



anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

4

Wednesday, September 1st 2004, 6:38pm

As the page states, this is an IE4+ Script function, not from the ECMA Standard.

http://javascript.about.com/library/weekly/aa091001a.htm states more clearly that it is an IE-only function.

NA's software is either IE-only on purpose or it falsely assumes that Konqueror is IE.
In case you know the software to be working with other non-IE browsers, you could check if setting Konqueror's browser ID to that of the other non-IE browser.

Cheers,
_
Qt/KDE Developer
Debian User

5

Wednesday, September 1st 2004, 7:48pm

IE only I'm afraid. I was hoping there was some sort of additional Java app I could load that would help.