Executing a python script from an HTML link?
Andrew Chalk
achalk at XXXmagnacartasoftware.com
Tue Sep 23 13:32:45 EDT 2003
More information about the Python-list mailing list
Tue Sep 23 13:32:45 EDT 2003
- Previous message (by thread): Executing a python script from an HTML link?
- Next message (by thread): Executing a python script from an HTML link?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Thanks. I want to run the script on the server. The problem is that I don't have an html page as an HREF. Viz: <tr><A HREF="Fred.htm">Fred</A> What replaces Fred.htm to invoke a server-side script? Regards. "John Roth" <newsgroups at jhrothjr.com> wrote in message news:vn0tdkg96jlcc7 at news.supernews.com... > > "Andrew Chalk" <achalk at XXXmagnacartasoftware.com> wrote in message > news:tMYbb.382$zy3.566196578 at newssvr11.news.prodigy.com... > > Is this possible? In my CGI app. I display a web page with a link > (anchor). > > When the link is clicked I want to exectute a python script rather than go > > to an HTML page. > > Do you want to run the script on the server or the client? If you > want to run it on the client, you can use Python instead of Javascript > (or in addition to Javascript) in the web page. Look at the <script> > tag for the language (I think that's the one - I haven't looked it up > recently) attribute. Otherwise, just invoke Python the same way you would > invoke any other executable, and use the script name as the > first parameter. > > John Roth > > > > > Many thanks. > > > > > >
- Previous message (by thread): Executing a python script from an HTML link?
- Next message (by thread): Executing a python script from an HTML link?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list