ICEfaces
  1. ICEfaces
  2. ICE-1705

panelPostioned not working when 'handle' attribute declared

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      any

      Description

      unverified

      declaring 'handle' attribute breaks the panelPostioned

        Activity

        Philip Breau created issue -
        Philip Breau made changes -
        Field Original Value New Value
        Assignee Philip Breau [ philip.breau ]
        Hide
        Philip Breau added a comment -

        Tested with 1.6

        As soon as you add the handle attribute the following js error results:

        Element.childrenWithClassName is not a function ice-extras.js (line 4774)
        [Break on this error] var _432=_42d.handle?Element.childrenWithClassName(e,_42d.handle)[0]:e;

        Show
        Philip Breau added a comment - Tested with 1.6 As soon as you add the handle attribute the following js error results: Element.childrenWithClassName is not a function ice-extras.js (line 4774) [Break on this error] var _432=_42d.handle?Element.childrenWithClassName(e,_42d.handle) [0] :e;
        Philip Breau made changes -
        Assignee Philip Breau [ philip.breau ] Mark Collette [ mark.collette ]
        Ken Fyten made changes -
        Fix Version/s 1.6.1 [ 10070 ]
        Affects Version/s 1.6 [ 10031 ]
        Affects Version/s 1.6DR#5 [ 10071 ]
        Assignee Mark Collette [ mark.collette ] Adnan Durrani [ adnan.durrani ]
        Ken Fyten made changes -
        Assignee Adnan Durrani [ adnan.durrani ] Yip Ng [ yip.ng ]
        Ken Fyten made changes -
        Assignee Priority P2
        yip.ng made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        yip.ng added a comment -

        It seems the addition of the handle attribute generates JavaScript that makes calls to the scriptaculous function Element.childrenWithClassName(), which may not exist anymore. Some people reported on the web that this happened when moving from scriptaculous v1.6.4 to v1.6.5. Some suggested using the function getElementsByClassName() instead.

        JavaScript generated without handle attribute:
        Sortable.create(...,{containment:false,...);

        JavaScript generated without handle attribute:
        Sortable.create(...,{handle:'starttitle',containment:false,...);

        Show
        yip.ng added a comment - It seems the addition of the handle attribute generates JavaScript that makes calls to the scriptaculous function Element.childrenWithClassName(), which may not exist anymore. Some people reported on the web that this happened when moving from scriptaculous v1.6.4 to v1.6.5. Some suggested using the function getElementsByClassName() instead. JavaScript generated without handle attribute: Sortable.create(...,{containment:false,...); JavaScript generated without handle attribute: Sortable.create(...,{handle:'starttitle',containment:false,...);
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #14676 Thu Aug 16 13:01:07 MDT 2007 yip.ng ICE-1705
        Replaced childrenWithClassName() with getElementsByClassName() to fix "not a function" error.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/extras/sortable_ext.js
        Hide
        yip.ng added a comment -

        Last line of previous comment should be JavaScript generated WITH the handle attribute.

        Show
        yip.ng added a comment - Last line of previous comment should be JavaScript generated WITH the handle attribute.
        Hide
        yip.ng added a comment -

        Replaced childrenWithClassName() with getElementsByClassName().

        Show
        yip.ng added a comment - Replaced childrenWithClassName() with getElementsByClassName().
        yip.ng made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P2
        Assignee Yip Ng [ yip.ng ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Philip Breau
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: