Tag: javascript

Internet Explorer cannot open the Internet site

nick | js | 2010-06-06
最近在公司做了一个项目,测试时遇到问题:IE6/7报错:Internet Explorer cannot open the Internet site。 先用少量代码重现一下问题: test var p = document.createElement("p"); p.innerHTML = "test"; document.body.appendChild(p); 用IE6/7浏览上面代码就能看到错误信息了(IE8,Firefox表示情绪稳定),如果没... [阅读全文]

Realtime ray tracing texture mapping with JavaScript

nick | js | 2010-06-06
Realtime ray tracing texture mapping with JavaScript
We have posted about ray tracing before, and now we have another example by Jonas Wagner: The environment is mapped using cube mapping. I store all the values of the cubemap as floats. I increase the definition range by multiplying all values bigger than 0.95 with 2. This makes sure that the bright parts of the image are... [阅读全文]

SQLike,为 JavaScript 和 ActionScript 而编写的查询引擎

nick | db, open | 2010-06-02
SQLike,为 JavaScript 和 ActionScript 而编写的查询引擎
Thomas Frank发布了一个很小的查询引擎—SQLike(10kb),主要为 JavaScript 和 ActionScript 而编写,功能和语法类似 SQL 可用来查询数组、对象。 SQLike使用类似SQL的语法,但是却并不是SQL语法。在查询对象要设定关键字时,需要使用JS/AS函数作为参数。 查看更多详情:http://www.thomasfrank.se/sqlike.html 下 载:http://www.thomasfrank.se/SQL... [阅读全文]

JavaScript查询引擎 SQLike

nick | js, mysql | 2010-06-01
JavaScript查询引擎 SQLike
SQLike 是一个很小的为 JavaScript 和 ActionScript 编写的查询引擎,功能和语法类似 SQL 可用来查询数组、对象。 授权协议: 未知 开发语言: JavaScript 操作系统: 跨平台 收录时间: 2010年06月01日 软件首页 软件文档 软件下载 // // [阅读全文]

16 个JavaScript Web UI 库

nick | html5, jquery, js, web | 2010-05-19
16 个JavaScript Web UI 库
几乎所有的富 Web 应用都基于一个或多个 Web UI 库或框架,这些 UI 库与框架极大地简化了开发进程,并带来一致,可靠,以及高度交互性的用户界面。本文介绍了 15 个非常强大的 JavaScript Web UI 库,非常适合各种各种规模的富 Web 应用的开发。 1.LivePipe LivePipe UI 基于 Prototype Javascript 框架,包含了一整套经严格测试并高度可扩展的 UI ... [阅读全文]

讨论闭包传入参数:window & undefined

nick | js, windows | 2010-05-17
讨论闭包传入参数:window & undefined
引言 最常见的闭包 (Closure) 范式大家都很熟悉了: 1 2 3 (function() { // … })(); 很简单,大家都在用。但是,我们需要了解更多。 首先,闭包是一个匿名函数 (Anonymous function), 即是 (function() {}) 这部分。之所以要给 function 添加括弧是为了让它形成一个表达式 (expression), 有了表达式,并且确定它的类型是个函数 ... [阅读全文]

Speech Recognition with Javascript; speechapi.com

nick | js, web, 学习 | 2010-05-17
Speech Recognition with Javascript; speechapi.com
Elias Majic and Spencer Lord have guest authored this post on speech recognition in JavaScript. Do you have something to share? Consider your own guest post and contact us! Recently Google’s free text to speech api has made the rounds. The reverse is also possible, converting speech to text. With speechapi.com’s j... [阅读全文]

jRaiser揭秘——事件监听兼容处理

nick | js | 2010-05-17
在事件监听处理方面,IE提供了attachEvent和detachEvent两个接口,而Firefox提供的是addEventListener和removeEventListener。最简单的兼容性处理就是封装这两套接口: function addEvent(elem, eventName, handler) { if (elem.attachEvent) { elem.attachEvent(”on” + eventName, handler); } else if (elem.addEventListener) { elem.addEventLi... [阅读全文]

10个javascript Frameworks 外连

nick | js | 2010-05-16
google提供的10个javascript Frameworks 外连: jquery <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> jquery UI <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script> Chrome Frame <script src="http://ajax.googleapis.com/... [阅读全文]

JavaScript在IE6下报错’expected identifier, string or number’

nick | js | 2010-05-16
最近一段时间在项目开发里用了许多jQuery的插件,有机会一定在本日志里写一些心得。今天不准备介绍jQuery插件,而是要介绍我在使用jQuery表单插件时碰到的一个问题。jQuery表单插件应 该算是家喻户晓的jQury插件,我过去一直没有用它,因为jQuery插件一般体积都挺大的,如果只是需要一些简单的功能,我一般都是自己写。比如 jQuery表单的处理,我在日志... [阅读全文]
Ɣ回顶部