﻿<?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-Dorian's Blog-随笔分类-Java Script</title><link>http://www.blogjava.net/dorian/category/4211.html</link><description /><language>zh-cn</language><lastBuildDate>Tue, 27 Feb 2007 12:19:28 GMT</lastBuildDate><pubDate>Tue, 27 Feb 2007 12:19:28 GMT</pubDate><ttl>60</ttl><item><title>50 AJAX Reference Websites From Around the World</title><link>http://www.blogjava.net/dorian/archive/2006/06/13/52351.html</link><dc:creator>Dorian's Blog</dc:creator><author>Dorian's Blog</author><pubDate>Tue, 13 Jun 2006 02:02:00 GMT</pubDate><guid>http://www.blogjava.net/dorian/archive/2006/06/13/52351.html</guid><wfw:comment>http://www.blogjava.net/dorian/comments/52351.html</wfw:comment><comments>http://www.blogjava.net/dorian/archive/2006/06/13/52351.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/dorian/comments/commentRss/52351.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dorian/services/trackbacks/52351.html</trackback:ping><description><![CDATA[As a consistent devotee of the AJAX scene over the past year or so
I have hundreds of feeds in my reader. Recently, I've had several email
requests from readers requesting to know what AJAX websites I visit
daily. While I visit any title that interest me, these are the sites I
go to consistently. <br /><br />Since the coining of the the term AJAX over a year ago hundreds if
not thousands of websites, blogs and forums have been buzzing with
posts on the subject. As I've found this can sometimes leave search
engines bewildered as to where the current and relevant information
really exists. So I thought I would put together this list of what I
think are some of the most relevant AJAX sites are worldwide.
<br /><br />Please consider this list of AJAX reference sites to be in its
infancy. I don't read as many languages as I'd like to so the current
list is rather limited by language. Please feel free to add to this
list by adding a comment to this post with other useful AJAX resource
sites. If you think the idea of a moderated AJAX website resource list
is a good idea let me know and I'll set up a wiki. <br /><br />
Special thanks to all of the hard working developers who are spending their free time share their knowledge with all of us! 
<br /><br /><b>English</b><br /><a href="http://www.ajaxian.com/" title="Ajaxian">Ajaxian</a><br />
Simply one of the best AJAX sites on the web. Daily updates, insightful
commentary and coverage of Ajax development around the world. <br /><br /><a href="http://www.ajax-blog.com/" title="AJAX Blog">AJAX Blog</a><br />
Daily AJAX content with sreenshots and commentary.
<br /><br /><a href="http://www.ajaxcamp.com/" title="AJAX Camp">AJAX Camp</a><br />
Ajax Camp is a community for learning, interacting, and asking questions about web-based development using Javascript and Ajax.
<br /><br /><a href="http://www.ajaxforums.net/" title="AjaxForums">AjaxForums</a><br />
Very active forums focusing on AJAX
<br /><br /><a href="http://www.ajaxfreaks.com/" title="AJAX Freaks">AJAX Freaks</a><br />
This website exists to provide you with information to use while
learning or developing AJAX. If you need AJAX Help or you would like to
provide AJAX Help to other developers, you are in the right place.
<br /><br /><a href="http://www.ajaxgeek.info/" title="AJAX Geek">AJAX Geek</a><br />
All things ajax, css, dhtml, xml, javascript, and geekier
<br /><br /><a href="http://www.ajaxgoals.com/" title="AJAX Goals">AJAX Goals</a><br />
AJAX site with forums, code samples, news and articles
<br /><br /><a href="http://ajaxguru.blogspot.com/" title="AJAX Guru">AJAX Guru</a><br />
AJAX blog by Kishore
<br /><br /><a href="http://www.ajaximpact.com/" title="AJAX Impact">AJAX Impact</a><br />
Very nice AJAX Community with great references
<br /><br /><a href="http://www.ajaxlessons.com/" title="AjaxLessons">AjaxLessons</a><br />
AjaxLessons.com is a resource for ajax tutorials as well as information surrounding Ajax and web 2.0. 
<br /><br /><a href="http://www.ajaxline.com/" title="AJAX Line">AJAX Line</a><br />
AJAX Community with a blog, forum and tutorials
<br /><br /><a href="http://blog.ajax-links.com/" title="Ajaxlinks">Ajaxlinks</a><br />
AJAX links, code samples and news
<br /><br /><a href="http://ajax.phpmagazine.net/" title="AJAX Magazine">AJAX Magazine</a><br />
AJAX blog focusing on new AJAX developments. 
<br /><br /><a href="http://www.ajaxmatters.com/r/welcome" title="AJAXMatters">AJAXMatters</a><br />Ajax
Matters is an informational site about AJAX (short for "Advanced
Javascripting and XML" or "Asynchronous JavaScripting and XML") and how
these technologies are applied to web development. Simply put, I
started Ajax Matters to collect and share information about the
XMLHTTPRequest object, JavaScript and XML.
<br /><br /><a href="http://ajaxpatterns.org/" title="AJAX Patterns">AJAX Patterns</a><br />
The publicly editable repository of all things Ajax. Design Patterns, Frameworks, Libraries, Tools and Links 
<br /><br /><a href="http://www.ajaxprojects.com/" title="AJAX Projects">AJAX Projects</a><br />
AJAX Projects categorized by programming language
<br /><br /><a href="http://www.ajaxreview.com/" title="AJAX Review">AJAX Review</a><br />AJAX
and web 2.0 dissected. The purpose of this site is simple. Take nifty
web-tools, analyze them, post screenshots, and help people find useful
(and not so useful) web applications <br /><br /><a href="http://www.ajaxtalk.com/" title="AJAX Talk">AJAX Talk</a><br />
Discuss the new web
<br /><br /><a href="http://www.ajaxtechforums.com/" title="Ajax Technology Forums">Ajax Technology Forums</a><br />
Asynchronous JavaScript And XML Ajax forums, discussions and tech issues.
<br /><br /><a href="http://www.ajaxtutorial.net/" title="Ajax Tutorial">Ajax Tutorial</a><br />
Ajax help for newbies
<br /><br /><a href="http://www.ajaxwith.com/" title="AJAXwith">AJAXwith</a><br />
AJAX resources and information
<br /><br /><a href="http://groups.google.com/group/ajax-world" title="AJAX World">AJAX World</a><br />
AJAX discussion group with over a thousand members!
<br /><br /><a href="http://ajaxaspects.blogspot.com/" title="Aspects of AJAX">Aspects of AJAX</a><br />
AJAX blog with loads of resources
<br /><br /><a href="http://codinginparadise.org/weblog/" title="Coding In Paradise">Coding In Paradise</a><br />
Excellent and thoughtful AJAX tutorials and techniques by  Brad Neuberg
<br /><br /><a href="http://www.cyberdummy.co.uk/" title="Cyber Dummy">Cyber Dummy</a><br />
AJAX code samples and source code
<br /><br /><a href="http://www.fiftyfoureleven.com/" title="Fiftyfoureleven">Fiftyfoureleven</a><br />
Fiftyfoureleven.com consists of a weblog and resources that focus on
web development: designing, programming, copywriting and more.
<br /><br /><a href="http://richui.blogspot.com/" title="Jep's Rich User Interfaces blog">Jep's Rich User Interfaces blog</a><br />
About AJAX Performance and some other things by Jep Castelein of Backbase
<br /><br /><a href="http://blog.ilikeu2.nl/" title="Logicalley">Logicalley</a><br />
AJAX blog by Chris van de Steeg author of LiveGrid
<br /><br /><a href="http://developer.mozilla.org/en/docs/AJAX" title="Mozilla Developer Center">Mozilla Developer Center</a><br />
Great site to get a first look at AJAX.
<br /><br /><a href="http://www.robsanheim.com/category/software/ajax/" title="Panasonic Youth">Panasonic Youth</a><br />
AJAX blog by Rob Sanheim with a focus on AJAX and <a title="" href="http://java.sun.com/" target="_blank">Java Technology</a>
<br /><br /><a href="http://www.protolize.org/" title="Protolize">Protolize</a><br />Protolize
is a place where we share most commonly used and helpful tools out
there that we like to use as a web designer + developer.
<br /><br /><a href="http://www.robgonda.com/blog/" title="Rob Gonda">Rob Gonda</a><br />
Great AJAX Coldfusion content with commentary
<br /><br /><a href="http://softwareas.com/" title="Software As She's Developed">Software As Sheâ€™s Developed</a><br />
AJAX, <a title="" href="http://java.sun.com/" target="_blank">Java Technology</a>, patterns, usability by Michael Mahemoff
<br /><br /><a href="http://www.maxkiesler.com/index.php/weblog/comments/50_ajax_reference_websites_from_around_the_world/" title="There and Back Again">There and Back Again</a><br />
The weblog of Joshua Eichorn, AJAX, PHP and Open Source
<br /><br /><a href="http://www.tonyyoo.com/protolize/" title="Tony Yoo">Tony Yoo</a><br />I've
been getting many requests from people asking for this page where they
can access different resources that are not included in Protolize.org
website. So I've decided to keep this page up for those people.
<br /><br /><a href="http://earthcode.com/" title="Web 2.0 Technologies">Web 2.0 Technologies</a><br />
Blog with resources for AJAX, javaScript and rails
<br /><br /><b>Italian</b><br /><a href="http://www.onajax.com/" title="On Ajax">On Ajax</a><br />
Italian blog covering AJAX developments
<br /><br /><a href="http://www.openajax.it/" title="Open AJAX">Open AJAX</a><br />
Italian AJAX community site with forums, demos and articles 
<br /><br /><a href="http://www.sastgroup.com/" title="Sastroup">Sastroup</a><br />
Italian language site with resources for AJAX, javascript and PHP.
<br /><br /><b>German</b><br /><a href="http://ajaxaspekte.blogspot.com/" title="Ajax Aspekte">Ajax Aspekte</a><br />
German language AJAX blog with loads of resources
<br /><br /><a href="http://www.ajax-community.de/" title="AJAX Community">AJAX Community</a><br />
German language site devoted to AJAX and web 2.0 developments.
<br /><br /><a href="http://www.ajax-info.de/" title="Ajax Info">Ajax Info</a><br />
German language blog focusing on AJAX and web 2.0.
<br /><br /><a href="http://www.ajax-scripting.de/" title="Ajax Scripting">Ajax Scripting</a><br />
A nice German language ajax blog. 
<br /><br /><a href="http://www.alvit.de/handbook/" title="Alvit - The Web Developers Handbook">Alvit - The Web Developers Handbook</a><br />
A German website written in English full of web dev resources. There is a nice section on AJAX, DOM and css
<br /><br /><a href="http://www.mathertel.de/" title="Mathertel">Mathertel</a><br />
German blog presented in English with some nice AJAX references and projects by Matthias Hertel
<br /><br /><b>Japanese</b><br /><a href="http://opengl.jp/ajax/" title="Ajax Blog">Ajax Blog</a><br />
Japanese Ajax presented in English (Asynchronous JavaScript + XML) blog by Yukio Andoh. 
<br /><br /><a href="http://ajax.atmarkit.co.jp/jsicdb/all/s" title="Atmarkit">Atmarkit</a><br />
Japanese language  AJAX site providing code samples and source code
<br /><br /><a href="http://b.hatena.ne.jp/sunaoka/Ajax/?mode=detail" title="Hatena">Hatena</a><br />
Japanese site presented in English with AJAX resources
<br /><br /><b>Korean</b><br /><br /><a href="http://okjsp.pe.kr/bbs?act=RECENT" title="OK JSP">OK JSP</a><br />
Korean language site coving AJAX, JSP and XML
<br /><br /><b>Spanish</b><br /><a href="http://www.ingeniuz.com/category/ajax/" title="Ingeniuz">Ingeniuz</a><br />
Spanish language site with a useful AJAX section<img src ="http://www.blogjava.net/dorian/aggbug/52351.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dorian/" target="_blank">Dorian's Blog</a> 2006-06-13 10:02 <a href="http://www.blogjava.net/dorian/archive/2006/06/13/52351.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JavaScript 调试新武器</title><link>http://www.blogjava.net/dorian/archive/2005/11/08/18801.html</link><dc:creator>Dorian's Blog</dc:creator><author>Dorian's Blog</author><pubDate>Tue, 08 Nov 2005 08:40:00 GMT</pubDate><guid>http://www.blogjava.net/dorian/archive/2005/11/08/18801.html</guid><wfw:comment>http://www.blogjava.net/dorian/comments/18801.html</wfw:comment><comments>http://www.blogjava.net/dorian/archive/2005/11/08/18801.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/dorian/comments/commentRss/18801.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dorian/services/trackbacks/18801.html</trackback:ping><description><![CDATA[<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">JavaScript <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">调试新武器</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">Venkman <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是为</SPAN><SPAN lang=ZH-CN> </SPAN><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">基于</SPAN> Mozilla <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的浏览器而提供的一个强大的</SPAN> JavaScript <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">调试环境。本文将对</SPAN>Venkman <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">做一个简单的介绍。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">环境：</SPAN>Mozilla Firefox 1.0.4</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt">JavaScript Dubugger 0.9.84 (<SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">此为</SPAN>Venkman <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的代号</SPAN>)</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">第一步就是给</SPAN> Firefox <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">安装此插件。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><A href="http://ftp.mozilla.org/pub/mozilla.org/extensions/javascript_debugger/javascript_debugger-0.9.84-fx.xpi"><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">点这里下载并安装插件</SPAN></A></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">安装好后重启一下</SPAN> Firefox,<SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">就可在菜单工具</SPAN> -&gt; JavaScript Debugger <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">点击来运行</SPAN> Venkman<SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">Venkman <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">界面如下</SPAN>:</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;<A href="/images/blogjava_net/dorian/4207/o_venkman.jpg" target=_blank><IMG height=90 alt=t_venkman.jpg src="http://www.blogjava.net/images/blogjava_net/dorian/4207/t_venkman.jpg" width=120 border=0><o:p></o:p></A></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">第二步，我们来写一个有错误的代码：</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">一个名为</SPAN> Test.js <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的</SPAN> JavaScript <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">脚本文件。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;</P>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #008080">1</SPAN><IMG id=Codehighlighter1_19_37_Open_Image onclick="this.style.display='none'; Codehighlighter1_19_37_Open_Text.style.display='none'; Codehighlighter1_19_37_Closed_Image.style.display='inline'; Codehighlighter1_19_37_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align=top><IMG id=Codehighlighter1_19_37_Closed_Image style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_19_37_Closed_Text.style.display='none'; Codehighlighter1_19_37_Open_Image.style.display='inline'; Codehighlighter1_19_37_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align=top><SPAN style="COLOR: #0000ff">function</SPAN><SPAN style="COLOR: #000000">&nbsp;test(str)&nbsp;</SPAN><SPAN id=Codehighlighter1_19_37_Closed_Text style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff"><IMG src="http://www.blogjava.net/images/dot.gif"></SPAN><SPAN id=Codehighlighter1_19_37_Open_Text><SPAN style="COLOR: #000000">{<BR></SPAN><SPAN style="COLOR: #008080">2</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;alert(Str);<BR></SPAN><SPAN style="COLOR: #008080">3</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align=top>}</SPAN></SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">一个名为</SPAN> Test.html <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的网页文件。</SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;</P>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #008080">1</SPAN><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">HTML</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">2</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">HEAD</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">3</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">Script&nbsp;</SPAN><SPAN style="COLOR: #ff0000">Language</SPAN><SPAN style="COLOR: #0000ff">="JavaScript"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;src</SPAN><SPAN style="COLOR: #0000ff">="Test.js"</SPAN><SPAN style="COLOR: #0000ff">&gt;</< SPAN><SPAN style="COLOR: #800000">Script</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">4</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff"></< SPAN><SPAN style="COLOR: #800000">HEAD</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">5</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;<BR></SPAN><SPAN style="COLOR: #008080">6</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">BODY&nbsp;</SPAN><SPAN style="COLOR: #ff0000">onload</SPAN><SPAN style="COLOR: #0000ff">="test('Hello')"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">7</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff"></< SPAN><SPAN style="COLOR: #800000">BODY</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #008080">8</SPAN><SPAN style="COLOR: #000000"><IMG src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #0000ff"></< SPAN><SPAN style="COLOR: #800000">HTML</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></DIV>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">我们可以看到在</SPAN> Test.js <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中的方法</SPAN> test(str) <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中有个不易被发觉得错误</SPAN>”alert(Src)”</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000>&nbsp;<o:p></o:p></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">这个</SPAN> Src <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">，我们并没有声明过，像这种误打在平时的写代码过程中经常有这种问题。好，我们来看看</SPAN> Venkman <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是如何来捕捉这个</SPAN> Bug <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的。</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000>&nbsp;<o:p></o:p></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">你可以在</SPAN> Venkman <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">中打开这个</SPAN> Test.js <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文件，也可以不用打开，因为在你打开了</SPAN> Venkman <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">后，用</SPAN> Firefox <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">执行任何带有</SPAN> JavaScript <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">的网页，如果发生错误或者异常，</SPAN>Venkman <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">都会自动打开</SPAN><SPAN lang=ZH-CN> </SPAN><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">这个</SPAN><SPAN lang=ZH-CN> </SPAN><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">出错的脚本文件。当然前提是你已经对</SPAN> Venkman <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">进行过设置了</SPAN>(Debug -&gt; Error Triger -&gt; Stop For Errors <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">和</SPAN> Debug -&gt; Throw Triger -&gt; Sotp For Exceptions)<SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">。</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000>&nbsp;<o:p></o:p></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">第三步，用</SPAN> Friefox <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">打开这个</SPAN> Test.html <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">文件。你就会看到</SPAN> Venkman <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">报告类似于如下的错误：</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000>Stopped for error handler.<BR>#0: function test(str=string:"Hello") in <FILE: E: Dorian MyDocument Test.js>line 2<BR>001: function test(str) {<BR>002: <SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>alert(Str);<BR>Continuing from error handler.<BR>Exception ``ReferenceError: <B><SPAN style="COLOR: red">Str is not defined</SPAN></B>'' thrown from function test(str=string:"Hello") in <FILE: E: Dorian MyDocument Test.js>line 2.<BR>[e] message = [string] "Str is not defined"<BR>Stopped for thrown exception.<BR>#0: function test(str=string:"Hello") in <FILE: E: Dorian MyDocument Test.js>line 2<BR>001: function test(str) {<BR>002: <SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>alert(Str);<BR>Continuing from thrown exception.<BR>Error ``ReferenceError: Str is not defined'' [xs] in file ``</FONT><A href="/dorian/admin/Test.js" target=_content><FONT color=#000000>file:///E:/Dorian/MyDocument/Test.js</FONT></A><FONT color=#000000>'', line 2, character 0.</FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000>&nbsp;<o:p></o:p></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">其中可以很清除的看到</SPAN> Str <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">是未声明过的。</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000>&nbsp;<o:p></o:p></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000>&nbsp;<o:p></o:p></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT color=#000000><SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">呵呵，这个</SPAN> JavaScript <SPAN lang=ZH-CN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">调试器的确很强大，在这里只不过做一个简单的介绍罢了。</SPAN><B><o:p></o:p></B></FONT></P></SPAN></SPAN></SPAN></SPAN><img src ="http://www.blogjava.net/dorian/aggbug/18801.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dorian/" target="_blank">Dorian's Blog</a> 2005-11-08 16:40 <a href="http://www.blogjava.net/dorian/archive/2005/11/08/18801.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>一个JavaScript的代码高亮引擎</title><link>http://www.blogjava.net/dorian/archive/2005/10/27/17051.html</link><dc:creator>Dorian's Blog</dc:creator><author>Dorian's Blog</author><pubDate>Thu, 27 Oct 2005 07:03:00 GMT</pubDate><guid>http://www.blogjava.net/dorian/archive/2005/10/27/17051.html</guid><wfw:comment>http://www.blogjava.net/dorian/comments/17051.html</wfw:comment><comments>http://www.blogjava.net/dorian/archive/2005/10/27/17051.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/dorian/comments/commentRss/17051.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/dorian/services/trackbacks/17051.html</trackback:ping><description><![CDATA[<P>刚才在闲逛的时候发现了一个用 JavaScirpt 实现的代码高亮引擎。</P>
<P>用了一下，发现满好用的。</P>
<P>这是他解析后的代码<BR><A href="/images/blogjava_net/dorian/4207/o_HighLight_Demo.jpg" target=_blank><IMG height=94 alt=t_HighLight_Demo.jpg src="http://www.blogjava.net/images/blogjava_net/dorian/4207/t_HighLight_Demo.jpg" width=120 border=0></A></P>
<P>Download:&nbsp; <A href="http://www.dreamprojections.com/SyntaxHighlighter/">http://www.dreamprojections.com/SyntaxHighlighter/</A><BR>Examples:&nbsp; <A href="http://www.dreamprojections.com/SyntaxHighlighter/Examples.aspx">http://www.dreamprojections.com/SyntaxHighlighter/Examples.aspx</A></P>
<P><BR>遗憾的是这个引擎没有 Java 的高亮。</P>
<P>所以自己添加了一个解析 Java 的类。</P>
<P>随后在使用的过程中又发现，代码段只能打开，而不能收起。</P>
<P>故又修改了他的核心代码。</P>
<P>现把这两个 JS 文件放上来^_^</P>
<P>shCore.js&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :&nbsp; <A href="/Files/dorian/shCore.zip">http://www.blogjava.net/Files/dorian/shCore.zip</A><BR>shBrushJava.js :&nbsp; <A href="/Files/dorian/shBrushJava.zip">http://www.blogjava.net/Files/dorian/shBrushJava.zip</A></P><img src ="http://www.blogjava.net/dorian/aggbug/17051.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/dorian/" target="_blank">Dorian's Blog</a> 2005-10-27 15:03 <a href="http://www.blogjava.net/dorian/archive/2005/10/27/17051.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>