Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.

Learn More!


Download to Enter
| Contest Rules

Tutorials | Forums

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 13th, 2005, 07:02 PM
Dietrich's Avatar
Dietrich Dietrich is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 350 Dietrich User rank is Sergeant (500 - 2000 Reputation Level)Dietrich User rank is Sergeant (500 - 2000 Reputation Level)Dietrich User rank is Sergeant (500 - 2000 Reputation Level)Dietrich User rank is Sergeant (500 - 2000 Reputation Level)Dietrich User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 11 h 53 m 20 sec
Reputation Power: 26
Smile Python vs Javascript

I know you can use Python as a scripting language instead of javascript for your web-browser's html files. For some odd reason I lost all the original information on this. Can anybody help me in refreshing my memory.

Reply With Quote
  #2  
Old August 13th, 2005, 07:10 PM
SimonGreenhill's Avatar
SimonGreenhill SimonGreenhill is offline
(retired)
Dev Shed God 11th Plane (10000 - 10499 posts)
 
Join Date: Dec 2003
Location: The Laboratory
Posts: 10,101 SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)SimonGreenhill User rank is General 6th Grade (Above 100000 Reputation Level)  Folding Points: 4925 Folding Title: Novice Folder
Time spent in forums: 3 Months 3 Weeks 6 h 8 m 34 sec
Reputation Power: 0
Facebook
No, you can't replace (client-side) javascript with Python. You can replace a server-side language (PHP/Perl/Asp/*.Net) with Python

--Simon

Reply With Quote
  #3  
Old August 13th, 2005, 08:56 PM
CyBerHigh CyBerHigh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 461 CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 12 h 36 m 28 sec
Reputation Power: 22
Send a message via AIM to CyBerHigh
Quote:
Originally Posted by SimonGreenhill
No, you can't replace (client-side) javascript with Python. You can replace a server-side language (PHP/Perl/Asp/*.Net) with Python

--Simon


Simon is exactly right, you cannot use it as a client side scripting language like javascript.

Sorry simon I would have given you some points for it but it wont let me, i guess my 3 really wouldn't have made to much of a differance anyway..lol
Comments on this post
SimonGreenhill agrees: I'm not exactly hurting for points, eh?
__________________
My Site:
http://www.coryhardman.com

Reply With Quote
  #4  
Old August 14th, 2005, 04:10 AM
Markup's Avatar
Markup Markup is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Location: The Holographic Universe
Posts: 75 Markup User rank is Lance Corporal (50 - 100 Reputation Level)Markup User rank is Lance Corporal (50 - 100 Reputation Level)Markup User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 20 h 48 m 29 sec
Reputation Power: 8
Quote:
Originally Posted by Dietrich
I know you can use Python as a scripting language instead of javascript for your web-browser's html files. For some odd reason I lost all the original information on this. Can anybody help me in refreshing my memory.


Well I have read about this too. You can use Mark Hammonds Win32 extensions to allow you to use Python as a client-side scripting language in Internet Explorer. Also the Grail browser lets you use Python for client-side scripting and even applets. Searching on usenet turns up quite a few results: comp.lang.python
Comments on this post
SimonGreenhill agrees: well, you learn something every day Thanks!

Reply With Quote
  #5  
Old August 14th, 2005, 04:29 AM
DevCoach DevCoach is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2004
Location: London, England
Posts: 1,585 DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level)DevCoach User rank is General 6th Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 4 Days 2 h 58 m 23 sec
Reputation Power: 1371
Quote:
Originally Posted by Markup
Well I have read about this too. You can use Mark Hammonds Win32 extensions to allow you to use Python as a client-side scripting language in Internet Explorer


This used to be true in earlier versions of Python, which had a restricted execution mode (rexec module). This was removed in (I think) version 2.2, since changes to the language made it insecure. You would also need the user to have Python installed, which would severely limit the audience for your website.

However it may be possible to use py2exe to create a python ActiveX plugin, since this is essentially a COM server. I have never done it though, so I don't know how much work it would involve or even if it is possible. It would also limit the audience to people who use IE and are dumb enough to give websites total control of their PC (admittedly that's a lot of people).

Dave

Reply With Quote
  #6  
