Re: HTML - WEB FORM running PYTHON SCRIPT

2012-12-23 Thread llanitedave
I'll second this.  Javascript is pretty comparable to Python in ease of 
learning, so that should be no obstacle.  As for keeping the code from being 
accessible, you can put the javascript in a separate file that's called from 
the guest's web page, but that's far from a foolproof method.  If you want the 
guest browser to do the calculation, there's no realistic way to keep the 
calculation code off of it.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: HTML - WEB FORM running PYTHON SCRIPT

2012-12-21 Thread Chris Angelico
On Sat, Dec 22, 2012 at 2:00 AM, Dimitrios Xenakis
 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
-- 
http://mail.python.org/mailman/listinfo/python-list


HTML - WEB FORM running PYTHON SCRIPT

2012-12-21 Thread Dimitrios Xenakis
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.

After lots of searching i think ironpython may be somehow helpfull to me but... 
im asking you too.
-- 
http://mail.python.org/mailman/listinfo/python-list