[Proto-Scripty] Re: Element.observe questions

2008-12-29 Thread K.C.Leung
oh ! thanks ! var form = e.element ( ) ; if ( invalid ) { alert ( "invalid" ) ; e.stop ( ) ; return ; } forn.Request ( ) ; e.stop ( ) // Stop anyway ; On Dec 30, 5:26 am, kangax wrote: > On Dec 29, 3:27 pm, "K.C.Leung" wrote: > [...] > > >

[Proto-Scripty] Element.observe questions

2008-12-29 Thread K.C.Leung
Can the observe method cancel the event ? Thanks ! var testForm = $( "testForm" ) ; testForm.observe ( "submit", function ( e ) { alert ( "submit" ) ; return false ;// return false is meaningless. It is continue to submit. } ) ; /* testForm.onsubmit = function ( e ) { a

[Proto-Scripty] Re: Any table utils ?

2008-12-04 Thread K.C.Leung
I hope the prototype framework would add some table related utils. It is useful. On 12月4日, 下午2時12分, kangax <[EMAIL PROTECTED]> wrote: > On Dec 3, 3:54 pm, "K.C.Leung" <[EMAIL PROTECTED]> wrote: > > > > > > > Are there and table mehods for Table to

[Proto-Scripty] Any table utils ?

2008-12-03 Thread K.C.Leung
Are there and table mehods for Table to make easier ? Top Left Top Top Right Left center Right Bottom Left Bottom Bottom Right var center = $( "center" ) ; cen

[Proto-Scripty] Class extendsion question

2008-12-02 Thread K.C.Leung
How can I create a class extends from Element ? var SubElement = Class.create ( Element, { initialize: function ( $super ) { $super ( "div" ) ; } } ) ; // error: 'subclasses' is null or not an object --~--~-~--~~~---~--~~ You received this message b

[Proto-Scripty] Re: innerText vs textContent

2008-12-01 Thread K.C.Leung
Sorry, the method should be Element.update ( ) On 12月2日, 上午12時50分, "K.C.Leung" <[EMAIL PROTECTED]> wrote: > does the ptototype has the such method ? > > var setText = function ( element, text ) { > try { > element.innerText = text ; >

[Proto-Scripty] innerText vs textContent

2008-12-01 Thread K.C.Leung
does the ptototype has the such method ? var setText = function ( element, text ) { try { element.innerText = text ; return this.innerText ; } catch ( e ) { try { element.textContent = text ;

[Proto-Scripty] Re: menu bar

2008-11-19 Thread K.C.Leung
I think all the menu should be base on "ul" --> "li" --> "ul" --> "li", "li" . Then you can design your style by yourself to make it look like "menu" On Nov 19, 10:50 pm, "jason maina" <[EMAIL PROTECTED]> wrote: > Hi guys/galz, > > Would like to make a menu like the one for facebook, any idea