Hi everyone,
How can I pass a string generated from python cgi at server side
to a
javascript function as an argument at client side?
Here is my case:
1. client side:
"load" is a javascript function in a html page. It starts the
python CGI "test.py" via Apache:
...
load("test.py" )
Hi everyone,
How can I transfer a string from a cgi at server side to a
javascript function at client side as an argument? Here is my case:
1. client side: javascript in html page:
...
mygrid = new dhtmlXGridObject('gridbox');
...
var cgi3 = "/bop-cgi/xbop";
cgi3 += "?requestIds=[wisco.mPr
On 12月29日, 下午5时06分, "Mark Tolonen" wrote:
> "zxo102" wrote in message
>
> news:2560a6e0-c103-46d2-aa5a-8604de4d1...@b38g2000prf.googlegroups.com...
>
> > I have a list in a dictionary and want to insert it into the html
> > file. I test it with follo
On 12月27日, 下午4时08分, "Gabriel Genellina"
wrote:
> En Sat, 27 Dec 2008 03:03:24 -0200,zxo102 escribió:
>
>
>
> > On 12月26日, 下午3时16分, "Mark Tolonen"
> > wrote:
>
> >> I was able to display 中文 successfully with this code:
>
> >>
On 12月26日, 下午3时16分, "Mark Tolonen" wrote:
> "zxo102" wrote in message
>
> news:979fdf6d-0500-47ba-87fd-0f0361ca3...@p2g2000prf.googlegroups.com...
>
>
>
>
>
> > On 12月26日, 上午4时58分, "Gabriel Genellina"
> > wrote:
> >> En
On 12月26日, 上午4时58分, "Gabriel Genellina"
wrote:
> En Thu, 25 Dec 2008 07:27:03 -0200, zxo102 escribió:
>
>
>
> > On 12月25日, 下午3时35分, "Chris Rebert" wrote:
> >> On Wed, Dec 24, 2008 at 11:29 PM, zxo102 wrote:
> >> > Hi,
> >> >
On 12月25日, 下午3时35分, "Chris Rebert" wrote:
> On Wed, Dec 24, 2008 at 11:29 PM, zxo102 wrote:
> > Hi,
> > I retrieve some info in Chinese from postgresql and assign it to a
> > variable 'info' defined in javascript of a html page:
> > var info
文','中文','中文'] , then everything works
fine.
Anybody knows how to solve this problem?
Thanks in advance.
zxo102
--
http://mail.python.org/mailman/listinfo/python-list
On 10月12日, 上午1时13分, Terry Reedy <[EMAIL PROTECTED]> wrote:
> Unknown wrote:
> > On2008-10-11,zxo102<[EMAIL PROTECTED]> wrote:
>
> >> I have a system. An instrument attched to 'com1' is wireless connected
> >> to many sensors at different locati
On 10月11日, 下午11时00分, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On2008-10-11,zxo102<[EMAIL PROTECTED]> wrote:
>
> > I have a system. An instrument attched to 'com1' is wireless connected
> > to many sensors at different locations. The instrument can forw
Hello All,
I have a system. An instrument attched to 'com1' is wireless connected
to many sensors at different locations. The instrument can forward
the "commands" (from pyserial's write()) to those sensors. Based on
the "commands", the sensors keep sending corresponding data back to
the instr
On 9月29日, 下午7时29分, Steve Holden <[EMAIL PROTECTED]> wrote:
> zxo102 wrote:
> > Hi,
> > I am trying to use python module smtplib to send my email out on
> > window xp (localhost).
>
> > import smtplib
> > server = smtplib.SMTP('localhost
On 9月29日, 下午2时53分, Lawrence D'Oliveiro <[EMAIL PROTECTED]
central.gen.new_zealand> wrote:
> In message
> <[EMAIL PROTECTED]>, zxo102
> wrote:
>
> > SMTPServerDisconnected: Connection unexpectedly closed
>
> Does the SMTP server on localhost mention anyth
Hi,
I am trying to use python module smtplib to send my email out on
window xp (localhost).
import smtplib
server = smtplib.SMTP('localhost')
but I got the error information as follows:
Traceback (most recent call last):
File "", line 1, in ?
File "c:\python24\lib\smtplib.py", line 244, in
On 5月25日, 上午6时59分, zxo102 <[EMAIL PROTECTED]> wrote:
> But this is not "\xED\x6F\x3C\x01". I need it for
> struct.unpack('f',"\xED\x6F\x3C\x01") to calculate the decimal value
> (IEEE 754).
> Any other suggestions?
>
> ouyang
>
> On
But this is not "\xED\x6F\x3C\x01". I need it for
struct.unpack('f',"\xED\x6F\x3C\x01") to calculate the decimal value
(IEEE 754).
Any other suggestions?
ouyang
On 5月25日, 上午6时46分, Sebastian 'lunar' Wiesner <[EMAIL PROTECTED]>
wrote:
> -BEGIN
Hi,
how to change the hexadecimal 'ED6F3C01' (or 'ED 6F 3C 01') to
"\xED\x6F\x3C\x01" in python coding?
When I take 'ED6F3C01' as a string and insert '\x' into it, I just got
the error information : invalid \x escape.
Thanks.
ouyang
--
http://mail.python.org/mailman/listinfo/python-list
On 8 3 , 9 34 , [EMAIL PROTECTED] wrote:
> On Aug 2, 10:46 pm, zxo102 <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I am new in GIS area and need your suggestions for where I can
> > start from. I have a python based web application with a database.
> > Now I
Hi,
I am new in GIS area and need your suggestions for where I can
start from. I have a python based web application with a database.
Now I would like to add a GIS map into my application. When a user
clicks a certain area in the GIS map, it can grab the data from the
database via my python ba
On 7 17 , 3 01 , "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> zxo102 schrieb:
>
>
>
>
>
> > Hi,
> >I would like to combine two python applications into a single one
> > with two threadings. Both of them have a "while 1:" loop r
Hi,
I would like to combine two python applications into a single one
with two threadings. Both of them have a "while 1:" loop respectively.
For example, one application is to monitoring serial port 'com1' and
another application is a TCP/IP server which has used threadings
already. I write the
On 3月4日, 上午6时50分, Thomas Heller <[EMAIL PROTECTED]> wrote:
> zxo102 schrieb:
>
> > Hi there,
> >I py2exe my test.py as test.exe with a lot of dll and pyc in that
> > directory. If I move the test.exe into another directory and run it
> > from there
Hi there,
I py2exe my test.py as test.exe with a lot of dll and pyc in that
directory. If I move the test.exe into another directory and run it
from there, it gives me an error " LoadLibrary(pythondll) failed...
python24.dll". How can I set it up correctly for this test.exe to
run? Thanks.
"That twisted example only accepts one client connection" if only one
port is available.
zxo102 写道:
> Bryan,
>Thanks for your note. Finally, I have made "one listener socket for
> all the connections" work plus Queue-communication between the threads
> in
socket-all the connections" but failed. That twisted example
only accepts one client connection. I have printed out the Twisted help
file (256 pages). Too much to read.
Ouyang
Bryan Olson 写道:
> zxo102 wrote:
> >I am doing a small project using socket server and thread in python
Thanks for your guys. I got it. I thought Queue can be used anywhere
in the code and the second b.get() would return a "None".
Ouyang
zxo102 写道:
> Hi,
>I am using Queue from python2.4. Here is what happen to me:
>
> import Queue
> b = Queue.Queue(0)
> b.put(99
Hi,
I am using Queue from python2.4. Here is what happen to me:
import Queue
b = Queue.Queue(0)
b.put()
b.get() # this is ok, it pops out
b.get() # this one does not return anything and is hang on there
Anybody knows what is going on with the second b.get()?
ouyang
--
http://ma
o another file via bsddb
# etc .
Ouyang
Jean-Paul Calderone 写道:
> On 12 Aug 2006 10:44:29 -0700, zxo102 <[EMAIL PROTECTED]> wrote:
> >Jean-Paul,
> >Thanks a lot. The code is working. The python twisted is new to me too.
> >Here are my three more questions:
&g
need to wait" % i
scanner.lck.release()
scanner.evnt.wait()
else:
scanner.lck.release()
scanner.newthread(i,host)
for sc in scanner.tlist:
sc.join()
if __name__ == '__main__':
main()
Jean-Paul Calderone 写道:
> On 12 Aug 2006 09:00:0
Hi,
I am doing a small project using socket server and thread in python.
This is first time for me to use socket and thread things.
Here is my case. I have 20 socket clients. Each client send a set
of sensor data per second to a socket server. The socket server will
do two things: 1. write
Hi everyone,
I have tried two days to figure out how to draw the image in
wx.BufferedDC on the page created by AddPage of wx.Notebook but still
got no clue.
The attached example works fine. If I click the menu "Draw" --> "New
Drawing". The image with wx.BufferedDC/wx.BufferedPaintDC can move
Dennis:
Thanks for your message. Let me try the double-buffer-operation.
Ouyang
Dennis Lee Bieber wrote:
> On 1 Aug 2006 01:10:18 -0700, "zxo102" <[EMAIL PROTECTED]> declaimed the
> following in comp.lang.python:
>
> >
> > I just wrote the code followin
Hi everyone,
As shown in the code below (modified based on the Image.py in
wxpython demo), an image is created at location 1: (50,10) with
rotated angle 1.12. Now, suppose I got another set of new data, I want
to move the image to location 2: (166,400) with rotated angle 1.5.
case 1:
i
#x27; %
(event.data[0], event.data[1],event.data[2]))
angle = event.data[2]
x = event.data[0]
y = event.data[1]
bmp = self.bmp.Rotate(angle, (x,y), True,None)
bmp = bmp.ConvertToBitmap()
wx.StaticBitmap(self.panel, -1, bmp, (x, y),
(bmp.Ge
Philippe,
Thanks a lot. I got the idea. Let me try it.
Ouyang
Philippe Martin 写道:
> Philippe Martin wrote:
>
> > zxo102 wrote:
> >
> >> Hi everyone,
> >> I am using a python socket server to collect data from a socket
> >> client and then contr
Hi everyone,
I am using a python socket server to collect data from a socket
client and then control a image location ( wxpython) with the data,
i.e. moving the image around in the wxpython frame.
But the "app.MainLoop()" in wxpython looks like conflicting with
the "while 1:" in socket serv
Hi Dennis,
Thanks for your effort. I really appreciate it. It works for me
now.
Ouyang
--
http://mail.python.org/mailman/listinfo/python-list
Hi everyone,
I need your help for using python odbc module. I have a simple
table defined as
create table A (
userId char(10),
courseid char(10),
grade integer,
primary key(userId,courseId)
)
userIdcourseId grade
1 1001 50
1 1002 89
Hi there,
I have a dictionary with values of Chinses Characters. For
example,
>>> dict = {}
>>> dict['c1']="中国一"
>>> dict['c2']="中国二"
>>> dict.values()
['\xd6\xd0\xb9\xfa\xb6\xfe', '\xd6\xd0\xb9\xfa\xd2\xbb']
Since the result of dict.values will be inserted into web pages and
handled by jav
Thanks for your help, Larry.
Finally, I got it my python script run as NT service with
the attached python code which is from the site:
http://www.schooltool.org/products/schooltool-calendar/documentation/how-to/running-as-a-windows-service/schooltool-service.py/view
##
Hi there,
I have a python application (many python scripts) and I start the
application like this
python myServer.py start
in window. It is running in dos window. Now I would like to put it in
background as NT service. I got a example code: SmallestService.py from
chapter 18 of the book "Pyth
Hi there,
I am trying to put data including Chinese Characters into Excel
through python. But I got some problems. Here is my sample code:
##
#
import win32com.client
xlapp = win32com.client.DispatchEx("Excel.Application")
xlbook = xlapp.Workboo
Thanks for your help.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I got several dynamic lists a1, b1, c1, from a python
application such as
a1 = [1,5,3,2,5,...], the len(a1) varies. Same to b1, c1,
With python, I would like to reorganize them into a tuple like
t1 = ((a1[0],b1[0],c1[0],...),(a1[1],b1[1],c1[1],...),...)
Anybody knows
I found the solution for this. It needs to select a new location and
paste from "sh". Thank you for your reading this.
import win32com.client
xl=win32com.client.Dispatch("Excel.Application")
xl.Visible=1
wb = xl.Workbooks.Add( )
sh=wb.Worksheets(1)
sh.Cells(1,1).Value = "Hello World!"
sh.Cells(3,
Hi there,
I need your help for python <--> excel. I want to paste selected
cells (range) to different location on the same sheet in Excel through
python. I have tried it for a while but could not figure it out. Here
is my sample code:
import win32com.client
xl=win32com.client.Dispatch("Excel.A
46 matches
Mail list logo