Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #35296

Re: HTML - WEB FORM running PYTHON SCRIPT

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'languages,': 0.04; 'newbie': 0.05; 'that?': 0.05; 'framework.': 0.07; 'thats': 0.07; 'python': 0.09; '22,': 0.09; 'normally,': 0.09; 'programmer': 0.11; 'language': 0.14; 'dec': 0.15; 'sat,': 0.15; 'calculator': 0.16; 'fits': 0.16; 'formula': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'ironpython': 0.16; 'subject:PYTHON': 0.16; 'wrote:': 0.17; 'fairly': 0.21; 'java': 0.21; "user's": 0.22; 'example': 0.23; 'work.': 0.23; 'host': 0.24; 'script': 0.24; 'header:In-Reply- To:1': 0.25; 'am,': 0.27; 'strongly': 0.27; 'message- id:@mail.gmail.com': 0.27; 'archives': 0.29; 'embed': 0.29; "i'm": 0.29; 'code': 0.31; 'server.': 0.32; 'computer.': 0.32; 'could': 0.32; 'to:addr:python-list': 0.33; 'another': 0.33; 'received:google.com': 0.34; 'list': 0.35; 'massive': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'tool': 0.36; 'but': 0.36; 'url:org': 0.36; 'possible': 0.37; 'option': 0.37; 'uses': 0.37; 'being': 0.37; 'why': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'sure': 0.38; 'there,': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'share': 0.61; 'bring': 0.62; "you'll": 0.62; 'developed': 0.62; 'worth': 0.63; 'making': 0.64; 'become': 0.65; 'wanting': 0.65; 'webpage': 0.65; 'fact,': 0.69; 'online': 0.70; 'internet': 0.71; 'url:htm': 0.71; 'calculations': 0.84; 'subject:WEB': 0.84; 'subject:running': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=aFxIQmY4sWE2XiCv/SXOchnig+RW/iQ0fwVxRhFczEU=; b=dYWBXvJmTu6bmbk4S6GTyZbFTWBdUiW/RaU+XtG8eL7/uxUVlQ9mcY3q53z3DbRLXJ jwOvqVymst2Q3bg/65bUafAHVL/FxkFe89xWdgfQpv+eh88CJanRlgufgMweyDzm3rq2 PUpu8fKRMdikPqagmGSa+CorzCqG9bzasHgNNPw1KVSJtMWBp0OawUwIS8mw/mVxuNTF ba8BCsVFIcn53dg5MUoUeabMD3V/2yYiT2Vqv8EjWi0vZ98HDGtHAi+IuDHfmgdtZMuv 0ZcDVDkTzNrcYR+TJaoZQu8kiOv+RWV9ldkHkzcdsqJXn0W55l0AeyLzAGwU8/byAnNf NOeg==
MIME-Version 1.0
In-Reply-To <febfd2a6-c30f-47bf-8b66-8b5544475f46@googlegroups.com>
References <febfd2a6-c30f-47bf-8b66-8b5544475f46@googlegroups.com>
Date Sat, 22 Dec 2012 02:27:58 +1100
Subject Re: HTML - WEB FORM running PYTHON SCRIPT
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1152.1356103682.29569.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1356103682 news.xs4all.nl 6950 [2001:888:2000:d::a6]:53525
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:35296

Show key headers only | View raw


On Sat, Dec 22, 2012 at 2:00 AM, Dimitrios Xenakis
<gouzounakis@hotmail.com> wrote:
> Hi there, i would like to ask.. i need to create an html webpage and bring that live on the internet via my host service, and i would also like a conversion calculator being showed on this website. Concersion tool such as Cels. to Kelvin. I have the calculation formula and i would like to script it in python and embed the conversion form in it. For example http://www.sciencegateway.org/tools/fwcal.htm .
>
> So im asking... how could i do that? I do not want the guest to download the program from this webpage. What i need is the form to be showed online and then the calculations being made from guest computer. Not server. Im newbie to java thats why this is not good option to me.

There have been a few attempts at making it possible to program a web
browser using Python. In fact, one is being discussed and developed
right now - search the list archives for Brython. But normally, the
way to script a user's browser is to use JavaScript. I'm not sure how
IronPython fits into your picture; it's an implementation of Python
that uses the .NET framework.

Unless you have a very good reason for wanting to use Python (eg you
want to share code with another Python project), I strongly recommend
learning JavaScript. What you're looking to do is fairly simple, and
not worth downloading to the user's browser a massive language engine
- because that's how systems like Brython work. Keep it simple, learn
a few languages, and you'll become a better programmer for it :)

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

HTML - WEB FORM running PYTHON SCRIPT Dimitrios Xenakis <gouzounakis@hotmail.com> - 2012-12-21 07:00 -0800
  Re: HTML - WEB FORM running PYTHON SCRIPT Chris Angelico <rosuav@gmail.com> - 2012-12-22 02:27 +1100
    Re: HTML - WEB FORM running PYTHON SCRIPT llanitedave <llanitedave@veawb.coop> - 2012-12-23 20:12 -0800
    Re: HTML - WEB FORM running PYTHON SCRIPT llanitedave <llanitedave@veawb.coop> - 2012-12-23 20:12 -0800

csiph-web