2007年07月26日 星期四 11:20
我遇到个头痛的问题!我无法通过AJAX从服务器端以XML的方式拿到数据!但是以Text拿数据到是可以的!郁闷主页用python生成的,服务器端软件也是用python写的。关键我对这个东西的有些机制不了解啊!代码如下:(主页使用python生成)主页:#! /usr/local/bin/fofpython def printHeader( title ): print """Content-type: text/htmlhttp://www.w3.org/TR/xhtmll/DTD/Xhtmll-strict.dtd"> http://www.w3.org/1999/xhtml"> %s """%title print """""" printHeader( "Hello" ) print """""" print """""" 服务器端: #!/usr/bin/env python #print "Content-type: text/html" print """""" print import cgi import sysform control import ControlDatabasesys.path.append('/usr/local/merlin/host/PyGreSQL/3.3') import pg paris = cgi.parse()cmd = "select * from down" result = ControlDatabase().queryDB(cmd) if result != []: line = "" for res in result: line = line + "
Hello "%(res[0],res[1]) else: line = line + " %s %s " print line 各位帮我看看到底什么地方不对啊? -------------- 涓嬩竴閮ㄥ垎 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20070726/ebf8ca63/attachment.htm
2007年07月26日 星期四 11:43
不是 有效的XML数据? On 7/26/07, fuyu0123456789 <fuyu0123456789 at 163.com> wrote: > > 我遇到个头痛的问题!我无法通过AJAX从服务器端以XML的方式拿到数据! > 但是以Text拿数据到是可以的!郁闷 > 主页用python生成的,服务器端软件也是用python写的。 > 关键我对这个东西的有些机制不了解啊! > 代码如下:(主页使用python生成) > 主页: > #! /usr/local/bin/fofpython > > def printHeader( title ): > print """Content-type: text/html > > > > > true;">> > "http://www.w3.org/TR/xhtmll/DTD/Xhtmll-strict.dtd"> > http://www.w3.org/1999/xhtml"> > %s >> cellpadding="0">
> """%title > print """""" > > printHeader( "Hello" ) > print """""" > print """""" > > 服务器端: > > #!/usr/bin/env python > #print "Content-type: text/html" > print """""" > print > import cgi > import sys > form control import ControlDatabase > sys.path.append('/usr/local/merlin/host/PyGreSQL/3.3') > import pg > > paris = cgi.parse() > cmd = "select * from down" > result = ControlDatabase().queryDB(cmd) > if result != []: > line = "" > for res in result: > line = line + > "> > Hello >> width="20" height="1" border="0"> >> height="55" border="0"> "%(res[0],res[1]) > else: > line = line + " %s %s " > > print line > > 各位帮我看看 > 到底什么地方不对啊? > > > > > ------------------------------ > 劲 爆 150 万 同 时 在 线,众 人 追 捧 梦 幻 西 游 > <http://event.mail.163.com/chanel/xyq.htm?from=163_NO7> > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -- >: ~ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070726/5e8b9ca2/attachment.htm
2007年07月26日 星期四 11:47
我也是这样怀疑。好像是因为服务器端的数据是字符串的,不是XML了,那怎么样把字符串数据变成XML的数据呢? 在2007-07-26,Question <wanliyou在gmail.com> 写道: 不是 有效的XML数据? On 7/26/07,fuyu0123456789 <fuyu0123456789在163.com> wrote:我遇到个头痛的问题!我无法通过AJAX从服务器端以XML的方式拿到数据!但是以Text拿数据到是可以的!郁闷主页用python生成的,服务器端软件也是用python写的。关键我对这个东西的有些机制不了解啊!代码如下:(主页使用python生成)主页:#! /usr/local/bin/fofpython def printHeader( title ): print """Content-type: text/htmlhttp://www.w3.org/TR/xhtmll/DTD/Xhtmll-strict.dtd"> http://www.w3.org/1999/xhtml"> %s """%title print """""" printHeader( "Hello" ) print """""" print """""" 服务器端: #!/usr/bin/env python #print "Content-type: text/html" print """""" print import cgi import sysform control import ControlDatabasesys.path.append('/usr/local/merlin/host/PyGreSQL/3.3') import pg paris = cgi.parse()cmd = "select * from down" result = ControlDatabase().queryDB(cmd) if result != []: line = "" for res in result: line = line + "
Hello "%(res[0],res[1]) else: line = line + " %s %s " print line 各位帮我看看到底什么地方不对啊? 劲 爆 150 万 同 时 在 线,众 人 追 捧 梦 幻 西 游 _______________________________________________ python-chinese Post: sendpython-chinese在lists.python.cn Subscribe: send subscribe topython-chinese-request在lists.python.cn Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn Detail Info:http://python.cn/mailman/listinfo/python-chinese -- >: ~ -------------- 涓嬩竴閮ㄥ垎 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20070726/02af05e9/attachment.html
2007年07月26日 星期四 11:51
> > 我也是这样怀疑。好像是因为服务器端的数据是字符串的,不是XML了,那怎么样把字符串数据变成XML的数据呢? 狂汗,xml就是字符串啊! -- http://codeplayer.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070726/1a4509d2/attachment.htm
2007年07月26日 星期四 11:59
On 7/26/07, 黄毅 <yi.codeplayer在gmail.com> wrote: > > > 我也是这样怀疑。好像是因为服务器端的数据是字符串的,不是XML了,那怎么样把字符串数据变成XML的数据呢? > > > 狂汗,xml就是字符串啊! > 就是哪…………XML 从什么时候开始不是字串数据了呢? 其实用Py 的话,俺更加喜欢JSON 格式,比XML 消耗更少的网络占用的 > -- > http://codeplayer.blogspot.com/ > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to > python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to > python-chinese-request在lists.python.cn > Detail Info: > http://python.cn/mailman/listinfo/python-chinese > -- '''Time is unimportant, only life important! 过程改进的目标不是高品质产品,而是促生靠谱的人的组织! ''' http://zoomquiet.org blog在http://blog.zoomquiet.org/pyblosxom/ wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet or http://202.108.44.62/moin/ZoomQuiet scrap在http://floss.zoomquiet.org douban在http://www.douban.com/people/zoomq/ ____________________________________ Pls. use OpenOffice.org to replace M$ Office. http://zh.openoffice.org Pls. use 7-zip to replace WinRAR/WinZip. http://7-zip.org/zh-cn/ You can get the truely Freedom 4 software.
2007年07月26日 星期四 12:59
能有能有个高人出来做个例子?! ----- Original Message ----- From: "Zoom.Quiet" <zoom.quiet在gmail.com> To: <python-chinese在lists.python.cn> Sent: Thursday, July 26, 2007 11:59 AM Subject: Re: [python-chinese]关于Python和AJAX结合使用的问题 > On 7/26/07, 黄毅 <yi.codeplayer在gmail.com> wrote: >> >> > 我也是这样怀疑。好像是因为服务器端的数据是字符串的,不是XML了,那怎么样把字符串数据变成XML的数据呢? >> >> >> 狂汗,xml就是字符串啊! >> > 就是哪…………XML 从什么时候开始不是字串数据了呢? > 其实用Py 的话,俺更加喜欢JSON 格式,比XML 消耗更少的网络占用的 >> -- >> http://codeplayer.blogspot.com/ >> _______________________________________________ >> python-chinese >> Post: send python-chinese在lists.python.cn >> Subscribe: send subscribe to >> python-chinese-request在lists.python.cn >> Unsubscribe: send unsubscribe to >> python-chinese-request在lists.python.cn >> Detail Info: >> http://python.cn/mailman/listinfo/python-chinese >> > > > -- > '''Time is unimportant, only life important! > 过程改进的目标不是高品质产品,而是促生靠谱的人的组织! > ''' > http://zoomquiet.org > blog在http://blog.zoomquiet.org/pyblosxom/ > wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet > or http://202.108.44.62/moin/ZoomQuiet > scrap在http://floss.zoomquiet.org > douban在http://www.douban.com/people/zoomq/ > ____________________________________ > Pls. use OpenOffice.org to replace M$ Office. > http://zh.openoffice.org > Pls. use 7-zip to replace WinRAR/WinZip. > http://7-zip.org/zh-cn/ > You can get the truely Freedom 4 software. > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese
2007年07月26日 星期四 13:01
我的意思是说你把那个responseTest 用innerHTML输出下,看看是不是符合格式 On 7/26/07, Zoom. Quiet <zoom.quiet at gmail.com> wrote: > > On 7/26/07, 黄毅 <yi.codeplayer at gmail.com> wrote: > > > > > 我也是这样怀疑。好像是因为服务器端的数据是字符串的,不是XML了,那怎么样把字符串数据变成XML的数据呢? > > > > > > 狂汗,xml就是字符串啊! > > > 就是哪…………XML 从什么时候开始不是字串数据了呢? > 其实用Py 的话,俺更加喜欢JSON 格式,比XML 消耗更少的网络占用的 > > -- > > http://codeplayer.blogspot.com/ > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to > > python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to > > python-chinese-request at lists.python.cn > > Detail Info: > > http://python.cn/mailman/listinfo/python-chinese > > > > > -- > '''Time is unimportant, only life important! > 过程改进的目标不是高品质产品,而是促生靠谱的人的组织! > ''' > http://zoomquiet.org > blog at http://blog.zoomquiet.org/pyblosxom/ > wiki at http://wiki.woodpecker.org.cn/moin/ZoomQuiet > or http://202.108.44.62/moin/ZoomQuiet > scrap at http://floss.zoomquiet.org > douban at http://www.douban.com/people/zoomq/ > ____________________________________ > Pls. use OpenOffice.org to replace M$ Office. > http://zh.openoffice.org > Pls. use 7-zip to replace WinRAR/WinZip. > http://7-zip.org/zh-cn/ > You can get the truely Freedom 4 software. > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese -- >: ~ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070726/0f6a8243/attachment.htm
2007年07月26日 星期四 13:04
哎!一直都感觉那篇“提问的智慧”写的不错。用python邮件列表一段时间之后,真的感觉同样因该有一篇“回答的智慧”。 在2007-07-26,Dreamer <dreamerx2004在gmail.com> 写道: 能有能有个高人出来做个例子?! ----- Original Message ----- From: "Zoom.Quiet" <zoom.quiet在gmail.com> To: <python-chinese在lists.python.cn> Sent: Thursday, July 26, 2007 11:59 AM Subject: Re: [python-chinese]关于Python和AJAX结合使用的问题 > On 7/26/07, 黄毅 <yi.codeplayer在gmail.com> wrote: >> >> > 我也是这样怀疑。好像是因为服务器端的数据是字符串的,不是XML了,那怎么样把字符串数据变成XML的数据呢? >> >> >> 狂汗,xml就是字符串啊! >> > 就是哪…………XML 从什么时候开始不是字串数据了呢? > 其实用Py 的话,俺更加喜欢JSON 格式,比XML 消耗更少的网络占用的 >> -- >> http://codeplayer.blogspot.com/ >> _______________________________________________ >> python-chinese >> Post: send python-chinese在lists.python.cn >> Subscribe: send subscribe to >> python-chinese-request在lists.python.cn >> Unsubscribe: send unsubscribe to >> python-chinese-request在lists.python.cn >> Detail Info: >> http://python.cn/mailman/listinfo/python-chinese >> > > > -- > '''Time is unimportant, only life important! > 过程改进的目标不是高品质产品,而是促生靠谱的人的组织! > ''' > http://zoomquiet.org > blog在http://blog.zoomquiet.org/pyblosxom/ > wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet > or http://202.108.44.62/moin/ZoomQuiet > scrap在http://floss.zoomquiet.org > douban在http://www.douban.com/people/zoomq/ > ____________________________________ > Pls. use OpenOffice.org to replace M$ Office. > http://zh.openoffice.org > Pls. use 7-zip to replace WinRAR/WinZip. > http://7-zip.org/zh-cn/ > You can get the truely Freedom 4 software. > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese _______________________________________________ python-chinese Post: send python-chinese在lists.python.cn Subscribe: send subscribe to python-chinese-request在lists.python.cn Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn Detail Info: http://python.cn/mailman/listinfo/python-chinese -------------- 涓嬩竴閮ㄥ垎 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20070726/093671a7/attachment.html
2007年07月26日 星期四 13:06
用XML可以配合schema验证,JSON就不行了。JSON虽然对JS更友好,但可能要防代码注入,而且对于FF来说,E4X也开始展露头角了 On 7/26/07, Question <wanliyou at gmail.com> wrote: > > 我的意思是说你把那个responseTest 用innerHTML输出下,看看是不是符合格式 > > On 7/26/07, Zoom. Quiet <zoom.quiet at gmail.com> wrote: > > > > On 7/26/07, 黄毅 <yi.codeplayer at gmail.com> wrote: > > > > > > > 我也是这样怀疑。好像是因为服务器端的数据是字符串的,不是XML了,那怎么样把字符串数据变成XML的数据呢? > > > > > > > > > 狂汗,xml就是字符串啊! > > > > > 就是哪…………XML 从什么时候开始不是字串数据了呢? > > 其实用Py 的话,俺更加喜欢JSON 格式,比XML 消耗更少的网络占用的 > > > -- > > > http://codeplayer.blogspot.com/ > > > _______________________________________________ > > > python-chinese > > > Post: send python-chinese at lists.python.cn > > > Subscribe: send subscribe to > > > python-chinese-request at lists.python.cn > > > Unsubscribe: send unsubscribe to > > > python-chinese-request at lists.python.cn > > > Detail Info: > > > http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > -- > > '''Time is unimportant, only life important! > > 过程改进的目标不是高品质产品,而是促生靠谱的人的组织! > > ''' > > http://zoomquiet.org > > blog at http://blog.zoomquiet.org/pyblosxom/ > > wiki@ http://wiki.woodpecker.org.cn/moin/ZoomQuiet > > or http://202.108.44.62/moin/ZoomQuiet > > scrap at http://floss.zoomquiet.org > > douban at http://www.douban.com/people/zoomq/ > > ____________________________________ > > Pls. use OpenOffice.org to replace M$ Office. > > http://zh.openoffice.org > > Pls. use 7-zip to replace WinRAR/WinZip. > > http://7-zip.org/zh-cn/ > > You can get the truely Freedom 4 software. > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > -- > >: ~ -- >: ~ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070726/a1404d9c/attachment.htm
2007年07月26日 星期四 13:08
¸øEric S. Raymond´óʦ·¢·âÓʼþ£¬ÇëËûдһƪ£¬ºÇºÇ~~ _____ ·¢¼þÈË: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] ´ú±í fuyu0123456789 ·¢ËÍʱ¼ä: 2007Äê7ÔÂ26ÈÕ 13:04 ÊÕ¼þÈË: python-chinese在lists.python.cn Ö÷Ìâ: Re: [python-chinese] ¹ØÓÚPythonºÍAJAX½áºÏʹÓõÄÎÊÌâ °¥£¡Ò»Ö±¶¼¸Ð¾õÄÇƪ¡°ÌáÎʵÄÖǻۡ±Ð´µÄ²»´í¡£ ÓÃpythonÓʼþÁбíÒ»¶Îʱ¼äÖ®ºó£¬ÕæµÄ¸Ð¾õͬÑùÒò¸ÃÓÐһƪ¡°»Ø´ðµÄÖǻۡ±¡£ ÔÚ2007-07-26£¬Dreamer <dreamerx2004在gmail.com> дµÀ£º ÄÜÓÐÄÜÓиö¸ßÈ˳öÀ´×ö¸öÀý×Ó£¿£¡ ----- Original Message ----- From: "Zoom.Quiet" <zoom.quiet在gmail.com> To: <python-chinese在lists.python.cn> Sent: Thursday, July 26, 2007 11:59 AM Subject: Re: [python-chinese]¹ØÓÚPythonºÍAJAX½áºÏʹÓõÄÎÊÌâ > On 7/26/07, »ÆÒã <yi.codeplayer在gmail.com> wrote: >> >> > ÎÒÒ²ÊÇÕâÑù»³ÒÉ¡£ºÃÏñÊÇÒòΪ·þÎñÆ÷¶ËµÄÊý¾ÝÊÇ×Ö·û´®µÄ£¬²»ÊÇXMLÁË£¬ÄÇÔõôÑù °Ñ×Ö·û´®Êý¾Ý±ä³ÉXMLµÄÊý¾ÝÄØ£¿ >> >> >> ¿ñº¹£¬xml¾ÍÊÇ×Ö·û´®°¡£¡ >> > ¾ÍÊÇÄÄ¡¡¡¡XML ´Óʲôʱºò¿ªÊ¼²»ÊÇ×Ö´®Êý¾ÝÁËÄØ£¿ > ÆäʵÓÃPy µÄ»°£¬°³¸ü¼Óϲ»¶JSON ¸ñʽ£¬±ÈXML ÏûºÄ¸üÉÙµÄÍøÂçÕ¼ÓÃµÄ >> -- >> http://codeplayer.blogspot.com/ >> _______________________________________________ >> python-chinese >> Post: send python-chinese在lists.python.cn >> Subscribe: send subscribe to >> python-chinese-request在lists.python.cn >> Unsubscribe: send unsubscribe to >> python-chinese-request在lists.python.cn >> Detail Info: >> http://python.cn/mailman/listinfo/python-chinese >> > > > -- > '''Time is unimportant, only life important! > ¹ý³Ì¸Ä½øµÄÄ¿±ê²»ÊǸßÆ·ÖʲúÆ·£¬¶øÊÇ´ÙÉú¿¿Æ×µÄÈ˵Ä×éÖ¯! > ''' > http://zoomquiet.org > blog在http://blog.zoomquiet.org/pyblosxom/ > wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet > or http://202.108.44.62/moin/ZoomQuiet > scrap在http://floss.zoomquiet.org > douban在http://www.douban.com/people/zoomq/ > ____________________________________ > Pls. use OpenOffice.org to replace M$ Office. > http://zh.openoffice.org > Pls. use 7-zip to replace WinRAR/WinZip. > http://7-zip.org/zh-cn/ > You can get the truely Freedom 4 software. > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese _______________________________________________ python-chinese Post: send python-chinese在lists.python.cn Subscribe: send subscribe to python-chinese-request在lists.python.cn Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn Detail Info: http://python.cn/mailman/listinfo/python-chinese _____ <http://event.mail.163.com/chanel/xyq.htm?from=163_NO6> ÈË É½ ÈË º£ Ê¢ ¾°£¬ ¾¡ ÔÚ ÃÎ »Ã Î÷ ÓÎ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070726/bd90ef0a/attachment.html
2007年07月26日 星期四 13:13
´òÓ¡³öÀ´£¬ÕâÑù²ÅÄÜ·¢ÏÖÎÊÌâ¡£JSONÒ²²»´í£¬µ«ÎÒ»¹ÊÇ°ÉÒ³divÄÚÈÝÌæ»»µôÕâÑùÒ³Ãæ´úÂëÉÙ£¬¶øÇÒºÃά»¤. ÔÚ07-7-26£¬beck917 <beck917在gmail.com> дµÀ£º > > ¸øEric S. Raymond´óʦ·¢·âÓʼþ£¬ÇëËûдһƪ£¬ºÇºÇ~~ > > > ------------------------------ > > *·¢¼þÈË:* python-chinese-bounces在lists.python.cn [mailto: > python-chinese-bounces在lists.python.cn] *´ú±í *fuyu0123456789 > *·¢ËÍʱ¼ä:* 2007Äê7ÔÂ26ÈÕ 13:04 > *ÊÕ¼þÈË:* python-chinese在lists.python.cn > *Ö÷Ìâ:* Re: [python-chinese] ¹ØÓÚPythonºÍAJAX½áºÏʹÓõÄÎÊÌâ > > > > > > °¥£¡Ò»Ö±¶¼¸Ð¾õÄÇƪ"ÌáÎʵÄÖÇ»Û"дµÄ²»´í¡£ > > ÓÃpythonÓʼþÁбíÒ»¶Îʱ¼äÖ®ºó£¬ÕæµÄ¸Ð¾õͬÑùÒò¸ÃÓÐһƪ"»Ø´ðµÄÖÇ»Û"¡£ > > > > > > > ÔÚ2007-07-26£¬Dreamer <dreamerx2004在gmail.com> дµÀ£º > > ÄÜÓÐÄÜÓиö¸ßÈ˳öÀ´×ö¸öÀý×Ó£¿£¡ > > > > > > ----- Original Message ----- > > From: "Zoom.Quiet" <zoom.quiet在gmail.com> > > To: <python-chinese在lists.python.cn> > > Sent: Thursday, July 26, 2007 11:59 AM > > Subject: Re: [python-chinese]¹ØÓÚPythonºÍAJAX½áºÏʹÓõÄÎÊÌâ > > > > > > > On 7/26/07, »ÆÒã <yi.codeplayer在gmail.com> wrote: > > >> > > >> > ÎÒÒ²ÊÇÕâÑù»³ÒÉ¡£ºÃÏñÊÇÒòΪ·þÎñÆ÷¶ËµÄÊý¾ÝÊÇ×Ö·û´®µÄ£¬²»ÊÇXMLÁË£¬ÄÇÔõôÑù°Ñ×Ö·û´®Êý¾Ý±ä³ÉXMLµÄÊý¾ÝÄØ£¿ > > >> > > >> > > >> ¿ñº¹£¬xml¾ÍÊÇ×Ö·û´®°¡£¡ > > >> > > > ¾ÍÊÇÄÄ¡¡¡¡XML ´Óʲôʱºò¿ªÊ¼²»ÊÇ×Ö´®Êý¾ÝÁËÄØ£¿ > > > ÆäʵÓÃPy µÄ»°£¬°³¸ü¼Óϲ»¶JSON ¸ñʽ£¬±ÈXML ÏûºÄ¸üÉÙµÄÍøÂçÕ¼ÓÃµÄ > > >> -- > > >> http://codeplayer.blogspot.com/ > > >> _______________________________________________ > > >> python-chinese > > >> Post: send python-chinese在lists.python.cn > > >> Subscribe: send subscribe to > > >> python-chinese-request在lists.python.cn > > >> Unsubscribe: send unsubscribe to > > >> python-chinese-request在lists.python.cn > > >> Detail Info: > > >> http://python.cn/mailman/listinfo/python-chinese > > >> > > > > > > > > > -- > > > '''Time is unimportant, only life important! > > > ¹ý³Ì¸Ä½øµÄÄ¿±ê²»ÊǸßÆ·ÖʲúÆ·£¬¶øÊÇ´ÙÉú¿¿Æ×µÄÈ˵Ä×éÖ¯! > > > ''' > > > http://zoomquiet.org > > > blog在http://blog.zoomquiet.org/pyblosxom/ > > > wiki在http://wiki.woodpecker.org.cn/moin/ZoomQuiet > > > or http://202.108.44.62/moin/ZoomQuiet > > > scrap在http://floss.zoomquiet.org > > > douban在http://www.douban.com/people/zoomq/ > > > ____________________________________ > > > Pls. use OpenOffice.org to replace M$ Office. > > > http://zh.openoffice.org > > > Pls. use 7-zip to replace WinRAR/WinZip. > > > http://7-zip.org/zh-cn/ > > > You can get the truely Freedom 4 software. > > > _______________________________________________ > > > python-chinese > > > Post: send python-chinese在lists.python.cn > > > Subscribe: send subscribe to python-chinese-request在lists.python.cn > > > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > _______________________________________________ > > python-chinese > > Post: send python-chinese在lists.python.cn > > Subscribe: send subscribe to python-chinese-request在lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > ------------------------------ > > ÈË É½ ÈË º£ Ê¢ ¾°£¬¾¡ ÔÚ ÃÎ »Ã Î÷ ÓÎ > <http://event.mail.163.com/chanel/xyq.htm?from=163_NO6> > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070726/17246540/attachment.htm
2007年07月26日 星期四 13:26
推荐JSON...比XML使用方便. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070726/f2512883/attachment.htm
2007年07月26日 星期四 13:34
我也觉得json在网页应用中比xml要好的多。 ------------------ Atim 2007-07-26 ------------------------------------------------------------- 发件人:东子/hydon 发送日期:2007-07-26 13:26:50 收件人:python-chinese在lists.python.cn 抄送: 主题:Re: [python-chinese]答复: 关于Python和AJAX结合使用的问题 推荐JSON...比XML使用方便. _______________________________________________ python-chinese Post: send python-chinese在lists.python.cn Subscribe: send subscribe to python-chinese-request在lists.python.cn Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn Detail Info: http://python.cn/mailman/listinfo/python-chinese
2007年07月26日 星期四 16:09
On 7/26/07, fuyu0123456789 <fuyu0123456789 at 163.com> wrote: > 我遇到个头痛的问题!我无法通过AJAX从服务器端以XML的方式拿到数据! > 但是以Text拿数据到是可以的!郁闷 > 主页用python生成的,服务器端软件也是用python写的。 > 关键我对这个东西的有些机制不了解啊! > 代码如下:(主页使用python生成) > 主页: > #! /usr/local/bin/fofpython > > def printHeader( title ): > print """Content-type: text/html > > > > > true;">> > > "http://www.w3.org/TR/xhtmll/DTD/Xhtmll-strict.dtd"> > http://www.w3.org/1999/xhtml"> > %s >> cellpadding="0">
> """%title 这一段html好奇怪啊。。。。 var a = message.getElementsByTagName("geminiid")[0].firstChild.nodeValue; 把a的值alert出来看一下是什么> > Hello >> width="20" height="1" border="0"> >> height="55" border="0">
2007年07月26日 星期四 17:45
这样写 ajax 太原始了一点,有点累。。建议使用 jQuery 等客户端框架的功能,不但少写代码而且浏览器兼容性好。
Zeuux © 2025
京ICP备05028076号