List Info

Thread: Show and hide a dive with behavior




Show and hide a dive with behavior
user name
2006-01-05 15:08:49
Prototype changed direction and doesn't make modifications
to the
native javascript types any more, so I would suspect the bug
you are
talking about went away.

It used to not play well with other API's, such as gmap. 
When I asked
about it, I was told that the approach described previously
had
changed, and I found it had no more problems with API's.

Ben

On 1/5/06, Dieter Lunn <coder2000gmail.com> wrote:
> Prototype modifies the prototype for its own purposes. 
A much nicer package
> would be MochiKit.
>
>
> On 1/5/06, Ben Nolan < bnolangmail.com> wrote:
> > Yeah - element.toggle'd be the way to do it.
> >
> > I wish prototype played nicer with arrays! Have
they fixed the:
> >
> > for (x in new Array){
> >   alert("WTF! YOU INJECTED INTO
ARRAY.prototype? HOMAX!");
> > }
> >
> > bug yet? It's also freaking massive.
> >
> > Ben
> >
> >
> >
> > On 1/5/06, leeight xjtu < leeightgmail.com> wrote:
> > > Why not use Element.toggle();
> > >
> > >
> > > 2006/1/5, Ben Nolan <bnolangmail.com>:
> > >
> > > > Nice use of prototype!
> > > >
> > > >
> > > >
> > > > On 1/5/06, Benjamin West < bewestgmail.com> wrote:
> > > > >
> > > > > might use something like  (with
prototype.js):
> > > > > <button
class="hide_show" type="button"
name="comment_5">Show / Hide
> </button>
> > > > > <div class="hidden"
id="comment_5">
> > > > > Stuff here.
> > > > > </div>
> > > > >
> > > > > 'button.hide_show' : function
(element) {
> > > > > Event.observe(element,
"click", hide_show);
> > > > > }
> > > > >
> > > > > function hide_show (event) {
> > > > > var target = Event.element(event);
> > > > > var mydiv = $( target.name);
> > > > > mydiv.style.display =
(mydiv.style.display == "none" ? "block"
:
> "none");
> > > > > }
> > > > >
> > > > > On 1/3/06, Digicution <
brent.clementsgmail.com> wrote:
> > > > > >
> > > > > > Some additional info. I'm
trying to replicate the following
> behavior.
> > > > > >
> > > > > > http://www.net
lobo.com/div_hiding.html
> > > > > >
> > > > > > But with the behavior library
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > >
-------------------------------------------------------
> > > 姓名:李玉北,西安交通大学软件学院
> > > QQ:76862448
> > > Email:leeightgmail.com
> > > 电话:13186139624                    ^_^
> > >
-------------------------------------------------------
> >
> >
>
>
>
> --
> Dieter Lunn
> http://www.coder2000.com

Show and hide a dive with behavior
user name
2006-01-05 16:04:26
Looking at the current state of the prototype code:

http://dev.conio.net/repos/prototype/dist/prototype.js
http://dev.conio.net/repos/prototype/src/array.js

it seems like Prototype is still making modifications to the array type ... am I misunderstanding you?

Regards,

 ; &nbsp; - Gulli



On 1/5/06, Benjamin West < bewestgmail.com">bewestgmail.com> wrote:
Prototype changed direction and doesn't make modifications to the
native javascript types any more, so I would suspect the bug you are
talking about went away.

It used to not play well with other API's, such as gmap. ; When I asked
about it, I was told that the approach described previously had
changed, and I found it had no more problems with API's.

Ben

Show and hide a dive with behavior
user name
2006-01-05 18:00:16
I've been using code that is considered in development, and
hasn't
been released yet.  I believe it's a release candidate
though.  I
could also be mistaken about the whole thing though.

Ben

On 1/5/06, Gunnlaugur Thor Briem <gunnlaugurgmail.com> wrote:
> Looking at the current state of the prototype code:
>
> http://dev.conio.net/repos/prototype/dist/prototype.js
>  htt
p://dev.conio.net/repos/prototype/src/array.js
>
> it seems like Prototype is still making modifications
to the array type ...
> am I misunderstanding you?
>
> Regards,
>
>     - Gulli
>
>
>
>  On 1/5/06, Benjamin West <bewestgmail.com> wrote:
> > Prototype changed direction and doesn't make
modifications to the
> > native javascript types any more, so I would
suspect the bug you are
> > talking about went away.
> >
> > It used to not play well with other API's, such as
gmap.  When I asked
> > about it, I was told that the approach described
previously had
> > changed, and I found it had no more problems with
API's.
> >
> > Ben
> >
>
>
Show and hide a dive with behavior
user name
2006-01-06 01:53:44
I was using some rc4 version of prototype that didn't modify array.prototype - but it didn't seem that he was going to keep developing down that path.

:P you Sam.

Ben

On 1/6/06, Benjamin West < bewestgmail.com">bewestgmail.com> wrote:

I've been using code that is considered in development, and hasn't
been released yet.  I believe it's a release candidate though.&nbsp; I
could also be mistaken about the whole thing though.

Ben

On 1/5/06, Gunnlaugur Thor Briem < gunnlaugurgmail.com">gunnlaugurgmail.com> wrote:
>; Looking at the current state of the prototype code:
>
> http://dev.conio.net/repos/prototype/dist/prototype.js
>&nbsp; http://dev.conio.net/repos/prototype/src/array.js
>;
> it seems like Prototype is still making modifications to the array type ...
> am I misunderstanding you?
>
> Regards,
&gt;
>&nbsp; &nbsp;  - Gulli
>
>
>
> &nbsp;On 1/5/06, Benjamin West < bewestgmail.com">bewestgmail.com> wrote:
>; > Prototype changed direction and doesn't make modifications to the
> > native javascript types any more, so I would suspect the bug you are
> > talking about went away.
> >
> > It used to not play well with other API's, such as gmap. ; When I asked
>; > about it, I was told that the approach described previously had
> > changed, and I found it had no more problems with API's.
>; >
> > Ben
> >
>
>

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )