Hi Victor,
It depends entirely on what you're calling and how it's expecting to
receive them. When calling an element's observe() method, for
instance, this works:
myelement.observe('click', function(evt) { /* ... */ });
...but this doesn't:
myelement.observe({
eventName: 'cli
yes...this is my question
"Or are you asking which style to use when you're defining your own
functions and classes? "
Both ways should be doing the same things...but what I want to know is
what is the prototypejs developer will suggest us to use.
On Nov 6, 8:52 pm, "T.J. Crowder" <[EMAIL PROTE
Dear all,
any new ideas about this question
Victor
On 11月7日, 上午12時53分, vtsuper <[EMAIL PROTECTED]> wrote:
> yes...this is my question
> "Or are you asking which style to use when you're defining your own
> functions and classes? "
>
> Both ways should be doing the same things...but what I w
here are the third style
var test = new Frm('frm1',{method:'post',url:'testing.php'});
var test = new Frm('frm1','post','testing.php');
var test = new Frm({id:'frm1',method:'post',url:'testing.php'});
which style that the prototypejs developer suggest us to use??
On 11月8日, 上午10時53分, vtsuper <
On Nov 8, 12:23 am, vtsuper <[EMAIL PROTECTED]> wrote:
> here are the third style
>
> var test = new Frm('frm1',{method:'post',url:'testing.php'});
>
> var test = new Frm('frm1','post','testing.php');
>
> var test = new Frm({id:'frm1',method:'post',url:'testing.php'});
>
> which style that the pro
thank you for your informationI think Ihave to rewrite most of my
object...thanks anyway
On Nov 9, 12:50 pm, kangax <[EMAIL PROTECTED]> wrote:
> On Nov 8, 12:23 am, vtsuper <[EMAIL PROTECTED]> wrote:
>
> > here are the third style
>
> > var test = new Frm('frm1',{method:'post',url:'testing.ph