Mingfai

Show:

What's happening?

  • Comment: FormControl.getValues doesn't work for input=submit

    if values of submit button(s) is/are included, for the majority of cases when there is only one submit button, there will be no problem. But when there are multiple submit buttons, the results will be incorrect. One approach is just to ignore the submit button as is now. Another approach is to detect if there are multiple submit button and return empty list only when there are multiple, and...

    2009-04-06 06:31:34 UTC in Jericho HTML Parser

  • Comment: FormControl.getValues doesn't work for input=submit

    overlooked the doc. just copy-and-paste to here for reference: "SUBMIT, BUTTON, and IMAGE controls are only ever successful when they are activated by the user to submit the form. Because the submission value is intended to be a static representation of a control's data without interaction by the user, this library never associates submission values with submit buttons, so this method always...

    2009-04-06 05:00:23 UTC in Jericho HTML Parser

  • FormControl.getValues doesn't work for input=submit

    For 3.0 beta 1, getValues on the FieldControl of a submit button can't retrieve the predefined value. getPredefinedValue(s) or getAttributesMap() does work. Other normal or hidden fields do work. getValues() is defined as getting submission value. value of submit button itself will be submitted so getValues() should be able to retrieve the predefined value.

    2009-04-05 22:52:34 UTC in Jericho HTML Parser

  • Comment: [YUI3] Y.later always throw exception in test case

    in case who come across this issue, if the Y.later is for use directly in the test code, this.wait and this.resume could achieve the delay effect: this.wait( function(){ }, 1000) however, if the Y.later is used in code that will be tested. it probably will cause some problem.

    2009-01-21 09:34:47 UTC in YUI Library

  • [YUI3] Y.later always throw exception in test case

    e.g. testYLater:function() { var value = 'laterTest0' var listener = Y.bind(function() { this.resume(function() { Y.Assert.areEqual('laterTest1', value) }) }, this) Y.later(1000, this, function() { value = 'laterTest1'.

    2009-01-21 09:24:24 UTC in YUI Library

  • [YUI3] Support on-demand initialization of attribute

    refer to the following thread: http://tech.groups.yahoo.com/group/yui3/message/338.

    2009-01-04 17:52:00 UTC in YUI Library

  • Comment: [#2396454] [YUI3]Can't override default of writeOnce attr

    thx. ChildClass.superclass.constructor.ATTRS.attributeName.set() is exactly i was looking for. I can't see the problem with prototype method. But I do find the above solution is not perfect. If the parent attribute doesn't have a set method but provide value or valueFn, i need to use condition logic to get the value. (but for my use case i don't need that) p.s. added a test case for this...

    2008-12-17 09:57:05 UTC in YUI Library

  • [YUI3] Support || and ?: in Substitute template

    the substitute module is very useful to render template. 1. default value using the '||' operator like JavaScript var template = '{varName||'defaultValue'}' Y.Assert.areEquals( 'myValue' , Y.substitute( template , {varName:'myValue'} ) Y.Assert.areEquals( 'defaultValue' , Y.substitute( template , {} ) 2. ?: operator var template = ''.

    2008-12-16 04:21:35 UTC in YUI Library

  • [YUI3] Support per Console filtering

    In 3.0PR2, log filtering is supported per YUI instance. It is desirable to support per Console filtering. refer to http://tech.groups.yahoo.com/group/yui3/message/322 Workaround: console.on('entry', function(e) {if (e.message.source !== 'TestRunner') { e.preventDefault()} })

    2008-12-16 01:14:31 UTC in YUI Library

  • [YUI3] Improve Console display for yuitest

    1. For FAIL and PASS, the label shall be highlighted in shape color instead of in gray. e.g. FAIL in red and PASS in green. 2. Provide a way to enable/disable showing TestRunner log message only. When doing development with YUITest, we would want to enable all logging, but would like to have a way to easily highlight (or include only) the TestRunner messages 3. At the final report message...

    2008-12-15 17:50:58 UTC in YUI Library

About Me

  • 2001-09-30 (8 years ago)
  • 337162
  • mingfai (My Site)
  • Mingfai

  • SQL-based SQL-based ASP C Java XSL (XSLT/XPath/XSL-FO) HTML/XHTML Modeling Object Oriented Object Oriented Networking

Send me a message