Re: [Shellweb-main] txt feature added
Status: Alpha
Brought to you by:
alexe_cn
|
From: fayland <fa...@gm...> - 2005-12-31 04:59:39
|
这个可以试着这么解决: 比如在显示里 ShellWeb::Parser::HTML 里 可以调用 # 在图片地址知道后 my $img = ShellWeb::Fetch->new($img_url)->get_content; # ShellWeb::Fetch 实际上调用的可能是 ShellWeb::Fetch::Image 或者 ShellWeb::Fetch::HTTP $buffer->insert($iter, # Gtk2 的图片控件 似乎可以吧?我不知道 Gtk2 里怎么显示图片,要不我可以试试。(如果实在没有 人做的话,我先学一下 Gtk2 的图片显示然后把它做出来。) ale...@gm... wrote: > 这里有个问题,现在我们的网络与显示分开了。 > 按照现在的结构,Html分析应该是在显示这部分来完成,网络部分只负责收发数据。 > 但是,html数据中有很多的图片或者内连文件,这些都是在一个url地址上的。 > 如果按照现在的结构,我们必须先将取回的html数据交给显示部分分析,然后在提出进一步要取回的地址比如:图片,css,等等,再返回到网络部分去取回,这样似乎有些繁琐。 > > 换种做法,就是在网络部分先分析一次取回的html数据,找出需要继续取回的url地址,自动的再去取回一次。这样就要分析两遍html。 > > 还有一种做法,是将html分析部分完全独立出来,网络部分首次取回数据,就调用Html分析,分析后的结果通过某种方式交给网络部分它所需要,在交给显示部分它所需要。这样结构就更加复杂,牵扯更加好的多进程通讯方式。 > > 个人暂时建议采取第二种。 > > 在 05-12-31,Anthony WU<ant...@gm...> 写道: > >> 我的代格不太好 >> 很多 Use of uninitialized value in list assignment =( >> 才在想如何加入片解支援 >> 在在的基下,好像太多法............. >> >> >> 2005/12/31, fayland <fa...@gm... >: >> >>> :) well done! 学习下。 >>> >>> Anthony WU wrote: >>> >>>> 昨晚加了 FTP XML 的基本支援 =) >>>> >>>> _______________________________________ >>>> YM - 息 >>>> 就算你有上,你的朋友仍可以留下息你,你上就能立即看到,任何都走失。 >>>> http://messenger.yahoo.com.hk >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.net email is sponsored by: Splunk Inc. Do you grep through log >>>> >> files >> >>>> for problems? Stop! Download the new AJAX search engine that makes >>>> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>>> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >>>> >>>> >>>> >>>> >>> -- >>> Fayland Lam // http://www.fayland.org/ >>> >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.net email is sponsored by: Splunk Inc. Do you grep through log >>> >> files >> >>> for problems? Stop! Download the new AJAX search engine that makes >>> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >>> >>> >>> >> > > > -- > +--------------------------------------------+ > |By Alexe (http://www.alexe.cn)| > +--------------------------------------------+ > NY薜' > 蕈㈣!kC 濉蘩@^^j!2㈥澧辨,悍a{,H蛟4i(辟堍o'锃Yhr'庄:rX=== -- Fayland Lam // http://www.fayland.org/ |