03 2012 档案

摘要:When executing a method, there're 2 ojbects available inside the method:event objectthis point1. If the method called on an DomElement, this points to the DOM element.2. If the method called on an Object, this points to the object instance.As to 1st case,to access the object instance in which th 阅读全文
posted @ 2012-03-27 00:31 Bruce Jing 阅读(186) 评论(0) 推荐(0)
摘要:Access a Control or Behavior's associated DomElement through: control.get_element(), behavior.get_element()Accessa DomElement's associated control through: element.controlAccess a DomElement's associated behavior through: element._behaviorsBehavior.getBehaviors(element)Behavior.getBehavi 阅读全文
posted @ 2012-03-26 23:41 Bruce Jing 阅读(113) 评论(0) 推荐(0)
摘要:(From "Advanced ASP.NET AJAX Server Controls For .NET Framework 3.5")1. IE下preventDefault(): window.event.returnValue = false.stopPropagation(): window.event.cancelBubble = true.preventDefault() + stopPropagation(): return false. 阅读全文
posted @ 2012-03-25 22:22 Bruce Jing 阅读(122) 评论(0) 推荐(0)