Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #7772 > unrolled thread
| Started by | Gnarlodious <gnarlodious@gmail.com> |
|---|---|
| First post | 2011-06-16 15:11 -0700 |
| Last post | 2011-06-17 18:36 +1100 |
| Articles | 5 — 4 participants |
Back to article view | Back to comp.lang.python
Run Python script from JS Gnarlodious <gnarlodious@gmail.com> - 2011-06-16 15:11 -0700
Re: Run Python script from JS Chris Rebert <clp2@rebertia.com> - 2011-06-16 16:55 -0700
Re: Run Python script from JS Tim Roberts <timr@probo.com> - 2011-06-16 23:53 -0700
Re: Run Python script from JS Tim Roberts <timr@probo.com> - 2011-06-17 10:07 -0700
Re: Run Python script from JS Daniel Kluev <dan.kluev@gmail.com> - 2011-06-17 18:36 +1100
| From | Gnarlodious <gnarlodious@gmail.com> |
|---|---|
| Date | 2011-06-16 15:11 -0700 |
| Subject | Run Python script from JS |
| Message-ID | <5346fc8e-9807-4752-bd3f-d4278e008379@y2g2000yqk.googlegroups.com> |
Is there any way to call a Py script from Javascript in a webpage? I don't have to tell you how messy JS is… -- Gnarlie
[toc] | [next] | [standalone]
| From | Chris Rebert <clp2@rebertia.com> |
|---|---|
| Date | 2011-06-16 16:55 -0700 |
| Message-ID | <mailman.46.1308268557.1164.python-list@python.org> |
| In reply to | #7772 |
On Thu, Jun 16, 2011 at 3:11 PM, Gnarlodious <gnarlodious@gmail.com> wrote: > Is there any way to call a Py script from Javascript in a webpage? Where is the script located, and where do you want it to run? Server or client? > I don't have to tell you how messy JS is… Indeed. jQuery dulls the pain though. Cheers, Chris -- http://rebertia.com
[toc] | [prev] | [next] | [standalone]
| From | Tim Roberts <timr@probo.com> |
|---|---|
| Date | 2011-06-16 23:53 -0700 |
| Message-ID | <mdulv6hbv8ci0dpe51cl23f1e0ciu95oil@4ax.com> |
| In reply to | #7772 |
Gnarlodious <gnarlodious@gmail.com> wrote: > >Is there any way to call a Py script from Javascript in a webpage? It is POSSIBLE to install Python as an active language, so that Internet Explorer lets you write <script language="python">. However, that only works on computers that have Python installed and activated. >I don't have to tell you how messy JS is… It doesn't have to be. Javascript is a surprisingly elegant language. -- Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc.
[toc] | [prev] | [next] | [standalone]
| From | Tim Roberts <timr@probo.com> |
|---|---|
| Date | 2011-06-17 10:07 -0700 |
| Message-ID | <mailman.82.1308330433.1164.python-list@python.org> |
| In reply to | #7806 |
Hansmeet Singh wrote: > for xhtml wouldnt the syntax be <script type = "text/python">?? > or am i on some other planet No, you're right. Before you get too excited, however, I want to emphasize how limited this option is. This will ONLY work if Python has been installed on the machine running the browser, AND if Python has been enabled as an ActiveScripting language on that machine. The Windows Python installations have the ability to do that, but it is not done automatically because the security implications are not fully understood. (Well, more precisely, there are known attack vectors that make it too dangerous for widespread deployment.) -- Tim Roberts, timr@probo.com Providenza & Boekelheide, Inc.
[toc] | [prev] | [next] | [standalone]
| From | Daniel Kluev <dan.kluev@gmail.com> |
|---|---|
| Date | 2011-06-17 18:36 +1100 |
| Message-ID | <mailman.66.1308296200.1164.python-list@python.org> |
| In reply to | #7772 |
On Fri, Jun 17, 2011 at 9:11 AM, Gnarlodious <gnarlodious@gmail.com> wrote: > Is there any way to call a Py script from Javascript in a webpage? You can use Pyjamas [1], Emscripten [2] or skulpt [3] for that. [1] http://pyjs.org/ [2] http://syntensity.com/static/python.html [3] http://www.skulpt.org/ -- With best regards, Daniel Kluev
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web