[Proto-Scripty] Re: HTTP OPTION REQUEST with FireFox 3.5

2009-08-06 Thread Andrew Dupont
Omar, can you try rewriting this code to use the native XmlHttpRequest API? If that version works, then the problem definitely lies with Prototype, and I'll open a bug for this. Cheers, Andrew On Aug 5, 4:30 pm, 0m4r wrote: > Hi All, > > I have a strange behavior with a pice of code I wrote usi

[Proto-Scripty] Re: function in prototype

2009-08-06 Thread Andrew Dupont
Here's one quick way to cut down on duplication: function applyCheckboxBehavior(checkboxes, toggleControl) { toggleControl.observe('click', function() { checkboxes.each( function(box) { box.checked = toggleControl.checked; }); }); } applyCheckbo

[Proto-Scripty] Re: Does Prototype have a future?

2008-09-26 Thread Andrew Dupont
On Sep 26, 10:30 am, Nick Stakenburg <[EMAIL PROTECTED]> wrote: > I'm not sure if Prototype has a real future, at the moment it seems to > be getting more and more a side project for it's authors. The reason > jQuery is so popular is it's community The last few months have been unusual for Protot

[Proto-Scripty] Re: Does Prototype have a future?

2008-09-27 Thread Andrew Dupont
On Sep 27, 5:35 pm, Gregory Seidman wrote: > And yet, this is a problem. Prototype should strive to be as good as jQuery > in terms of convenience for non-programmers. It isn't even difficult. A > good part of the simplicity of jQuery comes from the $() function returning > a "set" object that

[Proto-Scripty] Re: event.observer oncontextmenu

2008-10-03 Thread Andrew Dupont
You want to call "event.preventDefault()" in your handler. This prevents the default action (showing the context menu, in this case) from happening. Cheers, Andrew On Oct 3, 1:20 am, "Maikel Punie" <[EMAIL PROTECTED]> wrote: > hmm, > > it seems that i was not verry clear in the explenation > > i

[Proto-Scripty] Re: fixed position with Javascript

2008-10-07 Thread Andrew Dupont
Script.aculo.us is a higher-level framework that deals with effects and UI components. Prototype is the analog to MooTools, and below is an (untested) example of how you'd do this with Prototype. (Keep in mind, though, that there's very little framework-specific code in here, and all frameworks wo

[Proto-Scripty] Re: Getting Text Nodes of Elements

2008-10-08 Thread Andrew Dupont
On Oct 8, 10:31 am, "Hector Virgen" <[EMAIL PROTECTED]> wrote: > Maybe there's a better way to approach my problem. > I have a nested unordered list that contains an image (icon) and some text > in each LI. I want to extract just the text part of the LI without the > image. > > >     Foo >    

[Proto-Scripty] Re: location.hash and event handler/window event

2008-10-09 Thread Andrew Dupont
What you really need is something like RSH [1] or YUI's Browser History Manager [2]. The former is library-agnostic and the latter has few dependencies on YUI, if I recall. Libraries like these are built to work across browsers with use-cases like bookmarking, using the back button, and so on. I'

[Proto-Scripty] Re: Prototype DOM-traversal methods failing on HTML5 elements in IE < 9 using html5shiv

2011-07-01 Thread Andrew Dupont
Yeah, I can confirm we'll update to the latest version of Sizzle before we 1.7.0.1 (which is a soon-ish release). Cheers, Andrew On Jun 30, 8:03 pm, Jonny Nott wrote: > So, any news on Prototype 1.7.0.1, 1.7.1 or 1.8? Assuming it'll have > the latest sizzlejs included? -- You received this mes

[Proto-Scripty] Re: Prototype's evolution

2011-08-22 Thread Andrew Dupont
Thanks for the input, guys. *Lots* of interesting stuff to read in this thread, and I'm gonna try to ruminate on all of it and respond at the end of the day with something long and thoughtful of my own. Cheers, Andrew On Jul 13, 9:36 am, Cantrelle Vincent wrote: > Dear all, > > This is just a si

[Proto-Scripty] Re: Prototype's evolution

2011-08-22 Thread Andrew Dupont
OK, let's start from the beginning: On Jul 13, 9:36 am, Cantrelle Vincent wrote: > I hope that I have a > "truncated" view of the situation, and that the number of users for > Prototype.js is still high enough, and the "motivation" of the core > team too, so that this library will be still mainta

[Proto-Scripty] Re: Prototype's evolution

2011-08-31 Thread Andrew Dupont
On Aug 25, 3:50 am, Victor wrote: > Hello Andrew! > > Great to see that someone from developers still reading this list. You > didn't cleared the situation about lighthouse bug tracker and code patches. > Will someone somehow react to the bug messages, questions about code, > proposed patches et

[Proto-Scripty] Re: Prototype's evolution

2011-09-01 Thread Andrew Dupont
I'm sorry, Victor. I'll make sure these get addressed before the next release. Cheers, Andrew On Sep 1, 2:10 am, Victor wrote: > Fine. Here is a list of my Prototype tickets (not counting tickets for > Prototype documentation): > > 1269

[Proto-Scripty] Re: Prototype's evolution

2011-10-07 Thread Andrew Dupont
(Dammit, I've got to set up an alert for this thread so new messages don't fall through the cracks. Sorry for the late reply, guys.) On Sep 2, 9:10 pm, Phil Petree wrote: > What I read in to this is that Andrew has said he is not "planning" on > ceasing development anytime soon BUT plans change a

[Proto-Scripty] Re: Is it posible multiple Inheritance?

2011-10-19 Thread Andrew Dupont
Sadly, no. You can mixin any number of objects (like Enumerable), but only one class. On Oct 13, 11:05 am, buda wrote: > I need to create class which is inhereted from enumerable module, > sortable class and observable class > Is it possible in one operation call? -- You received this message b

[Proto-Scripty] Re: Stopping events using Prototype 1.6.1 in IE9 / how compatible is Prototype 1.7 with 1.6.1?

2011-10-19 Thread Andrew Dupont
IE 9 makes major changes to the event system. We had to rewrite the event code in 1.7 to support it. You can either (a) upgrade to 1.7; (b) force your site into compatibility mode [1]. I highly recommend option A. If it's not a seamless upgrade, option B is there as a last resort. Cheers, Andrew