Re: [Dorset] Client Side Scripting of Web Pages

2013-10-25 Thread Terry Coles
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

Re: [Dorset] Client Side Scripting of Web Pages

2013-10-25 Thread Ralph Corderoy
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, but how

Re: [Dorset] Client Side Scripting of Web Pages

2013-10-25 Thread Andrew Montgomery-Hurrell
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:

Re: [Dorset] Client Side Scripting of Web Pages

2013-10-25 Thread Ralph Corderoy
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

Re: [Dorset] Client Side Scripting of Web Pages

2013-10-25 Thread Ralph Corderoy
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

Re: [Dorset] Client Side Scripting of Web Pages

2013-10-25 Thread Terry Coles
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

Re: [Dorset] Client Side Scripting of Web Pages

2013-10-24 Thread Adrian Howard
It's basically javascript, unless you say otherwise. type was a required attribute until HTML 4. In HTML 5 it's option, and defaults to text/javascript. Adrian On 24 October 2013 17:22, Terry Coles d-...@hadrian-way.co.uk wrote: Hi All, Can anyone settle a short discussion that came up at