Javascript problem with Konqueror
Brad Fonseca
linuxbrad-bJEeYj9oJeDQT0dZR+AlfA at public.gmane.org
Sun May 9 14:25:07 UTC 2004
Hello everyone!
First of all, thank you for all the helpful suggestions! I was able to figure
out what the problem was with the script: the final "/ /-->" needs to be
changed to "//-->" I sorted this out with the very helpful Javascript
debugger in Mozilla. It's error messages were very clear.
Brad
On May 2, 2004 12:23, Brad Fonseca 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
--
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