AjaxFilter
- 授权协议: 未知
- 开发语言:
- 操作系统: 未知
- 软件首页: http://plugins.jquery.com/project/AjaxFilter
软件介绍
This tiny plugin provides a registry for different filter functions to sanitize ajax responses.
It requires jQuery 1.3 with its new feature, the 'dataFilter' ajax setting.
If you want to provide a new implementation, you need to do something like this:
jQuery.ajaxFilter.register( 'js_in_href', 'html', function( data ){
return data.replace(/href="javascript:[^"]+"/g, '');
});or
jQuery.ajaxFilter.register('eval', 'script html json', function( data ){
return data.replace(/eval\(.+?\);?/g, '');
});Arguments for jQuery.ajaxFilter.register() are:
- Name for the filter, used as 'filter' when calling jQuery.ajax.
- One or more dataTypes to handle. Can be any combination of ajax, html, json and xml separated by spaces.
- The filter function. Will receive 2 arguments: the data and the type. The 'this' will reference the settings object.
To use it, you do:
jQuery.ajax({
url:'foo.html',
filter:'js_in_href',
// ...
});The filter can also parse the response.
That means it can (for example) provide an alternative way of eval'ing json. This is specially useful for Adobe AIR apps.
If the filter returns something else than a string, it's assumed to be the final response.
Python灰帽子
[美] Justin Seitz / 丁赟卿 译、崔孝晨 审校 / 电子工业出版社 / 2011-3 / 39.00元
《Python灰帽子》是由知名安全机构Immunity Inc的资深黑帽Justin Seitz主笔撰写的一本关于编程语言Python如何被广泛应用于黑客与逆向工程领域的书籍。老牌黑客,同时也是Immunity Inc的创始人兼首席技术执行官(CTO)Dave Aitel为这本书担任了技术编辑一职。书中绝大部分篇幅着眼于黑客技术领域中的两大经久不衰的话题:逆向工程与漏洞挖掘,并向读者呈现了几乎每个......一起来看看 《Python灰帽子》 这本书的介绍吧!
XML 在线格式化
在线 XML 格式化压缩工具
HEX CMYK 转换工具
HEX CMYK 互转工具
