Re: Python in HTML Application (HTA)

2007-10-13 Thread M�ta-MCI (MVP)
Hi! I give a solution in the french newsgroup. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python in HTML Application (HTA)

2007-10-13 Thread Salvatore
In fact, whatever I do in "infoSystem" (modifiying style attributes of an object, change cursor appearance...), changes are only reflected at the end of the function call ... Salvatore a écrit : > Hello, > > I encounter a display problem in one of my script > > ... > ... > def setValue(divid,

Python in HTML Application (HTA)

2007-10-13 Thread Salvatore
Hello, I encounter a display problem in one of my script ... ... def setValue(divid,data): elt = document.getElementById(divid) elt.innerHTML = data def infoSystem(): setValue("info","Please Wait") #update div "info" c = os.popen(cmdDisk%Server).read() setValue('tab

Re: Embed Python in HTML?

2006-09-25 Thread Fredrik Lundh
Sean Hammond wrote: > Forgive my ignorance, but I sometimes write custom dynamic web-pages > using PHP, by simply embedding PHP in HTML with tags, and > renaming for example index.html to index.php and making it executable. I > only use this for very minor things like calling a script, and don't

Re: Embed Python in HTML?

2006-09-25 Thread Ramon Diaz-Uriarte
On 9/25/06, Sean Hammond <[EMAIL PROTECTED]> wrote: > Forgive my ignorance, but I sometimes write custom dynamic web-pages > using PHP, by simply embedding PHP in HTML with tags, and > renaming for example index.html to index.php and making it executable. I > only use this for very minor things li

Embed Python in HTML?

2006-09-25 Thread Sean Hammond
Forgive my ignorance, but I sometimes write custom dynamic web-pages using PHP, by simply embedding PHP in HTML with tags, and renaming for example index.html to index.php and making it executable. I only use this for very minor things like calling a script, and don't really want to learn any more

Re: Python in HTML

2006-06-25 Thread Tim Roberts
[EMAIL PROTECTED] wrote: > >Does anyone know of a way to embed python scripts into html, much like >you would javascript or php? I do not want to use this to connect to a >database, but rather for a functional script to be called when a user >clicks on a link to open a page. If you are running Win

What is that, swearing (was: Python in HTML)

2006-06-25 Thread Mirco Wahab
Thus spoke Andy Dingley <[EMAIL PROTECTED]> (on 2006-06-23 18:10): > [EMAIL PROTECTED] wrote: > >> Python, like it's (evil?) cousin Perl, > > Isn't that evil cousin Ruby? Perl's the mad old grandmother in the > attic, spewing out incomprehensible [EMAIL PROTECTED]&% swearing all day. There's a

Re: Python in HTML

2006-06-25 Thread Mirco Wahab
Thus spoke [EMAIL PROTECTED] (on 2006-06-23 17:40): > Does anyone know of a way to embed python scripts into html, much like > you would javascript or php? I do not want to use this to connect to a > database, but rather for a functional script to be called when a user > clicks on a link to open a

Re: Python in HTML

2006-06-23 Thread Mitja Trampus
[EMAIL PROTECTED] wrote: > Does anyone know of a way to embed python scripts into html, much like > you would javascript or php? Two very different things, JS and PHP... First make sure you know what you're after. If you want PHP-like embedding of code, google for "python server pages". Several

Re: Python in HTML

2006-06-23 Thread Andy Dingley <[EMAIL PROTECTED]>
[EMAIL PROTECTED] wrote: > Python, like it's (evil?) cousin Perl, Isn't that evil cousin Ruby? Perl's the mad old grandmother in the attic, spewing out incomprehensible [EMAIL PROTECTED]&% swearing all day. > can be used as a CGI. If you > don't have one already, go download Apache server to pl

Re: Python in HTML

2006-06-23 Thread [EMAIL PROTECTED]
Bruno Desthuilliers wrote: > [EMAIL PROTECTED] wrote: > > Does anyone know of a way to embed python scripts into html, much like > > you would javascript or php? > > I think you'd better learn the profound difference between client-side > and server-side scripting. Indeed. You really should Google

Re: Python in HTML

2006-06-23 Thread Bruno Desthuilliers
[EMAIL PROTECTED] wrote: > Does anyone know of a way to embed python scripts into html, much like > you would javascript or php? I think you'd better learn the profound difference between client-side and server-side scripting. > I do not want to use this to connect to a > database, but rather fo

Python in HTML

2006-06-23 Thread brochu121
Does anyone know of a way to embed python scripts into html, much like you would javascript or php? I do not want to use this to connect to a database, but rather for a functional script to be called when a user clicks on a link to open a page. -- http://mail.python.org/mailman/listinfo/python-li

Re: embedding python in HTML

2006-02-22 Thread Magnus Lycka
John Salerno wrote: > Thanks, that makes much more sense to me now. But does this mean I can > still write HTML normally? What would an example be of having HTML > within a Python script? I have a hard time picturing this, because I > imagine that most of my pages will be almost all HTML, with j

Re: embedding python in HTML

2006-02-18 Thread Christoph Zwerschke
Rene Pijlman wrote: > There's also PSP: > http://www.ciobriefings.com/psp/ Another incarnation of PSP can be used as part of Webware for Python (http://www.w4py.org). And one of the more modern solutions that should be mentioned is Kid (http://kid.lesscode.org). -- Christoph -- http://mail.py

Re: embedding python in HTML

2006-02-18 Thread Steve Holden
bruno at modulix wrote: > John Salerno wrote: > >>Rene Pijlman wrote: >> >> >>>John Salerno: >>>[Python alternative for PHP] >>> >>> So to do this with Python, do I simply integrate it into the HTML as above, with no extra steps? >>> >>> >>>You'd need something like the PHP engine, that u

Re: embedding python in HTML

2006-02-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, John Salerno <[EMAIL PROTECTED]> wrote: >bruno at modulix wrote: > >> You've got to understand that Python is *not* a 'ServerPage' language >> (-> php, asp, jsp etc) in itself. Your server can now run python, fine, >> but *how* ? CGI ? FastCGI ? mod_python ? other ?

Re: embedding python in HTML

2006-02-17 Thread Georg Brandl
John Salerno wrote: > Kirk McDonald wrote: > >> A more common (and bare-metal) approach is CGI. In CGI, a request for a >> page runs a script, the output of which is the HTML page. I think this >> only requires that the server has Python installed, which you have said >> is the case. Python has

Re: embedding python in HTML

2006-02-17 Thread John Salerno
Kirk McDonald wrote: > A more common (and bare-metal) approach is CGI. In CGI, a request for a > page runs a script, the output of which is the HTML page. I think this > only requires that the server has Python installed, which you have said > is the case. Python has signifigant standard librar

Re: embedding python in HTML

2006-02-17 Thread John Salerno
John Salerno wrote: > I'm hoping someone can give me the basics for how to do very simple > things with Python scripts from within my HTML. For example, I know that > I can do this in PHP: > > Here is a header > // include some external html > More html > > So to do this with Python, do I s

Re: embedding python in HTML

2006-02-17 Thread John Salerno
Rene Pijlman wrote: > John Salerno: > [Python alternative for PHP] >> So to do this with Python, do I simply integrate it into the HTML as >> above, with no extra steps? > > You'd need something like the PHP engine, that understands Python rather > than PHP. My web server can run Python, fortun

embedding python in HTML

2006-02-17 Thread John Salerno
I'm hoping someone can give me the basics for how to do very simple things with Python scripts from within my HTML. For example, I know that I can do this in PHP: Here is a header // include some external html More html So to do this with Python, do I simply integrate it into the HTML as a

Re: embedding python in HTML

2006-02-17 Thread Kirk McDonald
John Salerno wrote: > bruno at modulix wrote: > >> You've got to understand that Python is *not* a 'ServerPage' language >> (-> php, asp, jsp etc) in itself. Your server can now run python, fine, >> but *how* ? CGI ? FastCGI ? mod_python ? other ? (hint: it's probably >> just plain old CGI...) >

