Re: Is script type="text/perl" OK?



_
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 & _
.



Relevant Pages

  • Re: Choosing whitch button will act as submit button
    ... Use the script exactly as supplied for the browser. ... server-code cannot decide whitch button should be the submit button. ... one server side form tag, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: different behavior - localserver vs prod server
    ... But I don't understand what you mean when you say to type the src urls ... into the browser to see if they are correct. ... > Smart Navigation and Client Range checking are implemented by client script, ... and how it behaves on the server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Using anchor links within pages defined by GETS
    ... So the content in the browser ... sure the submitted value for pid is valid and not a NULL or SQL ... What URL is sent to the server? ... because your script should never see the ...
    (comp.lang.php)
  • Re: connection drops while script running
    ... The browser send a header to the server, ... kill the connection without notice". ... be carefull with session expiring during script execution. ...
    (comp.lang.php)
  • Is script type="text/perl" OK?
    ... 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. ... The script is is a perl file which is processed by the server. ... Since the server (not the client browser) is doing the running of the ...
    (comp.lang.perl.misc)