Register scripting language in browser?

Does any browser provider support the use of scripting languages ​​other than

  • text/javascript
  • text/vbscript (IE only)

eg:

  • text/lua
  • text/cs-script
  • text/php
  • text/tcl

If I wanted to use a different scripting language in the browser:

<SCRIPT type="text/javascript">
   ...some JavaScript...
</SCRIPT>

<SCRIPT type="text/vbscript">
   ...some vbscript...
</SCRIPT>

<SCRIPT type="text/perl">
   ...some Perl Script...
</SCRIPT>

<SCRIPT type="text/php">
   ...some Php...
</SCRIPT>

<SCRIPT type="text/tcl">
   ...some Tcl...
</SCRIPT>

<SCRIPT type="text/lua">
   ...some Lua...
</SCRIPT>

<SCRIPT type="text/pascalscript">
   ...some PascalScript...
</SCRIPT>

<SCRIPT type="text/cs">
   ...some C#...
</SCRIPT>

can i

Is there a way to register third-party scripts with any browser?

+3
source share
6 answers

Technically, Internet Explorer can use any script language that provides IActiveScript, and I have seen implementations of both PERL (from ActiveState) and TCL working with clients in IE.

But for the minitech point, this is not something that will work in browsers, and frankly, it is a terrible idea in almost all circumstances.

+2

. , -, JavaScript (, Pajamas Python).

+3

Google Chrome , , . , Tcl.

+2

brython python 3:

. www.brython.info

!

, ( IE)

... perl...

+2

There is what I consider hack-ish ways to do this, which is due to some kind of interpreter between the browser and the script language. Two examples of this are: SilverLight for interacting with various dynamic languages or JRuby for interacting with a Ruby script . Otherwise, it must be compiled in JS.

+1
source

No no. Not any portable way, at least, and not something you should do.

0
source

All Articles