资源简介
在html网页中轻松创建面板、标签、菜单并通过Ajax无刷新更新数据,能做excel一样实时编辑表格,比jQuery功能更大,里面有例子
代码片段和文件信息
#!/usr/bin/env python
import sys os re
try:
import chardet
except ImportError:
print “You need universal encoding detector for this script“
print “ http://chardet.feedparser.org or apt-get install python-chardet“
sys.exit()
regexp_language = re.compile(“\* +(.+) +translation“ re.IGNORECASE)
js_template = “““/* This file is automaticly generated by create_language_js.py */
// some data used in the examples
Ext.namespace(‘Ext.exampledata‘);
// TODO: complete and sort the list
Ext.exampledata.languages = [
%s
];
“““
lang_dubs = {}
def lang_name(file):
language = os.path.basename(file)
m = regexp_language.search(open(file).read(512))
if m:
language = m.groups()[0]
if not lang_dubs.has_key(language):
lang_dubs[language] = file
else:
raise Exception(‘Duplicate language ‘+language+‘ for file ‘+file)
return language
def print_locale(lang_code):
print lang_code
sys.stdout.flush()
return True
def main():
base_dir = “../../src/locale“
base_file = lambda f: os.path.join(base_dir f)
try:
locales = os.listdir(base_dir)
except IOError:
print “Cannot find source locale directory: %s ... exiting“ % base_dir
sys.exit()
valid_file = lambda e: e.endswith(“.js“) and e.startswith(“ext-lang-“)
char_set = lambda f: chardet.detect(open(f).read())[‘encoding‘]
lang_code = lambda f: f[9:f.rfind(“.js“)]
info_set = lambda f: (lang_name(base_file(f)) (lang_code(f) char_set(base_file(f))))
locales = dict(info_set(file) for file in locales if valid_file(file) and print_locale(lang_code(file)))
print “... done“
locale_strarray = ‘\n‘.join([“\t[%r %r %r]“ % (code name charset) \
for name (code charset) in sorted(locales.items())])
# create languages.js
open(“languages.js“ “w“).write(js_template % locale_strarray)
print “saved %d languages to languages.js“ % len(locales)
if __name__==“__main__“:
main()
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2008-08-04 19:41 ext-2.2\
目录 0 2008-08-04 18:54 ext-2.2\adapter\
目录 0 2008-08-04 18:54 ext-2.2\adapter\ext\
文件 35849 2008-08-04 18:54 ext-2.2\adapter\ext\ext-ba
目录 0 2008-08-04 19:36 ext-2.2\adapter\jquery\
文件 15551 2008-08-04 18:54 ext-2.2\adapter\jquery\ext-jquery-adapter.js
文件 96763 2008-02-10 00:07 ext-2.2\adapter\jquery\jquery.js
目录 0 2008-08-04 19:36 ext-2.2\adapter\prototype\
文件 38986 2008-01-03 23:07 ext-2.2\adapter\prototype\effects.js
文件 16135 2008-08-04 18:54 ext-2.2\adapter\prototype\ext-prototype-adapter.js
文件 130347 2008-02-09 23:59 ext-2.2\adapter\prototype\prototype.js
文件 2654 2008-01-03 23:07 ext-2.2\adapter\prototype\sc
目录 0 2008-08-04 18:54 ext-2.2\adapter\yui\
文件 13125 2008-08-04 18:54 ext-2.2\adapter\yui\ext-yui-adapter.js
目录 0 2008-08-04 18:54 ext-2.2\build\
目录 0 2008-08-04 18:53 ext-2.2\build\adapter\
文件 27836 2008-08-04 18:53 ext-2.2\build\adapter\ext-ba
文件 7538 2008-08-04 18:53 ext-2.2\build\adapter\jquery-bridge-min.js
文件 8122 2008-08-04 18:53 ext-2.2\build\adapter\prototype-bridge-min.js
文件 5112 2008-08-04 18:53 ext-2.2\build\adapter\yui-bridge-min.js
目录 0 2008-08-04 18:53 ext-2.2\build\core\
文件 3791 2008-08-04 18:53 ext-2.2\build\core\CompositeElement-min.js
文件 4894 2008-08-04 18:53 ext-2.2\build\core\DomHelper-min.js
文件 10541 2008-08-04 18:53 ext-2.2\build\core\DomQuery-min.js
文件 35957 2008-08-04 18:53 ext-2.2\build\core\Element-min.js
文件 8439 2008-08-04 18:53 ext-2.2\build\core\EventManager-min.js
文件 8144 2008-08-04 18:53 ext-2.2\build\core\Ext-min.js
文件 8950 2008-08-04 18:53 ext-2.2\build\core\Fx-min.js
文件 2671 2008-08-04 18:53 ext-2.2\build\core\Template-min.js
文件 4387 2008-08-04 18:53 ext-2.2\build\core\UpdateManager-min.js
目录 0 2008-08-04 18:53 ext-2.2\build\data\
............此处省略1711个文件信息
相关资源
- [.Net控件] Infragistics NetAdvantage Reporti
-
Single Page Web Applications ja
vasc ript - 写个一个简单的web项目把前端技术:
- HTML5 WebSocket权威指南(带标签)
- 用ajax实现html与servlet的数据交互
- 一个Html静态页面查IP地理位置
- QT5-电压电阻表盘源码可以自定义阴影
- QT-电压电阻表盘源码可以自定义阴影
- ajax简单项目
- ajax证书查询插件.zip
- jQuery ajax 多级联动 下拉框 Demo
- unigui-调用html AjaxEvent交互 author ozhy基
- 用VC获得webbrowser中的网页代码包括d
- 超详细Ajax.xmind思维导图
- easyui-datagrid官方demo
- cgi ajax js 刷新 html
- DEDECMS TAGS模板选择静态化URL中文路径
- 3d 标签墙(three.js)
- tab标签切换纯css
- SmartAdmin 1.4.1模板 ajax version完整源码
- 单页网站模板(多标签、自适应、支
- html angularjs+requirejs+dhtmlx 后台多标签模
- Ajax+HTML+ASHX实现文件异步上传
- Ajax-AjaxFileUpload.zip
- 通讯录H5版
- html5移动端拖拽图片、拖拽标签等插件
评论
共有 条评论