﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-JAVA技术-文章分类-技术文章</title><link>http://www.blogjava.net/jennyli/category/15514.html</link><description /><language>zh-cn</language><lastBuildDate>Tue, 27 Feb 2007 10:03:04 GMT</lastBuildDate><pubDate>Tue, 27 Feb 2007 10:03:04 GMT</pubDate><ttl>60</ttl><item><title>关闭浏览器弹出对话框事件onbeforeunload</title><link>http://www.blogjava.net/jennyli/articles/82351.html</link><dc:creator>Jenny Li</dc:creator><author>Jenny Li</author><pubDate>Mon, 20 Nov 2006 10:25:00 GMT</pubDate><guid>http://www.blogjava.net/jennyli/articles/82351.html</guid><wfw:comment>http://www.blogjava.net/jennyli/comments/82351.html</wfw:comment><comments>http://www.blogjava.net/jennyli/articles/82351.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/jennyli/comments/commentRss/82351.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jennyli/services/trackbacks/82351.html</trackback:ping><description><![CDATA[
		<p>在点击浏览器关闭按钮关闭浏览器的时候，有时不希望它直接关闭，希望弹出对话框提示客户，这个时候就需要用到事件onbeforeunload，用法如下：<br />&lt;script language="javascript"&gt;<br />&lt;!--<br />function opCheckUnload(){<br />  if(g_blnCheckUnload){<br />    try{ <br />      window.event.returnValue = "if close the window,the auto task will complete with document no update version";<br />    }catch(e){}<br />  }<br />}<br />--&gt;<br />&lt;/script&gt;<br /><br />&lt;body onbeforeunload="opCheckUnload();"&gt;<br />&lt;/body&gt;<br /><br />不过这种用法不支持firefox,因为firefox不支持window.event,所以本人改了一种方式，应用如下：<br />window.onbeforeunload = function() { <br />   if(g_blnCheckUnload){<br />     return("if close the window,the auto task will complete with document no update version!");<br />   }<br />}<br /><br />这样几种浏览器都支持了，弹出对话框如下：<br /><img src="file:///C:/Documents%20and%20Settings/Administrator/My%20Documents/My%20Pictures/MSNShell/Shell06.jpg" /><br /><br />但这里有个问题，本来还没有解决的，我用的浏览器是中文版，但我做的系统是英文版，这个事件弹出来的窗口所显示的语言随浏览器，没有办法自己在javascript里设置。<br /><img height="1" src="/WebResource.axd?d=pLXXeGbWF7eXU8SMs2-GFZvUWY2JNH05dFx5YzJhGUYAYJAFEaTEq36NAhTPy7_KekvzDFwt8wvQWdByvJIGWdEq6x2KpKD80&amp;t=632785713320000000" width="1" /></p>
<img src ="http://www.blogjava.net/jennyli/aggbug/82351.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jennyli/" target="_blank">Jenny Li</a> 2006-11-20 18:25 <a href="http://www.blogjava.net/jennyli/articles/82351.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>link 方式安装eclpse IDE</title><link>http://www.blogjava.net/jennyli/articles/79290.html</link><dc:creator>Jenny Li</dc:creator><author>Jenny Li</author><pubDate>Sun, 05 Nov 2006 16:31:00 GMT</pubDate><guid>http://www.blogjava.net/jennyli/articles/79290.html</guid><wfw:comment>http://www.blogjava.net/jennyli/comments/79290.html</wfw:comment><comments>http://www.blogjava.net/jennyli/articles/79290.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/jennyli/comments/commentRss/79290.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jennyli/services/trackbacks/79290.html</trackback:ping><description><![CDATA[
		<blockquote>Eclipse 的持续发展意味着需要管理的项目和插件的数量一直在增长。为了跟上最新的 Eclipse 版本，这个管理过程会使开发人员感到灰心。对于新用户来说，项目、插件、工作区和安装的概念首先就可能使之感到畏缩。本人在装subclipse的时候，用一种link方式装的，下面简单介绍 下：<br /><h3>Step 1:</h3><p>Begin the installation from the Eclipse Help menu item.<br /><img alt="Install screen" src="http://subclipse.tigris.org/images/install-1.png" /><br /></p><h3>Step 2:</h3><p>This screenshot show the screen as it initially comes up. In this case you will need to change the radio button to indicate that this is a new install.</p><p><img alt="Install screen" src="http://subclipse.tigris.org/images/install-2.png" /> <br /></p><h3>Step 3:</h3><p>This screen will vary depending on the features you have installed already. You want to click on the New Remote Site button. If you are behind a proxy and the Eclipse install mechanism does not work, then you can download a zipped version of the update site and then click the New Local Site button instead.</p><p><img alt="Install screen" src="http://subclipse.tigris.org/images/install-3.png" /></p><h3>Step 4:</h3><p>This screen is showing the New Remote Site dialog, filled in with the correct information to install Subclipse</p><pre>    Name: Subclipse
    URL:  http://subclipse.tigris.org/update_1.0.x