Old August 14th, 2005, 08:16 AM
hydroxide hydroxide is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 78 hydroxide User rank is Lance Corporal (50 - 100 Reputation Level)hydroxide User rank is Lance Corporal (50 - 100 Reputation Level)hydroxide User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 21 h 40 m 18 sec
Reputation Power: 8
Grail has joined the choir eternal - last release was five years back, probably for 1.5.2, and the last CVS update was 4 years back...

mochikit is a new javascript library to make javascript a little more Pythonic.

There's also ming, which allows you to code for Shockwave Flash in Python

--OH.

Reply With Quote
  #7  
Old August 14th, 2005, 04:19 PM
Rc2001 Rc2001 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 85 Rc2001 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 2 m 50 sec
Reputation Power: 7
Quote:
Originally Posted by SimonGreenhill
No, you can't replace (client-side) javascript with Python. You can replace a server-side language (PHP/Perl/Asp/*.Net) with Python

--Simon


ok so is it possible to make a forum wit python instead of php?
if so how much work is involved...im still a newbie so reading material of sum sort of this python server-side programming wud do jus fine....or damn goood explainations lol ty

Reply With Quote
  #8  
Old August 14th, 2005, 06:22 PM
CyBerHigh CyBerHigh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 461 CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 12 h 36 m 28 sec
Reputation Power: 22
Send a message via AIM to CyBerHigh
Quote:
Originally Posted by Rc2001
ok so is it possible to make a forum wit python instead of php?
if so how much work is involved...im still a newbie so reading material of sum sort of this python server-side programming wud do jus fine....or damn goood explainations lol ty


well yes actually, it is quite possible! I am doing that right now. Well actaully I am creating a whole web site out of python with mod_python. Forum included. My site: http://gurusnetwork.org/. I decided to go with python since i personly do not like php. I have used php for quite a few years and i just never have been happy. However with python I am having to make everything from scratch because there really isn't much done yet for python and web work, well publicly. If you would like to view my source code(its going to be released when my web site is a bit more operational anyway) just email or im me and i will happly get it together for you to look at.

I think its probbaly a lot more involved than wiht php since with php there is a lot of code that has already been done. Like a bbcode translator, you can use anyones with your wbe site. I personly havn't found one yet for python except for the one i wrote. But its fun, if oyu like python then its even better. Its probably best if you can get a bit of help though, which i am always looking for, since there truly is just a lot of stuff to be done.

However good luck if you need anything I feel I am getting pretty good with the psp handler.

Reply With Quote
  #9  
Old August 15th, 2005, 12:49 AM
Rc2001 Rc2001 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 85 Rc2001 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 2 m 50 sec
Reputation Power: 7
indeed i will be lookin forward to seein ur page 1/2 done or complete but letme kno when ur done n ill check out ur source.

is python harder then php when it comes to the forum.....and the output of it will it be similar to this forum or way dif

ty 4reply

Reply With Quote
  #10  
Old August 15th, 2005, 06:31 AM
CyBerHigh CyBerHigh is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 461 CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level)CyBerHigh User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 12 h 36 m 28 sec
Reputation Power: 22
Send a message via AIM to CyBerHigh
umm, i feel that it is easyer, but then again I am about 100x better at python than i am at php. I think it is a huge joice of option. I think that php has a lot more tools built in for just web work, while python you need to get things like mod_python or mysqldb and such to make it truely usfull. However that really isn't more work. Just part of the server set up proccess. It is also hard to find web hosts that offer mod_python, however one that I know of is http://cubichosting.net I know that because I use them as a mirror for my web site. I also run my own server at home because it truly is hard to find servers. But cubic hosting is a great host.

The outcome can be however you want it, to get it this complex as the dev shed forum. But it is possible. This one is writen in php, but it can be done just the same in python, just depends on how you do it.

Reply With Quote
  #11  
Old August 16th, 2005, 12:24 AM
Rc2001 Rc2001 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 85 Rc2001 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 2 m 50 sec
Reputation Power: 7
Quote:
Originally Posted by CyBerHigh
umm, i feel that it is easyer, but then again I am about 100x better at python than i am at php. I think it is a huge joice of option. I think that php has a lot more tools built in for just web work, while python you need to get things like.....


ook ill have to look into that myself but ty

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Python vs Javascript


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 8 - Follow our Sitemap