Flash和Ajax开发的工具类库 SWFAddress

码农软件 · 软件分类 · AJAX框架/RIA · 2019-03-27 21:28:24

软件介绍

SWFAddress是一个短小精悍的类库,它是一个Flash和Ajax开发的工具类库,他提供兼容多平台、多浏览器下的location.hash(即URL部分的#之后的处理)的解决方案,并解决浏览器的History的兼容性问题(IE6、IE7)等(官方的介绍文档叫做虚拟化URL)。

特点:

1、支持多浏览器,你可以试试他的Sample案例:Ajax SampleFlash Sample,当然,还有更多Sample。

2、解决了History的问题,并提供标准的事件编程接口。

3、短小精悍,易于使用。

最简单的调用(基于MooTools的代码):

	function handleChange(event) {
		$('output').innerHTML += event.path + "\r\n";
	    SWFAddress.setTitle(event.path);
	}

	SWFAddress.addEventListener(SWFAddressEvent.CHANGE, handleChange);

	$$('a').addEvent('click', function() {
		var href = this.href.replace(location.protocol + '//' + location.host, '');
		if (href.length <= 0) href = '/';
		SWFAddress.setValue(href);
		return false;
	});

 

当然这不是一个很好的示例,只是为了说明,调用是多么的简单。

更多的参考,可以查看他的官方文档

本文地址:https://codercto.com/soft/d/2297.html

Numerical Recipes 3rd Edition

Numerical Recipes 3rd Edition

William H. Press、Saul A. Teukolsky、William T. Vetterling、Brian P. Flannery / Cambridge University Press / 2007-9-6 / GBP 64.99

Do you want easy access to the latest methods in scientific computing? This greatly expanded third edition of Numerical Recipes has it, with wider coverage than ever before, many new, expanded and upd......一起来看看 《Numerical Recipes 3rd Edition》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具