Yahoo javascript 开源界面库YUI 和EXT
清清月儿整理
[yui][译]Yahoo!User Interface Libray 介绍
Yahoo! User Interface Library(简称yui) 是一个使用JavaScript编写的工具和控件库。它利用DOM脚本,DHTML和AJAX来构造具有丰富交互功能的Web程序。yui也包含几个核心的CSS文件。yui中的所有组件已经以开源的形式发布,它们遵循BSD协议并且可以免费使用。可以从Sourceforge站点下载完整的项目文件,同时包含相关文档和示例。
-Written by 浪子@cnblogs.com
Yui组件分成2类:工具包和控件库
Yui 工具包
Yui 工具包利用DOM脚本来简化浏览器内的开发(in-browser devolvement),使用DHTML和AJAX的特性开发所有的Web程序。
动画(Animation):在你的页面中通过指定位置,大小,透明度或者页面元素的其他特性来创建一个“电影效果(cinematic effects)”。这些效果将在你的页面发生变化的时候给用户更好的体验。
连接管理(Connection Manager ):这个工具包帮助你管理XMLHttpRequest(一般被称为AJAX)事务,它提供对表单提交(form posts),错误捕获(error handling)和callbacks的全面支持。该工具包也支持文件的上传管理。
DOM:DOM工具包提供更简单的DOM脚本的功能调用方式,包含元素的位置和CSS样式的管理。
拖放(Drag and Drop):创建可拖放的对象。为了提供丰富的交互功能(比如拖动一个对象到目标位置)你可能需要编写很多代码。这个工具包可以在所有支持的浏览器中捕获所有的操作事务并保证其稳定地运行。
事件(Event):这个神奇的管理类库给你提供一种简单安全的方法访问浏览器的事件(比如点击和键盘操作)。这个事件封包中还包含了自定义事件对象,它为你的程序交互提供一种发布和订阅事件的机制。
yui控件:
yui控件库为你页面提供一组高交互性性的可视化元素。这些元素完全在客户端创建维护,不需要请求服务器进行页面刷新。
这些控件包括:
自动完成(AutoComplete)控件:自动完成控件为文本输入提供一种渐进式的用户体验(streamline user interactions)。控件会提供相似项列表和基于多样化的数据格式的提前键入功能(type-ahead functionality based on a variety of data-source formats),并且可以通过XMLHttpRequest访问服务端的数据。
日历(Calendar)控件:一个用来日期选择的动态图形控件。
容器(Container)控件:一组模仿windows样式的控件,他们包括Tooltip, Panel, Dialog 和 SimpleDialog。其中Module 和 Overlay控件提供一个可扩展的平台,你可以控制自定义的模仿windows样式的控件。
日志(Logger)控件:提供一个快速和简单的记录日志的方式,它直接将日志信息输出到屏幕控制台(on-screen console)、Firefox的扩展组件FireBug,或者Safari的Javascript控制台。yui的Debug组件将完整的记录输出信息和调试信息。
菜单(Menu)控件:利用此控件只需要几行简单的代码就可以设计一个动态样式的菜单。可以完全使用javascript构造一个菜单,can be layered on top of semantic unordered lists。
滑块(Slider)控件:提供一个可滑动的组件,它允许使用者在一定的范围内(x轴,y轴)改变滑块的位置。
树形(TreeView)控件:提供一个节点可缩放的树形控件。节点可以是链接,自定义属性,并且可以动态加载。节点元素的展现可以通过CSS修改,比如文件夹视图,TO-DO任务列表或者其他可视化处理
第三章 yui的CSS资源
为了让CSS能符合不同等级的浏览器(A-Grade browsers)的标准,我们想了很多。我们把这些作为yui类库的一部分共享出来,希望能在这里得到促进,获得一个简洁的,可维护并在浏览器中表现优秀的设计。
页面网格样式(CSS Page Grids):7个基本的用css组织子组件的页面框架,支持130种不通的页面布局。
标准的CSS字体(Standard CSS Fonts):标准的跨浏览器字体样式和大小展现。
标准的CSS排列(Standard CSS Reset):使用这些CSS声明来排除页面的空白部分并且公共元素的样式兼容各种浏览器的展现。
YUI Team于美国时间5月28日发布了YUI 2.5.2,主要变化:
1. 这一版针对Firefox3和Opera9.5解决了几个关键性Bug。
2. 修复了DataTable、Menu、RTE、Button的几个主要Bug。
3. Charts组件增加3种新风格。
4. 从这版开始,在YUI下载包中增加了ActionScript源文件,方便开发者深入了解Charts和Uploader组件。
详情请见YUI Blog。
主页:http://developer.yahoo.com/yui/
清清月儿整理
控件:
- YUI Components
- Animation
- AutoComplete
- Browser History Manager
- Button
- Calendar
- Charts (experimental)
- Color Picker
- Connection Manager
- Cookie
- Container
- DataSource
- DataTable
- Dom
- Drag & Drop
- Element
- Event
- Get
- ImageCropper
- ImageLoader
- JSON
- Layout Manager
- Logger
- Menu
- Profiler
- ProfilerViewer
- Resize
- Rich Text Editor
- Selector
- Slider
- TabView
- TreeView
- Uploader (experimental)
- Yahoo Global Object
- YUI Loader
- YUI Test
- Reset CSS
- Base CSS
- Fonts CSS
- Grids CSS
EXT介绍
ext是一个强大的js类库,以前是基于YAHOO-UI,现在已经完全独立了,
主要包括data,widget,form,gird,dd,menu,其中最强大的应该算gird了,编程思想是基于面对对象编程(oop),扩展性相当的好.可以自己写扩展.自己定义命名空间.web应用可能感觉太大.不过您可以根据需要按需加载您想要的类库就可以了.
主要包括三个大的文件ext-all.css,ext-base.js,ext-all.js(包括所有的类库,您可以根据需要进行删减.官方网站提供这一接口),在引用ext类库的时候.这三个文件必不可少.
主页: http://extjs.com/downloads
中文:http://www.ajaxjs.com/ 文档:http://www.ajaxjs.com/docs/Combination SamplesGrid Samples
TabPanel Samples
Window Samples
Tree Samples
Layout Managers
ComboBox Samples
Form Samples
Toolbars and Menus
Templates and DataView
Misc Samples
Combination SamplesFeed Viewer 2.0
RSS 2.0 feed reader sample application that features a swappable reader panel layout.
Simple Tasks 2.0
Complete personal task management application sample that runs on Adobe AIR.
Simple Tasks
Personal task management application sample that uses Google Gears for data storage.
Image Organizer
DataView and TreePanel sample that demonstrates dragging data items from a DataView into a TreePanel.
Web Desktop
Demonstrates how one could build a desktop in the browser using Ext components including a module plugin system.
Grid SamplesBasic Array Grid
A basic read-only grid loaded from local array data that demonstrates the use of custom column renderer functions.
Editable Grid
An editable grid loaded from XML that shows multiple types of grid ediors as well as defining custom data records.
XML Grid
A simple read-only grid loaded from XML data.
Paging
A grid with paging, cross-domain data loading and custom- rendered expandable row bodies.
Grouping
A basic grouping grid showing collapsible data groups that can be customized via the "Group By" header menu option.
Live Group Summary
Advanced grouping grid that allows cell editing and includes custom dynamic summary calculations.
Grid Plugins
Multiple grids customized via plugins: expander rows, checkbox selection and row numbering.
Grid Filtering
New! Grid plugins providing custom data filtering menus that support various data types.
Grid From Markup
Custom GridPanel extension that can convert a plain HTML table into a dynamic grid at runtime.
Binding: Grid (basic)
New! Data binding a grid to a detail preview panel via the grid's RowSelectionModel.
Binding: Grid (advanced)
New! Refactoring the basic data binding example to use a class-based application design model.
TabPanel SamplesBasic Tabs
Basic tab functionality including autoHeight, tabs from markup, Ajax loading and tab events.
Advanced Tabs
Advanced tab features including tab scrolling, adding tabs programmatically and a context menu plugin.
Window SamplesHello World
Simple "Hello World" window that contains a basic TabPanel.
MessageBox
Different styles include confirm, alert, prompt, progress and wait and also support custom icons.
Layout Window
A window containing a basic BorderLayout with nested TabPanel.
Tree SamplesDrag and Drop Reordering
A TreePanel loaded asynchronously via a JSON TreeLoader that shows drag and drop with container scroll.
Multiple trees
Drag and drop between two different sorted TreePanels.
Column Tree
A custom TreePanel implementation that demonstrates extending an existing component.
Layout ManagersLayout Browser
New! Includes examples for each standard Ext layout, several custom layouts and combination examples.
Border Layout
A complex BorderLayout implementation that shows nesting multiple components and sub-layouts.
Anchor Layout
A simple example of anchoring form fields to a window for flexible form resizing.
Portal Demo
A page layout using several custom extensions to provide a web portal interface.
ComboBox SamplesBasic ComboBox
Basic combos, combos rendered from markup and customized list layout to provide item tooltips.
ComboBox Templates
Customized combo with template-based list rendering, remote loading and paging.
Form SamplesDynamic Forms
Various example forms showing collapsible fieldsets, column layout, nested TabPanels and more.
Ajax with XML Forms
Ajax-loaded form fields from remote XML data and remote field validation on submit.
Custom Search Field
A TriggerField search extension combined with an XTemplate for custom results rendering.
Binding: Grid -> Form
New! A grid embedded within a FormPanel that automatically loads records into the form on row selection.
Advanced Validation
New! Relational form field validation using custom vtypes.
Toolbars and MenusBasic Toolbar
Toolbar and menus that contain various components like date pickers, color pickers, sub-menus and more.
Ext Actions
Bind the same behavior to multiple buttons, toolbar and menu items using the Ext.Action class.
Templates and DataViewTemplates
A simple example of rendering views from templates bound to data objects.
DataView
A basic DataView with custom plugins for editable labels and drag selection of items.
DataView (advanced)
New! A more customized DataView supporting sorting and filtering with multiple templates.
Misc SamplesStatusBar
New! A simple StatusBar that can be dropped into the bottom of any panel to display status text and icons.
StatusBar (advanced)
New! Customizing the StatusBar via a plugin to provide automatic form validation monitoring and error linking.
Slider
New! A slider component that supports vertical mode, snapping, tooltips, customized styles and more.
Custom Drag and Drop
New! Enabling drag and drop between a DataView and a grid using DragZone and DropZone extensions.
QuickTips
Various tooltip and quick tip configuration options including Ajax loading and mouse tracking.
Progress Bar
A basic progress bar component shown in various configurations and with custom styles.
Panels
A basic collapsible panel example.
Resizable
Examples of making any element resizable with various configuration options.
Spotlight
A utility for masking everything except a single element on the page to visually highlight it.
Localization (static)
Demonstrates fully localizing a form by including a custom locale script.
Localization (dynamic)
Dynamically render various Ext components in different locales by selecting from a locale list.
相关文章:

芯片开发语言:Verilog 在左,Chisel 在右
来源 | 老石谈芯在最近召开的RISC-V中国峰会上,中科院计算所的包云岗研究员团队正式发布了名为“香山”的开源高性能处RISC-V处理器。前不久我有幸和包老师就这个事情做了一次深度的交流,我们聊了关于RISC-V、还有“香山”处理器的前世今生。包老师也分享…
1.1GTK+ 的简单程序HelloWorld
1.1GTK 的简单程序HelloWorld 编译执行如图所看到的:

struts2 validate验证
转自:https://blog.csdn.net/houpengfei111/article/details/9038233 自定义拦截器 要自定义拦截器需要实现com.opensymphony.xwork2.interceptor.Interceptor接口: [java] view plaincopypublic class PermissionInterceptor implements Interceptor { …

PHP中文乱码
页面顶端加 <?php header("content-Type: text/html; charsetgbk"); ?>

收藏 | 提高数据处理效率的 Pandas 函数方法
作者:俊欣来源:关于数据分析与可视化前言大家好,这里是俊欣,今天和大家来分享几个Pandas方法可以有效地帮助我们在数据分析与数据清洗过程当中提高效率,加快工作的进程,希望大家看了之后会有收获。首先导入…

如何让两个div在同一行显示?一个float搞定
最近在学习div和css,遇到了一些问题也解决了很多以前以为很难搞定的问题。比如:如何让两个div显示在同一行呢?(不是用table表格,table对SE不太友好)其实,<div> 是一个块级元素,…

使用sudo进入root权限,以及防止root密码被恶意篡改
一、前言 sudo是允许系统管理员让普通用户执行一些或者全部的root命令的一个工具,减少了root用户的登陆和管理时间,提高了安全性。Sudo不是对shell的一个代替,它是面向每个命令的。 而防止root用户密码被恶意更改,主要是用户基本上…

赠书 | 干货!用 Python 动手学强化学习
01了解强化学习新闻报道中很少将强化学 习与机器学习、深度学习、人工智能这些关键词区分开来,所以我们要先介绍什么是强化学习,再讲解其基本机制。强化学习与机器学习、人工智能这些关键词之间的关系;强化学习相对于其他机器学习方法的优点和…

php如何调用c接口无错版
1.首先是要安装好PHP 2.进入PHP的下载解压目录下的ext目录 #cd /root/php-5.3.6/ext #./ext_skel --extnamehmc 说明: ./ext_skel --extnamemodule_name module_name是你自己可以选择的扩展模块的名字,例如我选择的hmc。执行工具后会自动在ext目录下建…

onchange事件只生效一次的问题
今天遇到一个file表单元素,对onchange事件的响应问题,发现仅响应一次,网上查到解决方法,在这里转载一下文件选择框的onchange事件只在第一次改变时生效,以后再选择文件不会触发onchange事件。解决方法1:用j…

