Re: Is script type="text/perl" OK?
- From: Abigail <abigail@xxxxxxxxxx>
- Date: 14 Jan 2008 13:11:03 GMT
_
lg (lgt@xxxxxxxxxxx) wrote on VCCXLIX September MCMXCIII in
<URL:news:rtimo3l32bsh1p5g6k9uuj25ul1oohj9d1@xxxxxxx>:
:} 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:
:} <script type="text/perl" SRC="http://www.blahblah.com/counter.pl"> </script>
:}
:} The script is is a perl file which is processed by the server. Is it legal? Will
Legal in which sense?
:} my counter work (be run as usual)?
Well, as long as your browser is able to execute the script, sure.
But that's the same with javascript. Whether or not it will "as usual"
will depend on the browser.
:} Below runs OK too, but I get a "done, but with errors on the page"
:} <script type="text/javascript" SRC="http://www.blahblah.com/counter.pl">
:} </script>
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 "<script type="text/perl" SRC="http://.." is
:} otherwise valid. I could just put the line there and see if I get hits, but I
:} don't want to find out six months later that it while it does work on many
:} browsers it does not work on not-so-common-browser and the browser simply quits
:} interpreting the html on the file and issues a 404 or similar message.
Eh, the server is interpreting the <script> part? Well, I guess that's
possible (after all, the server can do what it damn well pleases), but
quite odd. Perhaps you should ask in a group related about servers then.
Abigail
--
sub _ {$_ = shift and y/b-yB-Y/a-yB-Y/ xor !@ _?
exit print :
print and push @_ => shift and goto &{(caller (0)) [3]}}
split // => "KsvQtbuf fbsodpmu\ni flsI " xor & _
.
- References:
- Is script type="text/perl" OK?
- From: lg
- Is script type="text/perl" OK?
- Prev by Date: Re: Is script type="text/perl" OK?
- Next by Date: Re: s/A/B/ and s/B/C/ but don't want A -> C
- Previous by thread: Re: Is script type="text/perl" OK?
- Next by thread: Re: Is script type="text/perl" OK?
- Index(es):
Relevant Pages
|