Thanks Andrew and Ralph,
I'll report back to my colleagues on Wednesday (I'm out Mon / Tues next
week) and see what the consensus is. Stand by for the next thrilling
instalment :-)
For your information, I'm more of a go-between here, but my colleagues
want to be able to create documentation
That makes sense. There are a few projects (like PyJS or phpjs) that can
compile a subset of another language into javascript which might be usable
in those scenarios, but you lose the benefits of, say, proper numerical
typical, etc in that case since it's still javascript at the end of the
process
Hi Andrew,
> I'm not convinced they provide anything that allows someone to add in
> support for other languages that is useful in anyway beyond simple
> toys.
They would be as useful as Javascript, I imagine.
> I'm wondering as to _why_ you even want to run scripts in another
> language client-
Hi Terry,
> So if we want to use a browser to execute a script that isn't js,
> there's no reliable way to do it that would work across all platforms
> / browsers.
Add some Javascript to interpret it or produce equivalent Javascript on
the fly. :-)
You alternative is to also ship a web server s
Some browsers do expose an API allowing these things, but my point is more
that I'm not convinced they provide anything that allows someone to add in
support for other languages that is useful in anyway beyond simple toys.
Regarding Python in the browser, this site has some useful info:
https://wik
Hi Terry,
> Terry Coles wrote:
> > I understand that all browsers speak Javascript,
Except those that don't, e.g. lynx(1). :-)
> > so a page containing js, just gets executed. What if the script is
> > written in PERL, PHP or even TCL or Python? Presumably the page
> > includes a mime type, b
Not really, unless it's something you can run server-side (and you have
control of the server) running anything but javascript on the client-side
isn't something you can really do and even then the javascript is sandboxed
within the browser environment, so if you were planning on trying to do
anyth
On 25/10/13 14:03, Andrew Montgomery-Hurrell wrote:
Most browsers just fail if you use any language other than javascript. In
theory you can install plugins that will register a script interpreter
against a given mime-type, but in practice I know of no plugins which
actually provide this and I'm
Most browsers just fail if you use any language other than javascript. In
theory you can install plugins that will register a script interpreter
against a given mime-type, but in practice I know of no plugins which
actually provide this and I'm not entirely sure browsers even expose a
useful enough
On 24/10/13 17:22, Terry Coles wrote:
So here's the question. Are there numerous ways to do this and if so,
does every browser have its own way?
OK, so we discussed this further at work and homed in on the real question:
I understand that all browsers speak Javascript, so a page containing
js,
10 matches
Mail list logo