Javascript problem with Konqueror

Zbigniew Koziol zkoziol-Zd07PnzKK1IAvxtiuMwx3w at public.gmane.org
Sun May 2 17:17:22 UTC 2004


Konqueror does have many problems with JavaScript. Opera is written much 
better.

You may try another method of hiding e-mail address from bots, as described 
here:

	http://www.webquake.ca/?topic=white-papers&id=2512

The idea is to replace alphanumeric text of e-mail address by HTML entities.

zb.



On Sunday 02 May 2004 12:23, you wrote:
> Hi,
>
> I'm running Konqueror 3.1.4 on KDE 3.1.3 and I've run into a problem or
> bug. I wrote up a webpage and included the following Javascript:
>
> <script language="JavaScript">
>  <!--
>  var name = "bradfonseca";
>  var domain = "rogers.com";
>  document.write('<a href=\"mailto:' + name + '@' + domain +
> '?subject=%5BWebpage%5D%20Contact%20me!\" title=\"Email Contact Info\">');
>  document.write(name + '@' + domain + '</a>');
>  / /-->
> </script>
>
> at three points in the page.  The purpose of it is to construct the <a
> href="mailto:...">blah</a> tags to avoid spam bots from harvesting my email
> from the web page.  Keep in mind, I'm new to this so I wouldn't expect this
> to be a silver bullet for spam or anything.  Anyway, I got the following
> error messages from Konqueror:
>
> khtml (jscript): WARNING: Script threw exception: SyntaxError: Parse error
> at line 8
> khtml (jscript): WARNING: Script threw exception: SyntaxError: Parse error
> at line 9
> khtml (jscript): WARNING: Script threw exception: SyntaxError: Parse error
> at line 9
>
> When I view the page, the script hasn't executed and there are "blank
> spots" where there should be email links.  However, when I open the page in
> Opera 7.11, I have no problem getting the proper page with email links
> intact.
>
> Am I dealing with a bug in Konqueror or is there something screwy with my
> script?  Does anyone know if there is a work-around for this?
>
> Regards,
>
> Brad Fonseca
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list