Re: [Tutor] python and javascript

2007-07-05 Thread Alan Gauld
"Picio" <[EMAIL PROTECTED]> wrote > I know It's a strange question, please don't become mad at me. I'm > currentlu involved in a project where I will use javascript and > python Not so strange. JavaScript is the undoubted king of browser side scripting, Python doesn't really play in that arena

[Tutor] python and javascript

2007-07-05 Thread Picio
Hello, I'd like to have some advice about a good mailing list about javascript. I'm asking here because I'd like to have both python and javascript people on the same mailing list. My idea is that some of you participates also in other mailing lists and maybe some of those are about javascript: kno

Re: [Tutor] Python and Javascript

2005-03-25 Thread Mike Hall
On Mar 25, 2005, at 4:53 PM, Alan Gauld wrote: intrigued by Dashboard, which will be in the next OSX release. It allows you to create "widgets" which are essentially little html pages There is an API for Dashboard and I'm pretty sure MacPython will support it - it covers most of the cocoa type stuf

Re: [Tutor] Python and Javascript

2005-03-25 Thread Alan Gauld
> intrigued by Dashboard, which will be in the next OSX release. It > allows you to create "widgets" which are essentially little html pages There is an API for Dashboard and I'm pretty sure MacPython will support it - it covers most of the cocoa type stuff. You might be better checking out the Ap

Re: [Tutor] Python and Javascript

2005-03-25 Thread Alan Gauld
> Ryan, I should clarify that what I'd like to do here is unrelated to > the web. I'm actually just interested in using a local html page as a > simple gui to launch python calls. So a JS event handler, say a button > click, would then call a JS function which inside of it would call a > Python fu

Re: [Tutor] Python and Javascript

2005-03-25 Thread Alan Gauld
> > If you are using WSH on Windows and have the Python active scripting > > I'm on OSX, and would be doing this through Safari most likely. oca might be capable of doing it but I know very little about oca, maybe some other Mac users can help? But I don't think it can be done inside Safari. Alan

Re: [Tutor] Python and Javascript

2005-03-25 Thread Mike Hall
Danny, great reply. I have looked a bit at pyObjC, and it does indeed look cool. I was however hoping to bypass that route altogether and go for the simplicity (I thought) that came with the html/js route. Perhaps a cocoa bundle is the only way to get what I'm after. Thanks, -MH On Mar 25, 2005

Re: [Tutor] Python and Javascript

2005-03-25 Thread Danny Yoo
> Yikes, that sounds pretty hairy. Maybe this kind of thing is not as > straight forward as anticipated. Why HTML you say? Well I've been > intrigued by Dashboard, which will be in the next OSX release. It allows > you to create "widgets" which are essentially little html pages that do > things.

Re: [Tutor] Python and Javascript

2005-03-25 Thread Mike Hall
On Mar 25, 2005, at 1:00 PM, Ryan Davis wrote: Ok, that explains a lot, but I don't know of any easy way to do have javascript talk to python. I can think of some horrible ways to do it, though. 1. Make a python web service running locally, and build up SOAP calls or HTTP posts to it. (same as I

Re: [Tutor] Python and Javascript

2005-03-25 Thread Mike Hall
On Mar 25, 2005, at 12:41 PM, Alan Gauld wrote: If you are using WSH on Windows and have the Python active scripting installed then yes. Similarly if you use IE as web browser then it can be done in a web page too. I'm on OSX, and would be doing this through Safari most likely. -MH ___

RE: [Tutor] Python and Javascript

2005-03-25 Thread Ryan Davis
HTML page? If not, making a GUI might be an alternative that sidesteps this altogether. Thanks, Ryan -Original Message- From: Mike Hall [mailto:[EMAIL PROTECTED] Sent: Friday, March 25, 2005 3:46 PM To: Ryan Davis Cc: tutor@python.org Subject: Re: [Tutor] Python and Javascript Ryan

Re: [Tutor] Python and Javascript

2005-03-25 Thread Mike Hall
done, but I imagine there are other ways. Thanks, Ryan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Hall Sent: Friday, March 25, 2005 2:18 PM To: tutor@python.org Subject: [Tutor] Python and Javascript I'm curious on whether or not JavaScri

Re: [Tutor] Python and Javascript

2005-03-25 Thread Alan Gauld
> I'm curious on whether or not JavaScript and Python can talk to each > other. Specifically, can a python function be called from within a JS > function? Admittedly this is probably more of a JavaScript than Python > question, but I'd love to know if anyone can at least point me in a > direction

RE: [Tutor] Python and Javascript

2005-03-25 Thread Ryan Davis
ginal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Hall Sent: Friday, March 25, 2005 2:18 PM To: tutor@python.org Subject: [Tutor] Python and Javascript I'm curious on whether or not JavaScript and Python can talk to each other. Specifically, can a python f

[Tutor] Python and Javascript

2005-03-25 Thread Mike Hall
I'm curious on whether or not JavaScript and Python can talk to each other. Specifically, can a python function be called from within a JS function? Admittedly this is probably more of a JavaScript than Python question, but I'd love to know if anyone can at least point me in a direction to res