<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dream☆Wing</title>
	<atom:link href="http://www.dreamwing.org/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dreamwing.org</link>
	<description></description>
	<lastBuildDate>Fri, 08 Jan 2010 07:57:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jquery的mouseover与slideDown效果搭配存在的问题</title>
		<link>http://www.dreamwing.org/javascript/jquery_mouseover_slidedown_tips.html</link>
		<comments>http://www.dreamwing.org/javascript/jquery_mouseover_slidedown_tips.html#comments</comments>
		<pubDate>Wed, 30 Dec 2009 07:27:16 +0000</pubDate>
		<dc:creator>Dream☆Wing</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.dreamwing.org/?p=805</guid>
		<description><![CDATA[html结构如下：
&#60;ul id="topNav"&#62;
 &#60;li class="popular"&#62;
  &#60;a href="javascript:void(0);"&#62;Popular&#60;/a&#62;
  &#60;div class="dropMenuList"&#62;
   &#60;a href="popular/message"&#62;Popular message&#60;/a&#62;
   &#60;a href="popular/people"&#62;Popular people&#60;/a&#62;
  &#60;/div&#62;
 &#60;/li&#62;
&#60;!--li loops--&#62;
&#60;/ul&#62;
实现效果如下：
$("#topNav &#62; li").mouseover(function(){
 $("div", $(this)).slideDown();
}).mouseout(function(){
 $("div", $(this)).slideUp();
});
这样写会发现当移动到dropMenuList上时整个div会一直做slideDown和slideUp的死循环，也无法点击dropMenuList上的项目，将slideDown换成hide效果则无此问题，但是效果就没了不是，于是去官网查文档，发现关于mouseover的说明有这么一句话：
Show texts when mouseover and mouseout event triggering. Mouseover fires when the pointer moves into or out from child element, while mouseenter does&#8217;t.
意思就是，mouseover方法当鼠标移动到元素本身以及其子元素时都会被触发，而mouseenter则只在元素本身会被触发，移动到其子元素不会再次触发。
于是：
$("#topNav &#62; li").bind("mouseenter", function(){
 $("div", $(this)).slideDown();
}).bind("mouseleave",function(){
 $("div", $(this)).slideUp();
});
O了。
今天在其他项目使用又发现了个问题，因#topNav &#62; li与div之间有间隔，也会导致这样的死循环，要注意li与div之间无缝衔接XD
]]></description>
		<wfw:commentRss>http://www.dreamwing.org/javascript/jquery_mouseover_slidedown_tips.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Remoting的核心技术——AMF</title>
		<link>http://www.dreamwing.org/flash_flex/amf.html</link>
		<comments>http://www.dreamwing.org/flash_flex/amf.html#comments</comments>
		<pubDate>Thu, 03 Dec 2009 14:53:29 +0000</pubDate>
		<dc:creator>Dream☆Wing</dc:creator>
				<category><![CDATA[Flash/Flex]]></category>

		<guid isPermaLink="false">http://www.dreamwing.org/?p=799</guid>
		<description><![CDATA[
AMF是什么？它的优点中是什么？Flash Remoting为什么选择了使用AMF而放弃了SOAP与Flash 播放器通信呢?
Flash 5开始就可以以XML或者“变量/值”配 对输出格式向服务器传送数据。虽然这些数据能通过Flash编译器自动解析或者通过开发人员自行编写的代码手动解析, 但解析的速度慢。因为在解析过程中，XML需要按节点逐层处理数据。而且使用XML和“变量/值”配对格式处理的数据类型只能是字符型，数字也不例外。而 Flash Remoting却能处理复杂数据类型, 比如对象、结构、数组，甚至可以是数据集，配合DataGrid组件可以很方便地显示数据。
为了处理复杂数据类型，采用一种独有的方式使Flash与应用服务器间可以来回传送数据势在必行。于是 AMF应运而生。AMF是Adobe独家开发出来的通信协议，它采用二进制压缩，序列化、反序列化、传输数据，从而为Flash 播放器与Flash Remoting网关通信提供了一种轻量级的、高效能的通信方式。如下图所示。

AMF最大的特色在于可直接将Flash内置对象，例如Object, Array, Date, XML，传回服务器端，并且在服务器端自动进行解析成适当的对象，这就减轻了开发人员繁复工作，同时也更省了开发时间。由于AMF采用二进制编码，这种方 式可以高度压缩数据，因此非常适合用来传递大量的资料。数据量越大，Flash Remoting的传输效能就越高，远远超过Web Service。至于XML, LoadVars和loadVariables() ，它们使用纯文本的传输方式，效能就更不能与Flash Remoting相提并论了。
注意：Flash Remoting需要浏览器支持Binary POST，Flash 播放器在Netscape 6.x.环境下运行Flash Remoting会不起作用（Flash Remoting调用没有效果也不返回错误）， Netscape 7已经纠正了这个bug 。对于早期Safari和Chimera版的苹果机也有这个问题。
同样是轻量级数据交换协议，同样是通过调用远程服务，同样是基于标准的HTTP和HTTPS协议， Flash Remoting为什么选择了使用AMF而放弃了SOAP与Flash 播放器通信呢? 有如下原因：

SOAP将数据处理成XML格式，相对于二进制的AMF太冗长了；
AMF能更有效序列化数据；因为AMF的初衷只是为了支持Flash ActionScript的数据类型，而SOAP却致力于提供更广泛的用途；
AMF支持Flash 播放器 6只需要浏览器增加4 KB左右（压缩后）的大小，而SOAP就大多了；
SOAP 的一些头部文件请求在Flash 播放器 6不支持。那Flash 播放器 6为什么能访问基于SOAP的Web服务呢？原来Flash Remoting网关将SOAP请求在服务器端与转换成AMF格式，然后利用AMF与Flash 播放器通信。另外，AMF包中包含onResult事件（比如说response事件）和onStatus事件（比如说error事件），这些事件对象在 Flash中可以直接使用。

AMF从Flash MX时代的AMF0发展到现在的AMF3。 AMF3用作Flash Playe 9的ActionScript 3.0的默认序列化格式，而AMF0则用作旧版的ActionScript 1.0和2.0的序列化格式。 在网络传输数据方面，AMF3比AMF0更有效率。AMF3能将int和uint对象作为整数（integer）传输，并且能序列化 ActionScript 3.0才支持的数据类型, [...]]]></description>
		<wfw:commentRss>http://www.dreamwing.org/flash_flex/amf.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hero应用记录</title>
		<link>http://www.dreamwing.org/anything/htc_hero_apps.html</link>
		<comments>http://www.dreamwing.org/anything/htc_hero_apps.html#comments</comments>
		<pubDate>Mon, 26 Oct 2009 13:30:59 +0000</pubDate>
		<dc:creator>Dream☆Wing</dc:creator>
				<category><![CDATA[Anything]]></category>

		<guid isPermaLink="false">http://www.dreamwing.org/?p=795</guid>
		<description><![CDATA[入手Hero一周了，到处搜刮app，也尝试了不少，记录一下，方便以后查看。
软件篇
Astro，管理SD存储，应用程序以及进程非常方便。
Advanced Task Killer，进程管理的，虽然与Astro的重复了，不过用起来很方便，状态栏还会出现小绿人。
AnFetion，非官方的飞信Andorid版，用起来还行
Bluex，Hero的蓝牙无法传输文件，用这款软件可以解决，如果要接受文件需要取得ROOT权限
Android QQ，台湾某大大刚开发的QQ，装上了，还没体验，现在版本是0.1.0，共同期待。
&#8230;to be continued
]]></description>
		<wfw:commentRss>http://www.dreamwing.org/anything/htc_hero_apps.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>firefox的标准引起的一些问题</title>
		<link>http://www.dreamwing.org/xhtml_css/bug_of_form_data_in_firefox.html</link>
		<comments>http://www.dreamwing.org/xhtml_css/bug_of_form_data_in_firefox.html#comments</comments>
		<pubDate>Mon, 19 Oct 2009 08:34:45 +0000</pubDate>
		<dc:creator>Dream☆Wing</dc:creator>
				<category><![CDATA[(X)HTML/CSS]]></category>

		<guid isPermaLink="false">http://www.dreamwing.org/?p=793</guid>
		<description><![CDATA[html结构为
&#60;table&#62;&#60;form&#62;&#60;input type=&#8221;text&#8221;t name=&#8221;author[]&#8220;&#62;&#60;/form&#62;&#60;/table&#62;
恩，提交处理什么的都没有问题
但是用js再在table中插入一个input的话，发现提交时没有插入的input的值
解决办法：
将form放到table外，变成
&#60;form&#62;&#60;table&#62;&#60;input type=&#8221;text&#8221;t name=&#8221;author[]&#8220;&#62;&#60;/form&#62;&#60;/table&#62;
就可以解决了，
当然，对称一点就是
&#60;form&#62;&#60;table&#62;&#60;input type=&#8221;text&#8221;t name=&#8221;author[]&#8220;&#62;&#60;/table&#62;&#60;/form&#62;
这样处理，发现也可以解决用jquery filestyle模拟的file提交时获取不到的问题
所以说。。。一定要符合标准吖
&#8212;&#8212;&#8212;-以上bug只在firefox体现，在ie可以兼容&#8212;&#8212;&#8212;
]]></description>
		<wfw:commentRss>http://www.dreamwing.org/xhtml_css/bug_of_form_data_in_firefox.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Field &#8216;file&#8217; doesn&#8217;t have a default value query</title>
		<link>http://www.dreamwing.org/mysql/field-file-doesnt-have-a-default-value-query.html</link>
		<comments>http://www.dreamwing.org/mysql/field-file-doesnt-have-a-default-value-query.html#comments</comments>
		<pubDate>Thu, 15 Oct 2009 10:23:13 +0000</pubDate>
		<dc:creator>Dream☆Wing</dc:creator>
				<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://www.dreamwing.org/anything/field-file-doesnt-have-a-default-value-query.html</guid>
		<description><![CDATA[file字段not null不是错，错是的mysql不能以strict mode运行
ref: http://dev.mysql.com/doc/refman/5.1/en/server-sql-mode.html#sqlmode_strict_trans_tables
]]></description>
		<wfw:commentRss>http://www.dreamwing.org/mysql/field-file-doesnt-have-a-default-value-query.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>array_map的一个特殊应用</title>
		<link>http://www.dreamwing.org/php/array_map_special_application.html</link>
		<comments>http://www.dreamwing.org/php/array_map_special_application.html#comments</comments>
		<pubDate>Sun, 11 Oct 2009 18:45:03 +0000</pubDate>
		<dc:creator>Dream☆Wing</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.dreamwing.org/?p=788</guid>
		<description><![CDATA[通常array_map用来做回调函数，不过在手册中有一个特殊的应用：
将每个数组对应的key的值进行组合生成一个数组，并将所有的值的数组组合成一个2维数组

Example #4 Creating an array of arrays

 &#60;?php
$a = array(1, 2, 3, 4, 5);
$b = array("one", "two", "three", "four", "five");
$c = array("uno", "dos", "tres", "cuatro", "cinco");
$d = array_map(null, $a, $b, $c);
print_r($d);
?&#62;  


The above example will output:


Array
(
    [0] =&#62; Array
        (
        [...]]]></description>
		<wfw:commentRss>http://www.dreamwing.org/php/array_map_special_application.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>防止Ajax在IE中的缓存</title>
		<link>http://www.dreamwing.org/javascript/prevent_ajax_cache_in_ie.html</link>
		<comments>http://www.dreamwing.org/javascript/prevent_ajax_cache_in_ie.html#comments</comments>
		<pubDate>Mon, 28 Sep 2009 20:28:07 +0000</pubDate>
		<dc:creator>Dream☆Wing</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.dreamwing.org/anything/%e9%98%b2%e6%ad%a2ajax%e5%9c%a8ie%e4%b8%ad%e7%9a%84%e7%bc%93%e5%ad%98.html</guid>
		<description><![CDATA[var now = new Date();
$.getJSON(ajaxUrl+&#8221;?&#8221;+now.getTime(), ajaxData, function(json){&#8230;
});
]]></description>
		<wfw:commentRss>http://www.dreamwing.org/javascript/prevent_ajax_cache_in_ie.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>swfobject在IE8显示不了Flash的问题</title>
		<link>http://www.dreamwing.org/flash_flex/swfobject_flash_ie_bug.html</link>
		<comments>http://www.dreamwing.org/flash_flex/swfobject_flash_ie_bug.html#comments</comments>
		<pubDate>Tue, 15 Sep 2009 04:59:10 +0000</pubDate>
		<dc:creator>Dream☆Wing</dc:creator>
				<category><![CDATA[Flash/Flex]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://www.dreamwing.org/?p=779</guid>
		<description><![CDATA[页面结构是 &#60;td id=&#8221;mapobject&#8221;&#62;{$mapobject}&#60;/td&#62;
使用swfobject.embedSWF(&#8230;)动态调用生成Flash，发现在FF和Chrome下都能正常显示，在IE8下却无法显示
ie提示错误swfobject.js的el.outerHTML这行报错
&#60;pre lang=&#8221;js&#8221;&#62;el.outerHTML = &#8216;&#60;object classid=&#8221;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&#8243;&#8216; + att + &#8216;&#62;&#8217; + par + &#8216;&#60;/object&#62;&#8217;;&#60;/pre&#62;
请教谷歌大神，搜到一些相关的解决方案
如使用SWFObject插入Flash在IE下导致stageWidth为0的解决方法
swfobject 2.1 IE下flash显示不正常以及内存泄漏
SWFObject, IE and Dynamic Content (a problem)
然后在IE6下也有问题Is it possible to embed a SWF in a form using swfobject 2+ in IE6+?
有各种解决方案，不过去swfobject的googlecode上发现都没有ie的问题，比较奇怪
上面有高手提到var r, el = getElementById(id);获取不到id，于是对td产生怀疑
改成&#60;td&#62;&#60;div id=&#8221;mapobject&#8221;&#62;{$mapobject}&#60;/div&#62;&#60;/td&#62;
恩。。。于是就这样解决了囧rz
]]></description>
		<wfw:commentRss>http://www.dreamwing.org/flash_flex/swfobject_flash_ie_bug.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>推荐一个学习ubuntu的好地方</title>
		<link>http://www.dreamwing.org/linux/excellent_ubuntu_learning_place.html</link>
		<comments>http://www.dreamwing.org/linux/excellent_ubuntu_learning_place.html#comments</comments>
		<pubDate>Mon, 31 Aug 2009 11:32:21 +0000</pubDate>
		<dc:creator>Dream☆Wing</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.dreamwing.org/?p=775</guid>
		<description><![CDATA[http://hi.baidu.com/camark
博主很厉害，自己把整本《Ubuntu功夫》翻译成中文，很有毅力，甚是佩服。
想想自己也是学英语的，虽然曾经有冲动要为XX事业奉献青春，最后都是无果而终>_]]></description>
		<wfw:commentRss>http://www.dreamwing.org/linux/excellent_ubuntu_learning_place.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>这年头什么都白菜价了么。。。</title>
		<link>http://www.dreamwing.org/web/damn_cheap_server_and_brandwide.html</link>
		<comments>http://www.dreamwing.org/web/damn_cheap_server_and_brandwide.html#comments</comments>
		<pubDate>Thu, 27 Aug 2009 17:57:36 +0000</pubDate>
		<dc:creator>Dream☆Wing</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.dreamwing.org/?p=763</guid>
		<description><![CDATA[南北双线，100M独享，九江机房独立机柜，1年8W RMB（相当于只付了电费）
服务器，联想，奥运备用服务器，1台2K RMB（比普通家用电脑还便宜啊啊啊）
真的是白菜价了。。。
好吧，一般人找不到这颗白菜就是了= =
]]></description>
		<wfw:commentRss>http://www.dreamwing.org/web/damn_cheap_server_and_brandwide.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
