Is script type="text/perl" OK?

Is script type="text/perl" OK?

am 14.01.2008 12:50:56 von lg

I've asked this on a html forum but I'll ask it here also.

I have a counter file on my index page which is like below.
Snippet from index.html:


The script is is a perl file which is processed by the server. Is it legal? Will
my counter work (be run as usual)?

Below runs OK too, but I get a "done, but with errors on the page"


What I am trying to do is get rid of the error message and have the counter.pl
execute. Since the server (not the client browser) is doing the running of the
counter.pl I want to know if "

That's probably because your script does not return valid javascript.

> What I am trying to do is get rid of the error message and have the counter.pl
> execute. Since the server (not the client browser) is doing the running of the
> counter.pl I want to know if "

What does 'counter.pl' contain? If it contains Perl, I'm quite surprised
it runs ok - as I would expect the browser to execute it like it contained
Javascript.

If counter.pl contains javascript, this forum is not the right place to ask.

:}
:} What I am trying to do is get rid of the error message and have the counter.pl
:} execute. Since the server (not the client browser) is doing the running of the
:} counter.pl I want to know if "
>
>That's probably because your script does not return valid javascript.
>
>> What I am trying to do is get rid of the error message and have the counter.pl
>> execute. Since the server (not the client browser) is doing the running of the
>> counter.pl I want to know if "
>
> What I am trying to do is get rid of the error message and have the counter.pl
> execute. Since the server (not the client browser) is doing the running of the
> counter.pl I want to know if "