</pre><p><img alt="Install screen" src="http://subclipse.tigris.org/images/install-4.png" /></p><h3>Step 5:</h3><p>When you first come back to this screen, the site you added will NOT be selected. Be sure to select it before clicking Next.</p><p><img alt="Install screen" src="http://subclipse.tigris.org/images/install-5.png" /></p><h3>Step 6:</h3><p>This next screen shows all of the features that are available to install.</p><p><img alt="Install screen" src="http://subclipse.tigris.org/images/install-6.png" /></p><h3>Step 7:</h3><p>Click the button to accept the license agreement.</p><p><img alt="Install screen" src="http://subclipse.tigris.org/images/install-7.png" /></p><h3>Step 8:</h3><p>Confirm the install location</p><p><img alt="Install screen" src="http://subclipse.tigris.org/images/install-8.png" /></p><h3>Step 9:</h3><p>There is an Eclipse preference to turn off this next dialog. I have never seen a signed feature. Not even Eclipse.org nor IBM sign their features.</p><p><img alt="Install screen" src="http://subclipse.tigris.org/images/install-9.png" /></p><h3>Step 10:</h3><p>Just a screenshot of the in-process installation.</p><p><img alt="Install screen" src="http://subclipse.tigris.org/images/install-10.png" /></p><h3>Step 11:</h3><p>Eclipse needs to be restarted after installing Subclipse.</p><p><img alt="Install screen" src="http://subclipse.tigris.org/images/install-11.png" /></p><h3>Step 12:</h3><p>Finally, after restarting Eclipse, the first thing you will typically want to do is open the Subclipse Repository perspective where you can define your repositories. Be sure to also check the online help as well as the Subclipse preferences located under Team -&gt; SVN.</p><p><img alt="Install screen" src="http://subclipse.tigris.org/images/install-12.png" /></p></blockquote>
<img src ="http://www.blogjava.net/jennyli/aggbug/79290.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jennyli/" target="_blank">Jenny Li</a> 2006-11-06 00:31 <a href="http://www.blogjava.net/jennyli/articles/79290.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ajax在firefox里出现的问题及解决方式</title><link>http://www.blogjava.net/jennyli/articles/72150.html</link><dc:creator>Jenny Li</dc:creator><author>Jenny Li</author><pubDate>Thu, 28 Sep 2006 10:19:00 GMT</pubDate><guid>http://www.blogjava.net/jennyli/articles/72150.html</guid><wfw:comment>http://www.blogjava.net/jennyli/comments/72150.html</wfw:comment><comments>http://www.blogjava.net/jennyli/articles/72150.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.blogjava.net/jennyli/comments/commentRss/72150.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/jennyli/services/trackbacks/72150.html</trackback:ping><description><![CDATA[当在firefox里运用ajax时会出现一些在IE里没有出现的问题：<br />1.  当在一个窗口里弹出子窗口，然后从子窗口里获取数据返回父窗口的情况，其中所获取内容通过ajax获取，在firefox里运行时会出现“No data received from server!”的错误，并且内容没有办法返回父窗口。<br />解决办法：在子窗口里调用父窗口的javascript方法里，在调用ajax之前用方法：window.setTimeout(callAjaxMethod(),0),设置一个延时，那么ajax就在firefox里正常执行，不会出现"No data received from server!"的错误了。<br /><img src ="http://www.blogjava.net/jennyli/aggbug/72150.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/jennyli/" target="_blank">Jenny Li</a> 2006-09-28 18:19 <a href="http://www.blogjava.net/jennyli/articles/72150.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>