[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#27862: Special JavaScript not working
From:       Philipp =?iso-8859-1?q?G=FChring?= <p.guehring () futureware ! at>
Date:       2001-07-01 11:24:40
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Samstag, 30. Juni 2001 22:46 schrieben Sie:
> On 28 Jun 2001 pg@futureware.at wrote:
> > Please tell me if there are bugs in the Javascript Code, or correct the
> > kjs Bug / build the needed features.
>
> First of all you should see into NOT including
>
>    Content-type: text/html; charset=UTF-8
>
> as the first line of the page. Bug in your php script ?

No, not really a bug in the scripts, but a bug in the organisation.
(I am generating the system by hand, because I do not have a cgi-bin for that 
application alone, that´s why I want to transfer it to a subdomain, ... )

But let´s talk about the real problem:

There are several problems with the Javascript Implementation of KHtml:

At first, the onChange doesn´t seem to work.

<input type="text" size="4" onfocus="this.select(),this.focus()" 
name="posfmeng3" onChange="rechnen(3);">

The upper example works on IE, but rechnen() gets never called on Konqueror.
So I had to create the following workaround:

<input type="text" size="4" onfocus="this.select(),this.focus()" 
name="posfmeng3" onChange="rechnen(3);" onBlur="rechnen(3);">

The next thing is the access to the input values:

  parent.stamm.document.write(top.liste.listf[z+1].value+" ");

is working code for IE. For Konqueror I figured out that

  alert(document.getElementsByName('adr'+z)[0].value);
  alert(document.getElementsByName('adr'+(z+1))[0].value);

gives me the needed access to the input values.

Now I am working on getting

  parent.stamm.document.open("text/html");
  parent.stamm.document.write("<body>");
  parent.stamm.document.write("Adresse "+nr+"<br>");

to do what it should.

By the way, is there any docu about the Javascript Implementation of 
Konqueror beside the sourcecode?

Many greetings,
- -- 
~ Philipp Gühring              p.guehring@futureware.at
~ http://www.futureware.at/       ICQ UIN: 6588261
~ "Hat du Abkürzungen, mut du Futureware Translator nehmen!"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7Pwh4lqQ+F+0wB3oRAjQFAJ4/KrlU9sE8JXG7QJ8Fg2YLCtnSZACgpnW6
TxrkZ+WEfQvPZ5xJpWVtsEg=
=UKLo
-----END PGP SIGNATURE-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic