javascript

about javascript

ASTreeView 1.5.3 Release Notes

ASTreeView has been updated to version 1.5.3. In the new version, developer can have more flexibility to control Add/Edit/Delete/DragDrop with customized javascript handler. In addition, from 1.5.3, two versions of ASTreeView will be available, one for .Net Framework 2.0(build with Ajax Extension 1.0), one for .Net Framework 3.5(build with Ajax Extension 3.5 ). Samples also will be available in two version, one for VS2005 and one for VS2008. New Features in 1.5.3: 1. Supports customized javascript handler For example, if the developer wants to cancel add node action if server returns some specified condition. He can":...

ASTreeView 1.5.2 Release Notes

ASTreeView has been updated to version 1.5.2, the main BIG improvement is that a new NodeType – TextNode has been added. With TextNode, you can set two links in one node which is not possible in previous versions. Even javascript can be the content of the nodes in a TextNode. New Features: 1. TextNode type is added. The content of tree nodes is now more flexible. You can add html, javascript in the new node type – TextNode: Please visit the online demo. 2. Added EnableDragDropOnIcon...

ASTreeView 1.4.0 Release Notes

ASTreeView has been updated to version 1.4.0, you may download at http://www.astreeview.com/download/astreeview-1.4.0.zip New Features:   1. Virtical Drag and Drop Nodes     If you use ASTreeView as a list, you can set EnableHorizontalLock=true, then the end user can only move the nodes up and down, not left or right, screenshot:           Visit online demo.   2. Fixed Drag and Drop depth     If you want the end user just move the node within the same level as its original level, you may...

Documentation for ASTreeView

A documentation is now available for ASTreeView. Please visit: http://www.astreeview.com/doc/

ASTreeView 1.3.0 Release Notes

Just back from a trip to Santorini, Barcelona and Athens. :) More photos at: http://www.jinweijie.com/europetrip2009 Back to the topic, the ASTreeView has been updated to 1.3.0, you may download at http://astreeview.googlecode.com/files/astreeview-1.3.0.zip  New Features: 1. Html as TreeNodeText supported.     In the new version, you may use html as tree node text, not only plain text. 2. Support escape edit/add input.      Set the EnableEscapeInput property to enable this feature, default is true. 3.Multiline Edit Mode supported.    Set the EnableMultiLineEdit...

ASTreeView 1.2.2 Release Notes

ASTreeView 1.2.2 released. You may download it now from: http://astreeview.googlecode.com/files/astreeview-1.2.2.zip Here is a list of the new features added and bugs fixed: New Features: 1. Themes     ASTreeView now supports themes! Developer can easily create his own theme for the treeview. Check out the demo.     2. Right-To-Left support     ASTreeView now supports rtl display, thank Mojtaba Vali for the suggestion! Also check out the demo.     3. A performance testing...

ASTreeView 1.1.2 What’s New

I registered a domain for ASTreeView: www.astreeview.com This domain will be only used for ASTreeView, updates, demos, blogs. It can be regarded as the official site. :D I release ASTreeView 1.1.2 just now. It can be download from: http://astreeview.googlecode.com/files/astreeview-1.1.2.zip online sample: http://www.astreeview.com added two new features: 1. Extending ContextMenu     Now it is possible to add your customized ContextMenu Items to the menu. A screenshot:             Online demo: http://www.astreeview.com/astreeviewdemo/ASTreeViewDemo3.aspx      To add your customized menu, it’s easy: ...

ASTreeView 1.1.1 Released

I got many feedbacks since the 1.0 release of ASTreeView. Thanks guys for your support! You can download it now from: http://astreeview.googlecode.com/files/astreeview1.1.1.zip If you want a sample for connecting sql server, you can also download the sample: http://astreeview.googlecode.com/files/astreeview1.1.1_sql_server.zip   The new version of ASTreeView includes:   Some bugs fixed: In DropdownTreeView, the RequiredValidator cannot be disabled. Javascript error when ajax request failed. Tree line does not display correctly after move the last node. Initialization of the treeview...

ASTreeView: Resolve confliction with jQuery

Thanks xiaot for reporting this issue that if jQuery is included in page, it conflicts with the ASTreeView. To resolve this issue, we can use the noconflict method of the jQuery: <script src="jquery-1.3.2.js"></script> <script type="text/javascript"> var J = jQuery.noConflict(); </script> Now $("#foo") will be J("#foo") and it will not conflict with the ASTreeView. I’ll update the ASTreeView internal methods, make it not conflict with jQuery in the next version. updated The new version (1.1.1) does not conflict with jQuery any more, please update if you’re...

ASTreeView 1.0 Released

ASTreeView is a powerful treeview with drag drop, ajax loading, context menu, xml import/export, checkbox, selection, add/editing/deleting nodes with ajax. This is version 1.0.[Read More...]

正确设置绝对定位的dom元素的位置

在做右键菜单的时候,当要根据鼠标的位置设置一个绝对定位并且父节点是position:relative的节点的位置时,应该将鼠标的x,y位置父节点相对于窗口的距离,这样才能让菜单显示在鼠标点击的位置。[Read More...]

用脚本修复IE6 select overlap bug(遮盖问题)

IE6有个bug,不论如何设div的z-index, IE6的select总会显示在最前,我们都无法使用DIV遮挡住select元素。 今天写了个类,解决了这个问题,先贴上代码,然后写如何使用。[Read More...]

一个简单的javascript字符计数器

公司一个项目里有发短信功能,要在页面上提示用户还剩多少字符可以输入,当用户输入的字符数超过最大字符限制,则截取最大字符数的数目。代码还是比较简单的,也算是记录一下。[Read More...]

javascript closure(闭包)的一个示例

今天一个同事看到John Resig 的Pro JavaScript Techniques这本书上的37页上有一段关于闭包的javascript代码,怎么调试都运行不正确,于是和他一起研究了一下,代码是这样的:[Read More...]

用javascript过滤html里的javascript代码

今天同事要打印她页面里某个div里的内容,按常理应该用css里的media="print"来实现,但是她那里的环境不允许。那个div里有很多 javascirpt代码,当弹出一个窗口插入div里的innerHTML的时候,会报很多js错,没办法,只能先从div里拿出html内容,用正则表达式过滤js。代码如下:[Read More...]

Full javascript Archive

View posts by date
«March»
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910