WSFC2016 SMB多通道与网络调校
SMB多通道是微软Windows Server 2012时新增的一项功能,微软SMB3.0协议的一部分,主要用于SMB文件传输时,检测到多张可通信网卡,自动使用多张网卡进行传输,提高吞吐量,链路容错。 Windows Server 2012和之前的…

一个常用的正则表达验证类
这是 風語深蓝很早以前写的一个正则表达式验证工具类,包含了一些常见的校验和支持自定义的正则表达式匹配,可以选择完全匹配,也可以获取所有匹配项。曾用它仿造Eclispe下的正则表达式插件写过一个工具。因为最近突然有几个朋友都在问这方面的…

Signal和slot的声明和连接
信号(SIGNAL)和槽(SLOT)是Qt编程的一个重要部分。这个机制可以在对象之间彼此并不了解的情况下将它们的行为联系起来。Signal和slot的声明(一)在Qt程序设计中,凡是包含signal和slot的类中都要加上Q_OBJECT的定义,下面的例子给出了…

重磅!深度学习知识总结和调参技巧开放下载了
近年来,人工智能正在进入一个蓬勃发展的新时期,这主要得益于深度学习和CV领域近年来的发展和成就。在这其中,卷积神经网络的成功也带动了更多学术和商业应用的发展和进步。为了避免“内卷”,更多人选择学习进阶,但是仍…

Oracle优化器:星型转换
Oracle 8i中引入了星型转换(star transformation)的优化器新特性以便更有效地处理星型查询。星型查询语句多用于基于星型模型设计的数据仓库应用中。星型模型的称谓源于该种模型以图形化表现时看起来形似一颗海星。这颗星的中央会由一个或多个事实表(fact tables)组成ÿ…

php安装模式mod_php和Fastcgi的选择与对比
安装php又面临到了模式的选择,以前都是选择mod_php模式,因为这样安装比较方便哈,今天突然关心起FastCGI这种模式,败毒了一把,找到了一些关于mod_php和Fastcgi的选择与对比这方面的讨论,现在发出来留一个记号…

暴雨之后,评估与重建可以用这个数据集
作者:神经星星来源:HyperAI超神经场景描述:连续多日的暴雨给郑州和河南部分城市,带来了严重的洪涝灾害,牵动了全国人民的心。灾难面前,现阶段的科技和具体解决方案,也能发挥出关键作用。关键词&…

