What are the options?
The user to hits a web page, downloads code (Python I hope), execute it,
and be able to return the results. It needs to be able to go through
standard HTTP so that it could be run from behind a corporate firewall
without any other ports being opened.
Am I stuck doing an ActiveX control?
Yes, I know that downloading code and executing on the client machine is
a security risk. This will be for the employee's computers to connect.
This will not be a publicly available web page.
I have read some about AJAX. Is there an APAX coming for Python? 30 1923
AJAX works because browsers can execute javascript. I don't know of a
browser that can execute python. Basically your stuck with java or
javascript because everything else really isn't cross platform.
AJAX works because browsers can execute javascript. I don't know of a
browser that can execute python. Basically your stuck with java or
javascript because everything else really isn't cross platform.
Steve wrote: AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform.
Well, I guess the Grail browser could run Python, but I do not think I
can go there.
I need READ access to the users local disk storage. Can I do this in
Javascript, or should I bite the bullet and turn to ActiveX?
Steve wrote: AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform.
Well, I guess the Grail browser could run Python, but I do not think I
can go there.
I need READ access to the users local disk storage. Can I do this in
Javascript, or should I bite the bullet and turn to ActiveX?
You universally won't be able to do that with javascript, only with and
extension on firefox. ActiveX will limit you to windows only with ie.
Which isn't bad you still get a 80% market share.
You universally won't be able to do that with javascript, only with and
extension on firefox. ActiveX will limit you to windows only with ie.
Which isn't bad you still get a 80% market share.
In message <11*********************@g44g2000cwa.googlegroups. com>, Steve
<st*********@gmail.com> writes AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform.
ActiveState do a version of Python that can run in a script tag like
JavaScript and VBScript. This requires Windows Scripting Host. They also
do a similar thing for Perl, not sure about TCL.
The syntax is along the lines of
<SCRIPT language="PythonScript">
Python goes here
</SCRIPT>
I remember reading this about PerlScript and I'm pretty sure I'm correct
in remembering there is a PythonScript. Anyway you are limited to
ActiveState and Windows Scripting Host.
For pragmatic reasons I think you would be better concentrating on
JavaScript for the Client and your language of choice
Python/Ruby/Lua/whatever for the server part of AJAX.
Stephen
--
Stephen Kellett
Object Media Limited http://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting
In message <11*********************@g44g2000cwa.googlegroups. com>, Steve
<st*********@gmail.com> writes AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform.
ActiveState do a version of Python that can run in a script tag like
JavaScript and VBScript. This requires Windows Scripting Host. They also
do a similar thing for Perl, not sure about TCL.
The syntax is along the lines of
<SCRIPT language="PythonScript">
Python goes here
</SCRIPT>
I remember reading this about PerlScript and I'm pretty sure I'm correct
in remembering there is a PythonScript. Anyway you are limited to
ActiveState and Windows Scripting Host.
For pragmatic reasons I think you would be better concentrating on
JavaScript for the Client and your language of choice
Python/Ruby/Lua/whatever for the server part of AJAX.
Stephen
--
Stephen Kellett
Object Media Limited http://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting
On 11/18/05, Paul Watson <pw*****@redlinepy.com> wrote: Steve wrote: AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform. Well, I guess the Grail browser could run Python, but I do not think I can go there.
I need READ access to the users local disk storage. Can I do this in Javascript, or should I bite the bullet and turn to ActiveX?
This can only be done with scripts by disabling or bypassing browser
security restrictions. It can't even be done by zone in IE, only
globally, and I don't know if you can do it at all in Mozilla based
browsers.
A signed activex control or Java Applet (that registers for the
appropriate sandbox permissions) will work.
Overall, it's probably simplest not to do any of these and simply
write a standard application that you have users download and run.
This is the safest and most straightforward solution, and honestly
what you save in configuration managment when people call you
wondering why it doesn't work is probably worth the extra effort it
takes them to actually run your application.
-- http://mail.python.org/mailman/listinfo/python-list
On 11/18/05, Paul Watson <pw*****@redlinepy.com> wrote: Steve wrote: AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform. Well, I guess the Grail browser could run Python, but I do not think I can go there.
I need READ access to the users local disk storage. Can I do this in Javascript, or should I bite the bullet and turn to ActiveX?
This can only be done with scripts by disabling or bypassing browser
security restrictions. It can't even be done by zone in IE, only
globally, and I don't know if you can do it at all in Mozilla based
browsers.
A signed activex control or Java Applet (that registers for the
appropriate sandbox permissions) will work.
Overall, it's probably simplest not to do any of these and simply
write a standard application that you have users download and run.
This is the safest and most straightforward solution, and honestly
what you save in configuration managment when people call you
wondering why it doesn't work is probably worth the extra effort it
takes them to actually run your application.
-- http://mail.python.org/mailman/listinfo/python-list
Steve wrote: AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform
Don't jump to conclusions... http://dwahler.ky/python/
If you really, really want Python in a browser, it's certainly
possible. :)
-- David
Steve wrote: AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform
Don't jump to conclusions... http://dwahler.ky/python/
If you really, really want Python in a browser, it's certainly
possible. :)
-- David
Stephen Kellett wrote: In message <11*********************@g44g2000cwa.googlegroups. com>, Steve <st*********@gmail.com> writes
AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform.
ActiveState do a version of Python that can run in a script tag like JavaScript and VBScript. This requires Windows Scripting Host. They also do a similar thing for Perl, not sure about TCL.
See http://groups.google.com/group/comp....34acee66b40830
Kent
Stephen Kellett wrote: In message <11*********************@g44g2000cwa.googlegroups. com>, Steve <st*********@gmail.com> writes
AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform.
ActiveState do a version of Python that can run in a script tag like JavaScript and VBScript. This requires Windows Scripting Host. They also do a similar thing for Perl, not sure about TCL.
See http://groups.google.com/group/comp....34acee66b40830
Kent
Paul Watson wrote: I have read some about AJAX. Is there an APAX coming for Python?
Not until browsers have embedded Python interpreters. There's been talk
about doing this in Mozilla, but I don't think the talk has turned into
usable code, yet.
--
Robert Kern ro*********@gmail.com
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
Paul Watson wrote: I have read some about AJAX. Is there an APAX coming for Python?
Not until browsers have embedded Python interpreters. There's been talk
about doing this in Mozilla, but I don't think the talk has turned into
usable code, yet.
--
Robert Kern ro*********@gmail.com
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
David Wahler wrote: Steve wrote:
AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform
Don't jump to conclusions... http://dwahler.ky/python/
If you really, really want Python in a browser, it's certainly possible. :)
-- David
well in firefox 1.07 I seem to be getting
Error: unmarshal is not defined
Source File: http://dwahler.ky/python/
Line: 133
--
Robin Becker
David Wahler wrote: Steve wrote:
AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform
Don't jump to conclusions... http://dwahler.ky/python/
If you really, really want Python in a browser, it's certainly possible. :)
-- David
well in firefox 1.07 I seem to be getting
Error: unmarshal is not defined
Source File: http://dwahler.ky/python/
Line: 133
--
Robin Becker
Paul Watson <pw*****@redlinepy.com> writes: What are the options?
The user to hits a web page, downloads code (Python I hope), execute it, and be able to return the results. It needs to be able to go through standard HTTP so that it could be run from behind a corporate firewall without any other ports being opened.
Am I stuck doing an ActiveX control?
[...]
If you just need to talk on port 80, just go ahead and do that (module
socket, module httplib, module urllib2, urllib.getproxies, etc), and
write a normal desktop application.
If it must run in a browser, here is some food for thought:
Compile Python to JavaScript -- very cool http://www.aminus.org/blogs/index.ph...ajax_framework http://www.aminus.org/blogs/index.ph...ajax_is_in_svn
Plain old AJAX with Python on server side https://sourceforge.net/projects/json-py/ http://www.google.co.uk/search?q=aja...on&btnG=Search (um, ignore the 1st result)
Write Java applets in Python http://www.jython.org/
Flash 'local storage' http://www.macromedia.com/support/do...lp/help02.html
Sort-of AJAX-for-Flash stuff http://www.cs.unc.edu/~parente/tech/tr04.shtml http://www.simonf.com/flap/
Flash itself (boo;-) http://www.macromedia.com/
XUL and PyXPCOM (Firefox only) http://www.xulplanet.com/ http://trac.nunatak.com.au/projects/nufox
Firefox future capabilities in this direction (probably most of this
is relevant) http://www.mozilla.org/roadmap/gecko-1.9-roadmap.html http://weblogs.mozillazine.org/roadm...s/2005_09.html
John
Paul Watson <pw*****@redlinepy.com> writes: What are the options?
The user to hits a web page, downloads code (Python I hope), execute it, and be able to return the results. It needs to be able to go through standard HTTP so that it could be run from behind a corporate firewall without any other ports being opened.
Am I stuck doing an ActiveX control?
[...]
If you just need to talk on port 80, just go ahead and do that (module
socket, module httplib, module urllib2, urllib.getproxies, etc), and
write a normal desktop application.
If it must run in a browser, here is some food for thought:
Compile Python to JavaScript -- very cool http://www.aminus.org/blogs/index.ph...ajax_framework http://www.aminus.org/blogs/index.ph...ajax_is_in_svn
Plain old AJAX with Python on server side https://sourceforge.net/projects/json-py/ http://www.google.co.uk/search?q=aja...on&btnG=Search (um, ignore the 1st result)
Write Java applets in Python http://www.jython.org/
Flash 'local storage' http://www.macromedia.com/support/do...lp/help02.html
Sort-of AJAX-for-Flash stuff http://www.cs.unc.edu/~parente/tech/tr04.shtml http://www.simonf.com/flap/
Flash itself (boo;-) http://www.macromedia.com/
XUL and PyXPCOM (Firefox only) http://www.xulplanet.com/ http://trac.nunatak.com.au/projects/nufox
Firefox future capabilities in this direction (probably most of this
is relevant) http://www.mozilla.org/roadmap/gecko-1.9-roadmap.html http://weblogs.mozillazine.org/roadm...s/2005_09.html
John
Kent Johnson wrote: Stephen Kellett wrote:
In message <11*********************@g44g2000cwa.googlegroups. com>, Steve <st*********@gmail.com> writes
AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform. ActiveState do a version of Python that can run in a script tag like JavaScript and VBScript. This requires Windows Scripting Host. They also do a similar thing for Perl, not sure about TCL.
See http://groups.google.com/group/comp....34acee66b40830
Kent
Please correct my misunderstanding if I am wrong, but I thought that
this runs server-side only and requires Microsoft IIS as the httpd
server. Is that correct?
Kent Johnson wrote: Stephen Kellett wrote:
In message <11*********************@g44g2000cwa.googlegroups. com>, Steve <st*********@gmail.com> writes
AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform. ActiveState do a version of Python that can run in a script tag like JavaScript and VBScript. This requires Windows Scripting Host. They also do a similar thing for Perl, not sure about TCL.
See http://groups.google.com/group/comp....34acee66b40830
Kent
Please correct my misunderstanding if I am wrong, but I thought that
this runs server-side only and requires Microsoft IIS as the httpd
server. Is that correct?
David Wahler wrote: Steve wrote:
AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform
Don't jump to conclusions... http://dwahler.ky/python/
If you really, really want Python in a browser, it's certainly possible. :)
-- David
This looks interesting, but looks even more fragile than CrackAJAX. http://www.aminus.org/blogs/index.ph...ajax_framework
All of this comes down to Javascript which will still not allow me to
read local, client files. Right?
David Wahler wrote: Steve wrote:
AJAX works because browsers can execute javascript. I don't know of a browser that can execute python. Basically your stuck with java or javascript because everything else really isn't cross platform
Don't jump to conclusions... http://dwahler.ky/python/
If you really, really want Python in a browser, it's certainly possible. :)
-- David
This looks interesting, but looks even more fragile than CrackAJAX. http://www.aminus.org/blogs/index.ph...ajax_framework
All of this comes down to Javascript which will still not allow me to
read local, client files. Right?
Paul Watson wrote: Kent Johnson wrote: Stephen Kellett wrote: ActiveState do a version of Python that can run in a script tag like JavaScript and VBScript. This requires Windows Scripting Host. They also do a similar thing for Perl, not sure about TCL.
See http://groups.google.com/group/comp....34acee66b40830
Please correct my misunderstanding if I am wrong, but I thought that this runs server-side only and requires Microsoft IIS as the httpd server. Is that correct?
I haven't tried it but the referenced article seems to be about including Python in a web page to be run in-browser by IE.
Kent
Paul Watson wrote: Kent Johnson wrote: Stephen Kellett wrote: ActiveState do a version of Python that can run in a script tag like JavaScript and VBScript. This requires Windows Scripting Host. They also do a similar thing for Perl, not sure about TCL.
See http://groups.google.com/group/comp....34acee66b40830
Please correct my misunderstanding if I am wrong, but I thought that this runs server-side only and requires Microsoft IIS as the httpd server. Is that correct?
I haven't tried it but the referenced article seems to be about including Python in a web page to be run in-browser by IE.
Kent
John J. Lee wrote: Paul Watson <pw*****@redlinepy.com> writes:
What are the options?
The user to hits a web page, downloads code (Python I hope), execute it, and be able to return the results. It needs to be able to go through standard HTTP so that it could be run from behind a corporate firewall without any other ports being opened.
Am I stuck doing an ActiveX control?
[...]
If you just need to talk on port 80, just go ahead and do that (module socket, module httplib, module urllib2, urllib.getproxies, etc), and write a normal desktop application.
If it must run in a browser, here is some food for thought:
Compile Python to JavaScript -- very cool
http://www.aminus.org/blogs/index.ph...ajax_framework
http://www.aminus.org/blogs/index.ph...ajax_is_in_svn
Plain old AJAX with Python on server side
https://sourceforge.net/projects/json-py/
http://www.google.co.uk/search?q=aja...on&btnG=Search (um, ignore the 1st result)
Write Java applets in Python
http://www.jython.org/
Flash 'local storage'
http://www.macromedia.com/support/do...lp/help02.html
Sort-of AJAX-for-Flash stuff
http://www.cs.unc.edu/~parente/tech/tr04.shtml http://www.simonf.com/flap/
Flash itself (boo;-)
http://www.macromedia.com/
XUL and PyXPCOM (Firefox only)
http://www.xulplanet.com/
http://trac.nunatak.com.au/projects/nufox
Firefox future capabilities in this direction (probably most of this is relevant)
http://www.mozilla.org/roadmap/gecko-1.9-roadmap.html
http://weblogs.mozillazine.org/roadm...s/2005_09.html
John
I appreciate your long list of references. For this task, I think the
first answer may have to be the one with which to go. A standard
application that talks through port 80 and perhaps can use proxies.
My desire to have the code distributed through a web page is just to
ensure that the user is running the correct version and has not hacked
it in any way. I suppose I can checksum the local client application
and compare it with what is on the server. Then, make a way to
update... ARGH!
Even when future browsers embed Python interpreters, the security
considerations may be such that no one will want to accept code which
can do much locally anyway. Probably the right thing for the public
Internet, Makes it harder to develop internal system management tools.
John J. Lee wrote: Paul Watson <pw*****@redlinepy.com> writes:
What are the options?
The user to hits a web page, downloads code (Python I hope), execute it, and be able to return the results. It needs to be able to go through standard HTTP so that it could be run from behind a corporate firewall without any other ports being opened.
Am I stuck doing an ActiveX control?
[...]
If you just need to talk on port 80, just go ahead and do that (module socket, module httplib, module urllib2, urllib.getproxies, etc), and write a normal desktop application.
If it must run in a browser, here is some food for thought:
Compile Python to JavaScript -- very cool
http://www.aminus.org/blogs/index.ph...ajax_framework
http://www.aminus.org/blogs/index.ph...ajax_is_in_svn
Plain old AJAX with Python on server side
https://sourceforge.net/projects/json-py/
http://www.google.co.uk/search?q=aja...on&btnG=Search (um, ignore the 1st result)
Write Java applets in Python
http://www.jython.org/
Flash 'local storage'
http://www.macromedia.com/support/do...lp/help02.html
Sort-of AJAX-for-Flash stuff
http://www.cs.unc.edu/~parente/tech/tr04.shtml http://www.simonf.com/flap/
Flash itself (boo;-)
http://www.macromedia.com/
XUL and PyXPCOM (Firefox only)
http://www.xulplanet.com/
http://trac.nunatak.com.au/projects/nufox
Firefox future capabilities in this direction (probably most of this is relevant)
http://www.mozilla.org/roadmap/gecko-1.9-roadmap.html
http://weblogs.mozillazine.org/roadm...s/2005_09.html
John
I appreciate your long list of references. For this task, I think the
first answer may have to be the one with which to go. A standard
application that talks through port 80 and perhaps can use proxies.
My desire to have the code distributed through a web page is just to
ensure that the user is running the correct version and has not hacked
it in any way. I suppose I can checksum the local client application
and compare it with what is on the server. Then, make a way to
update... ARGH!
Even when future browsers embed Python interpreters, the security
considerations may be such that no one will want to accept code which
can do much locally anyway. Probably the right thing for the public
Internet, Makes it harder to develop internal system management tools.
Paul Watson wrote:
....... -- David
This looks interesting, but looks even more fragile than CrackAJAX.
http://www.aminus.org/blogs/index.ph...ajax_framework
All of this comes down to Javascript which will still not allow me to read local, client files. Right?
I think reading files is easy; just get the client browser to submit a
form with the file as an upload. Hard part is getting the path(s) right.
--
Robin Becker
Paul Watson wrote:
....... -- David
This looks interesting, but looks even more fragile than CrackAJAX.
http://www.aminus.org/blogs/index.ph...ajax_framework
All of this comes down to Javascript which will still not allow me to read local, client files. Right?
I think reading files is easy; just get the client browser to submit a
form with the file as an upload. Hard part is getting the path(s) right.
--
Robin Becker This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Billy Jacobs |
last post by:
I have a website which has both secure and non-secure
pages. I want to uses forms authentication. How do I
accomplish this?
Originally I had my web.config file in the root with Forms...
|
by: John Morgan |
last post by:
Though I have designed and implemented a number of large reasonably
well received web sites I do not consider myself a graphics designer
I am now for the first time going to work with a ...
|
by: Jeremy Ames |
last post by:
I have created a web application that uses a custom control and a web
service on my local system. I have gotten all of the bugs worked out on my
local system and now it is time to move it to the...
|
by: C. Woody Butler |
last post by:
I have a strange problem with a website and a web service.
They're both on the same server, running Windows server 2003. The website is
set up as the default website for the server.
I've got...
|
by: Lucas Fletcher |
last post by:
Hello,
I was wondering how I can reference assemblies from web.config files
residing in subdirectories without having to create a new project for each
web.config-containing subdirectory?
I...
|
by: Ruslan |
last post by:
Hello,
I have to project: one ASN.NET project and another - Web Service in the same
solution. I want to use the same web.config and global.asax files. Does it
possible?
|
by: Erick Lopez |
last post by:
When I send my web page to browser in ouput windows recibe this message
and the web page the error BC32400
Please Help me
Auto-attach to process ' aspnet_wp.exe' on machine 'TABLET'...
|
by: Michael Herman \(Parallelspace\) |
last post by:
1. What are some compelling solutions for using Master/Content pages with
Web Pages?
2. If a content area has a web part zone with web parts, what is the user
experience like when "editting" the...
|
by: job |
last post by:
In a sharepoint setup using smartpart to load our user controls using
enterprise blocks (data) we are getting some strange errors (logged to
the event log). We dont get the error all the time. When...
|
by: Jeff |
last post by:
Hey
asp.net 2.0
My asp.net 2.0 project has got a assembly load problem:
Some of my web.config settings:
<membership defaultProvider="AH_MembershipProvider"
userIsOnlineTimeWindow="15">
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |