JavaScript Problem with konqueror | not a bug
Dan Christiansen
danchr at users.sourceforge.net
Tue Jan 21 07:42:04 GMT 2003
Hi,
Perhaps you should have some sort of intelligent UA detection like
Safari. It seems to work quite well on said page. That said, the page
seems to work whether you set the UA string to be Automatic, Mozilla or
Konqueror.
- Dan Christiansen
On Tuesday, January 21, 2003, at 08:24 AM, Rainer Lehrig wrote:
> Hi,
>
> some homepages ask the browser if it is a Netscape or an
> InternetExplorer and
> then do different things. Such a homepage for example is:
> http://www.telefonbuch.de
>
> ... Where you can search for phone numbers in germany.
>
> really bad !
> But what to do ?
> On this page konqueror will not work. You can't click Search !
> Why do you not insert an option for Identity ? like in opera.
> Then konqueror could run as konqueror, mozilla, netscape, iexplore ...
> Then konqueror would even work with such pages !
>
> A small HTML code segement is following:
> #######################################################################
> #########
> <title>Das Telefonbuch</title>
>
> <script language="JavaScript">
> <!--
> function TInfoTaoPopup(url)
> {
> var x = screen.width-835;
> var help =
> 'width=835,height=768,toolbar=yes,location=yes,directories=yes,status=y
> es,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes,left='
> + x + ',top=0';
> window.open(url, 'newTinfoWindow', help);
> }
> //-->
> </script>
> </head>
>
> <script language="JavaScript">
> <!--
> var Netscape = new Boolean();
> if(navigator.appName == "Netscape")
> Netscape = true;
> else
> Netscape = false;
> function StartSearch(Eventt)
> {
> if( Netscape)
> {
> if(Eventt.which == 13)
> {
> SubButton('telStarteSucheSuchSeite');
> }
> }
> }
> if( Netscape)
> {
> window.captureEvents(Event.KEYPRESS);
> window.onkeypress = StartSearch;
> }
> //-->
> </script>
> <!-- JScript-Bereich fuer MS Internet Explorer -->
> <script for=document event="onkeypress()" language="JScript">
> {
> if( window.event.keyCode == 13)
> {
> SubButton('telStarteSucheSuchSeite');
> }
> }
> </script>
> #######################################################################
> #########
>
> Yours:
> Rainer Lehrig
>
More information about the kfm-devel
mailing list