从jQuery的缓存到事件监听
很久以前,我还在cnblogs里面逛的时候就提出过一个问题(刚找了半天没找到)。不知道大家有没有发现,用jQuery选择器"选择"之后的DOM上会添加jQuery*********属性。 <DIV idd1 jQuery1294122065250"1">abc…

对一些品种数量校正
update sphwph set shl1-1 where spidSPH00002323 and piciJHAYMA00017433_5 and hwHWI00000022 update sphwph set shl-11 where spidSPH00002323 and piciJHAYMA00021159_2 and hwHWI00000022 3月7日调拨后少了398 update sphwph set shl0398 where piciJHAYMA00024241_1 an…

收藏喜+1!值得使用的100个Python小技巧
目前Python可以说是非常流行,在目前的编程语言中,Python的抽象程度是最高的,是最接近自然语言的,很容易上手。你可以用它来完成很多任务,比如数据科学、机器学习、Web开发、脚本编写、自动化等。下面,给大家…

一款基jquery超炫的动画导航菜单
今天给大家分享一款基jquery超炫的动画导航菜单。这款导航菜单,初始时页面中间一个按钮,单击按钮,菜单从左侧飞入页中。再次单击按钮,导航飞入左侧消息。动画效果很非常炫。一起看下效果图: 在线预览 源码下载 实现的…

如何用C#动态编译、执行代码
在开始之前,先熟悉几个类及部分属性、方法:CSharpCodeProvider、ICodeCompiler、CompilerParameters、CompilerResults、Assembly。 一、CSharpCodeProvider 提供对C#代码生成器和代码编译器的实例的访问。如果要动态生成VB代码,可…

【解决】MySql 5.6 运行崩溃错误
【解决】MySql 5.6 运行崩溃错误 最近弄了一台云主机,配置是20G磁盘空间,1G运行内存的Linux服务器。在上面安装了LAMP(RHEL7.2Apache2.4MySql5.6PHP5.6),然后搭建wordpress网站,可是网站运行没多久…

制作安全网站的checklist
原作者charlee、原始链接 http://tech.idv2.com/2008/04/19/secure-website-checklist/ fcicq最近在IPA上看到一篇安全相关的文章,它的最末尾有个checklist,于是催我把它翻译了。前几天比较忙,周末没什么事儿了,就翻译一下吧。 原…

百变冰冰!手把手教你实现CVPR2021最新妆容迁移算法
作者:小潘师兄来源:AI算法与图像处理简介在本文中,我们从不同的角度将妆容迁移问题分解为两步提取-分配过程。为此,我们提出了一种基于风格的可控GAN模型,该模型由三个部分组成,每个部分分别对应于目标风格…

Vlan 4096的限制原因
为什么80%的码农都做不了架构师?>>> VLAN配置的最大可能值为4094,它的由来如下所述: IEEE802.1q协议也就是“Virtual Bridged Local Area Networks”(虚拟桥接局域网,简称虚拟局域网)协议&#…

Hive 数据模型
Hive 数据模型 Hive 数据表有五种类型:内部表,外部表,分区表,桶表,视图表,默认以 tab 分隔 * MySQL (Oracle) 表默认以逗号分隔,因此,要想导入 MySQL(Oracle) 数据,需要设…

完整中英文世界国家级联下拉列表插件【前端版】
为什么80%的码农都做不了架构师?>>> 这个小东西是之前小项目上临时增加功能的产物,那时候在网上找了很久都没有能用的插件,要么是数据残缺少得可怜,还有就是实现手段非常低效不可维护那种,各种奇拔问题&am…

何时使用margin和padding?
margin和padding的意义相信大家都很清楚,可是在具体应用中,到底应该使用哪一个,就比较难于判断了。 这篇文章 说得挺清楚的,在这里翻译一下,供参考。 何时应当使用margin 需要在border外侧添加空白时。 空白处不需要…

10年IT老兵给新人程序员的几点建议
【CSDN 编者按】对于很多计算机专业的同学而言,“进大厂”已经成为毕业后职业道路的首选。但是面试官最喜欢什么样的应届生你知道吗?在校期间应该为找工作做哪些准备?除了技术好,在职场中还有哪些必备软实力?今天&…