Re: embedding python in HTML

2006-02-17 Thread Paul Boddie
Rene Pijlman wrote: > John Salerno: > [Python alternative for PHP] > >So to do this with Python, do I simply integrate it into the HTML as > >above, with no extra steps? > > You'd need something like the PHP engine, that understands Python rather > than PHP. [...] > There's also PSP: > http://www

Re: embedding python in HTML

2006-02-16 Thread Rene Pijlman
John Salerno: [Python alternative for PHP] >So to do this with Python, do I simply integrate it into the HTML as >above, with no extra steps? You'd need something like the PHP engine, that understands Python rather than PHP. I've used Cheetah: http://www.cheetahtemplate.org/ Our BDFL seems to

Re: embedding python in HTML

2006-02-16 Thread John Salerno
bruno at modulix wrote: > You've got to understand that Python is *not* a 'ServerPage' language > (-> php, asp, jsp etc) in itself. Your server can now run python, fine, > but *how* ? CGI ? FastCGI ? mod_python ? other ? (hint: it's probably > just plain old CGI...) So does that mean I need to ha

Re: embedding python in HTML

2006-02-16 Thread bruno at modulix
John Salerno wrote: > Rene Pijlman wrote: > >> John Salerno: >> [Python alternative for PHP] >> >>> So to do this with Python, do I simply integrate it into the HTML as >>> above, with no extra steps? >> >> >> You'd need something like the PHP engine, that understands Python rather >> than PHP. >