[Prototype-core] Re: Unified browser detection patch

2007-01-21 Thread Tobie Langel
And BTW is Opera 9 officialy supported by Prototype? If not, couldn't that be one of the goals of a future release? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send

[Prototype-core] Re: How I use prototype

2007-01-22 Thread Tobie Langel
Hi webEater, Regarding your visible/show/hide issues, have a look at my post about why using inline display style is unfortunately the only solution that works: http://tobielangel.com/2006/12/31/why-the-css-display-property-sucks Best, Tobie

[Prototype-core] Opera 9 support

2007-02-10 Thread Tobie Langel
Hi, Although Opera 9 is *not* officially supported by Prototype, it passes nearly all tests. It would be great to be able to officialy support Opera 9 in upcoming versions of Prototype. This would at least imply dealing with the currently failing tests. Here's a list for Opera 9.02 (on Mac OSX

[Prototype-core] Re: Documentation typos (new Ajax.Request)

2007-02-11 Thread Tobie Langel
That's been corrected. Thanks for the heads-up. Tobie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from

[Prototype-core] Re: What is the reason for this?

2007-02-14 Thread Tobie Langel
Just an idea I tossed in previously. Removed code could simply be extracted to such an add-on. Definitely the way to go. That what jQuery does for instance - and it a great idea. Release a plugin with every new release that keeps the deprecated stuff working. It's not a lot of work, and

[Prototype-core] Re: Running in circles!

2007-02-22 Thread Tobie Langel
Richard, Could you please kindly post this into - http://groups-beta.google.com/group/rubyonrails-spinoffs ? The Prototype Core list is for discussion of patches, releases, and other issues related to the development of Prototype. It is not for support questions - please use the users mailing

[Prototype-core] Re: Ajax.Request Breaks on Firefox 2.0.0.1

2007-02-23 Thread Tobie Langel
Hi, I've spent quite a long time adding JSON support to Prototype and have recently committed my changes to the Ajax branch. You can read more about it here: http://groups.google.com/group/prototype-core/browse_thread/thread/43c13d4b233b20fb?hl=en Some things still need to be smoothened out,

[Prototype-core] Re: Spelling/grammar error on website

2007-02-24 Thread Tobie Langel
That's now been corrected. Thanks! On Feb 24, 5:03 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: The first red warning box onhttp://prototypejs.org/learn/introduction-to-ajax has an incorrect word. In the italicized portion Ajax requests can on be made to URLs of the same protocol, host and

[Prototype-core] Re: new Event functionality

2007-02-24 Thread Tobie Langel
Hi, Just to let you know that I have a very lightweight custom event implementation which is available here (and which I'd hapilly donate to Prototype if need be): http://sandbox.tobielangel.com/custom_event/src/custom_event.js A demo logging the results to the console is available here:

[Prototype-core] Re: Ajax.Request - eval()'ing the responseText

2007-03-04 Thread Tobie Langel
Hi DK, You should have a look at this: http://groups.google.com/group/prototype-core/browse_thread/thread/43c13d4b233b20fb/?hl=en# Should solve your problems in the near future. Regards, Tobie --~--~-~--~~~---~--~~ You received this message because you are

[Prototype-core] Re: Prototype.Date.Succ

2007-03-10 Thread Tobie Langel
Sounds like a great idea. Deserves a ticket IMHO. The only issue I see is if you need to iterate over hours, minutes or months instead of days. Regards, Tobie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Prototype-core] Re: Prototype.Date.Succ

2007-03-10 Thread Tobie Langel
Don't know from where i got that link Probably from trac ;-) http://dev.rubyonrails.org/ticket/6342 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to

[Prototype-core] Re: cosmetic documentation updates needed

2007-03-12 Thread Tobie Langel
That's now been corrected. Thanks for the heads up. Tobie On Mar 13, 1:44 am, Marius Feraru [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 While updating the PJS Firefox sidebar I noticed some classes are missing their table of contents (//[EMAIL

[Prototype-core] Re: Hash.toQueryString changes

2007-03-14 Thread Tobie Langel
Trac should be back up now... so you're welcome to submit that. On Mar 15, 1:31 am, Colin Mollenhour [EMAIL PROTECTED] wrote: Trac isn't responding at the moment so I can't explore and see what other problems Hash.toQueryString is having, but I completely rewrote it myself to support nested

[Prototype-core] Re: DOM builder in Prototype core?

2007-03-15 Thread Tobie Langel
I'd favor writeAttribute to be consistant with readAttribute... and setStyle (which is not pluralized). Some heated debate in perspective! On Mar 15, 8:42 am, Mislav Marohnić [EMAIL PROTECTED] wrote: On 3/15/07, Martin Ström [EMAIL PROTECTED] wrote: FYI: tests and code are now submitted

[Prototype-core] Re: Ajax help

2007-03-18 Thread Tobie Langel
Hi guys, Don't want to sound rude, but this thread doesn't belong in Prototype core. Could you kindly pursue in the spinoffs mailing list (http:// groups.google.com/group/rubyonrails-spinoffs?lnk=lihl=en) ? Thanks and best regards, Tobie On Mar 18, 7:23 pm, andymadonna [EMAIL PROTECTED]

[Prototype-core] Re: Ajax help

2007-03-18 Thread Tobie Langel
no problem. Thanks for your understanding. Tobie On Mar 18, 7:30 pm, Gareth Evans [EMAIL PROTECTED] wrote: Oops sorry Tobie, didnt notice this was core- just subscribe to the thread via email. My bad. Gareth On 3/19/07, Tobie Langel [EMAIL PROTECTED] wrote: Hi guys, Don't want

[Prototype-core] Re: Node Insertion Methods

2007-03-20 Thread Tobie Langel
Definitely aggreed. Could we go for somethign a bit more consistent in the naming though ? append = Insertion.Top prepend = Insertion.Bottom addBefore = Insertion.Before addAfter = Insertion.After Best, Tobie On Mar 20, 12:15 pm, Mislav Marohnić [EMAIL PROTECTED] wrote: On 3/20/07, Ken

[Prototype-core] Re: Node Insertion Methods

2007-03-20 Thread Tobie Langel
lol On Mar 20, 1:58 pm, Christophe Porteneuve [EMAIL PROTECTED] wrote: Hey, Tobie Langel a écrit : append = Insertion.Top prepend = Insertion.Bottom OK, but... the other way around! :-) -- Christophe Porteneuve aka TDD [EMAIL PROTECTED

[Prototype-core] Re: Node Insertion Methods

2007-03-24 Thread Tobie Langel
OK, just posted an update a patch for this issue. let me know what you think. Regards, Tobie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to

[Prototype-core] Re: Form.serialize, Ajax.Request, Hash.toQueryString, .toQueryParams

2007-03-26 Thread Tobie Langel
Hi Colin... You know, this *is* an open-source project... i.e. we don't always have the time... So please don't take the lack of answers personally. Honestly, I haven't followed the toQueryString debate myself to closely... so I can't really voice an opinion. Regarding nested arrays and the

[Prototype-core] Re: Form.serialize, Ajax.Request, Hash.toQueryString, .toQueryParams

2007-03-26 Thread Tobie Langel
oh... and regarding this: I've also removed the use of $H functions from toQueryString for compatibility with keys such as each, collect, etc.. H.toQueryString already deals with this issue. --~--~-~--~~~---~--~~ You received this message because you are

[Prototype-core] Re: Form.serialize, Ajax.Request, Hash.toQueryString, .toQueryParams

2007-03-26 Thread Tobie Langel
cases, and if we should add toJSON methods for form elements to the framework. As I've said, I'm not familiar with this issue - so I'm basically just thinking out loud here. Regards, Tobie On Mar 26, 5:28 pm, Tom Gregory [EMAIL PROTECTED] wrote: On Mar 26, 2007, at 3:06 PM, Tobie Langel wrote

[Prototype-core] Re: Form.serialize, Ajax.Request, Hash.toQueryString, .toQueryParams

2007-03-26 Thread Tobie Langel
my inclination is to stick to a very spec-compliant and unambitious Hash serializer for 1.5.1. + 1 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to

[Prototype-core] Re: Ajax.* scandinavian characters

2007-03-29 Thread Tobie Langel
Hi Jussi, Encoding's an option which defaults to UTF-8. (see http://prototypejs.org/api/ajax/options) You can set it to whatever you want. Regards, Tobie On Mar 29, 6:31 am, Jussi Salminen [EMAIL PROTECTED] wrote: Hi, why Ajax.Request and Ajax.Updater convert all POST and GET paramters

[Prototype-core] Re: JSON Hijacking and a potential RESTful fix

2007-04-03 Thread Tobie Langel
Here's the proposed client-side fix: http://dev.rubyonrails.org/ticket/7910 Regards, Tobie On Apr 3, 6:36 pm, Charlie Vaske [EMAIL PROTECTED] wrote: Hello, I came here via Bruce Schneier's link to a paper on JSON hijacking [1] where Andrew Dupont commented that Prototype Core has discussed

[Prototype-core] Re: Spanish translation

2007-04-20 Thread Tobie Langel
Hi Zuquirio, The prototype documentation is released under a Creative Commons Attribution-ShareAlike 3.0 license (http://prototypejs.org/license), so you are more than welcomed to do so. Regards, Tobie On Apr 20, 12:46 pm, Zuquirio [EMAIL PROTECTED] wrote: Hi folks! Im Zuquirio, I would

[Prototype-core] Re: IE CreateElement

2007-05-01 Thread Tobie Langel
Yeah. Scripty could probably drop the Builder class once this gets into a release Or rather build upon it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email

[Prototype-core] Re: Opera 8.54

2007-05-03 Thread Tobie Langel
Post a bug! (http://prototypejs.org/contribute) - Tobie On May 3, 4:45 am, alshur [EMAIL PROTECTED] wrote: Damn, Prototype 1.5.1 final doesn't have this issue fixed... On Apr 26, 6:49 pm, Andrew Sumin [EMAIL PROTECTED] wrote: I add prototype 1.5.1_rc3 to the page. All submits in Opera do

[Prototype-core] Re: ACMAScript Strict.

2007-05-11 Thread Tobie Langel
Hi Andrew, Please search through the archives before posting. This issue has been thoroughly discussed before: http://groups.google.com/group/prototype-core/browse_thread/thread/955370df2e66af04/5c168b81dfa6895a?lnk=gstq=strictrnum=4hl=en#5c168b81dfa6895a Anyway, as explained here,

[Prototype-core] Re: About Function.prototype.bind

2007-05-16 Thread Tobie Langel
Hi Chou, Function#bind concanates the arguments you pass to it to the arguments you'll later pass to your bound function. args refers to the arguments you passed to Function#bind, arguments to the ones you passed to your bound function. You can read more about all of this here:

[Prototype-core] Re: documentation suggestion for $F()/Form.Element.getValue()

2007-05-16 Thread Tobie Langel
There are rumors of a probable deprecation of $F... So use $ (element).getValue() instead. -- tobie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to

[Prototype-core] Re: documentation suggestion for $F()/Form.Element.getValue()

2007-05-16 Thread Tobie Langel
Those who like $F (like me) will continue to use it even when it's removed - ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to

[Prototype-core] Re: Community Repository

2007-05-17 Thread Tobie Langel
Hi guys, I've got a really delayed plan to include a list of Prototype add-ons to prototypejs.org (note, taht won't be an svn repository). I've collected the data already and just need to find a way to organize it in Mephisto. I'm hoping to get around to doing this before the 1.5.2 release.

[Prototype-core] Re: setStyle() throwing errors in IE when object does not exist in DOM

2007-05-17 Thread Tobie Langel
That's one of the cool things about the upcoming new Element feature btw. It already extends the elements for you. So you'll be able to do: new Element('div').setStyle({height: '100px'}); well... or (in that particular case): new Element('div', {style: 'height: 100px;'}); you can read more

[Prototype-core] Re: Bug or Incompatibility - prototype 1.5.1 and scripaculous 1.7

2007-05-17 Thread Tobie Langel
This has been reported multiple times. Please search the groups before posting. Prototype 1.5.1 only works with the latest script.aculo.us beta version. -- Tobie On May 18, 1:09 am, santiagofs [EMAIL PROTECTED] wrote: I'm getting this message on my console when using the effects libray

[Prototype-core] Re: Prototype.insertScript? (with code)

2007-05-18 Thread Tobie Langel
Mislav, I think Sylvain is just using the iframe to get an onload event triggered. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to

[Prototype-core] Re: Documentation Error: Position.withinIncludingScrolloffsets()

2007-05-23 Thread Tobie Langel
Ya, Mephisto doesn't handle clearing the cache of mixed-cased pages. It has to be done manually. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to

[Prototype-core] Re: next(Number) slowdown in Internet Explorer (6,7)

2007-05-24 Thread Tobie Langel
As a side note, the bigger the document you are working with is, the slower the methods will be - obviously! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email

[Prototype-core] Re: Opera and Form.serialize

2007-06-03 Thread Tobie Langel
Are you using Prototype 1.5.1 ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send

[Prototype-core] Re: Event.element() oddity

2007-06-13 Thread Tobie Langel
event.currentTarget is the element the event was attached to (i.e. it's equivalent to this). event.target == event.srcElement is the element that triggered the event. So for example: ul id=myUl li id=myLiclick me/li /ul $('myUl').observe('click', callback); If I now click on the click me

[Prototype-core] Re: $ function

2007-06-18 Thread Tobie Langel
And for my solution, it is too ugly, I won't use it, just prove you can change the name and fix it. Ya, unfortunately, in the process you've also removed any event handler that could have been set on the element. --~--~-~--~~~---~--~~ You received this message

[Prototype-core] Re: $ function

2007-06-18 Thread Tobie Langel
think so. IE, misbahaving make me confused on you, why does IE implement the DOM basic method like this, any reasonable reason? Thanks ;) On Jun 18, 6:07 pm, Tobie Langel [EMAIL PROTECTED] wrote: And for my solution, it is too ugly, I won't use it, just prove you can change the name and fix

[Prototype-core] Re: $ function

2007-06-22 Thread Tobie Langel
AFAIK, that's been corrected a long time ago - but I might be wrong. On Jun 22, 2:59 am, Andrew Dupont [EMAIL PROTECTED] wrote: On Jun 21, 6:30 am, Rebecca Blyth [EMAIL PROTECTED] wrote: Finally, an aside on not having control over the HTML source: I ran into this issue when using the

[Prototype-core] Re: bracket notation

2007-06-22 Thread Tobie Langel
The String function/constructor is maybe useful for other things [...] Like what exactly !? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core group. To post to this group, send email to

[Prototype-core] Re: bracket notation

2007-06-22 Thread Tobie Langel
I'm actually getting faster results in Firefox for typeof in that particular case. On Jun 22, 8:55 am, jdalton [EMAIL PROTECTED] wrote: I don't see the harm in adding the second condition element instanceof String you could use : if(element element.constructor == String) This works for

[Prototype-core] Re: $ function

2007-06-24 Thread Tobie Langel
As advised here: http://www.w3.org/TR/html401/types.html#type-name ID and NAME tokens must begin with a letter ([A-Za-z]) [...] Which clearly implies that ids cannot be number only. On Jun 24, 1:25 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'd like to add a bit of OT to the

[Prototype-core] Re: Inheritance: your thoughts?

2007-06-24 Thread Tobie Langel
I personally prefer the following syntax: var Animal = new Class({ ... }); var Cat = new Class(Animal, { ... }); Also, I think that this.sup or this.$super would be safer than using this.parent, which, in the realm of DOM scripting might be used pretty often inside classes already.

[Prototype-core] Re: Inheritance: your thoughts?

2007-06-25 Thread Tobie Langel
I abhor this syntax. I wish I could put it any more mildly. Haha! Actually, I'm quite fond of it, but I can see how it could be misleading. I hesitate to do this because of the burden of backwards compatibility. Any static method called extend would simply stop working. We can't break code

[Prototype-core] Re: Inheritance: your thoughts?

2007-06-25 Thread Tobie Langel
Is Base an option for the naming of the parent class? Just to clarify, we're looking for how to name the equivalent of the super keyword in Ruby. (i.e. a reference to the method of the same name in the parent class). initialize is reserved, why not extends too - allowing the Class

[Prototype-core] Re: Inheritance: your thoughts?

2007-06-25 Thread Tobie Langel
Yes, keep it lower-case and add an s so it reads better :) Cow-Class extends Animal (and) includes Eatable, Breadable ... Remember that the idea is to distinguish them easily from instance methods, hence capitalizing or prepending a $ sign.

[Prototype-core] Re: Inheritance: your thoughts?

2007-06-25 Thread Tobie Langel
still a no-go for me. Classnames are capitialized, methods and vars are lowercase. Its always been that way in all the common coding guidlines .. But if you insist, what about an underscore instead? In JS that's usually implies that the property/method should be considered as private, so I

[Prototype-core] Re: Inheritance: your thoughts?

2007-06-25 Thread Tobie Langel
I question whether new Class makes sense as an equivalent to Class.create. The new keyword connotes an instance in JavaScript -- with its own scope and method chain. Not all things being *created* are instances. That's a very valid point. It's unfotunately impossible to make a constructor

[Prototype-core] Re: Inheritance: your thoughts?

2007-06-25 Thread Tobie Langel
Subclassing: var Cat = Class.extend(Animal, instanceMethods, classMethods) This is much smarter than Animal.extend(...) because you may wish to have a class method named extend on your classes. Agreed. though I think the Class.create({Extend: Animal, ... }) syntax suggested earlier is

[Prototype-core] Re: Inheritance: your thoughts?

2007-06-25 Thread Tobie Langel
How do you handle precedende handledbetween mixin and instance methods ? Can you rephrase the question please? Sure (there was a handled too many in there): do instance method always have precende over mixins ones ? (from the API you suggest, I suppose mixins are included *after* class

[Prototype-core] Re: Element.replace()... would be nice if it worked with elements as well as html...

2007-06-27 Thread Tobie Langel
that's planned. On Jun 27, 4:51 pm, jdalton [EMAIL PROTECTED] wrote: to get the replaced element i usually do: element = $(element); element.parentNode.insertBefore( newElement, element); return element.remove(); --~--~-~--~~~---~--~~ You received

[Prototype-core] Re: Inheritance: your thoughts?

2007-06-29 Thread Tobie Langel
, 1:07 pm, Tobie Langel [EMAIL PROTECTED] wrote: It's unfotunately impossible to make a constructor for constructors in JS. So Class isn't a constructor here. Actually, it is possible. See the code below: code var Class = function(classDef) { // this = function() { } // throws error

[Prototype-core] Re: Inheritance: your thoughts?

2007-07-01 Thread Tobie Langel
Hi DK, OK, so I hadn't missed anything. You're implementation does not make Class into a constructor. It only fakes the syntax (as my initial proposition did), and does not permit dynamic inheritance of class methods. Too bad... -- Tobie

[Prototype-core] Re: Object doesn't support this property or method with Element.up method in IE 6/7

2007-07-02 Thread Tobie Langel
Please read our tutorial: http://prototypejs.org/learn/extensions That will explain it all. Tobie On Jul 2, 5:48 pm, si [EMAIL PROTECTED] wrote: html head script type=text/javascript src=js/prototype.js/script script function foo(o){

[Prototype-core] Re: document.getElementByClassName appends undefined elements

2007-07-02 Thread Tobie Langel
Please update to 1.5.1.1 and file a bug report if you're still having these issues. Thanks. Tobie On Jul 3, 12:05 am, JonTec [EMAIL PROTECTED] wrote: Prototype.Version = 1.5.0 If this problem has been resolved in the newly released V1.5.1, please let me know. Here is the problem:

[Prototype-core] Re: Number.prototype - my proposal

2007-07-02 Thread Tobie Langel
Hi Andi, You can open a ticket for this, but it'll need tests. I'd favor a more concise notation: Number.prototype.setInRange = function(from, to) { return Math.min(Math.max(from, this), to); }; and I'm not really sure bout the use of that method not the api. For some reason, I think it

[Prototype-core] Re: ActiveSupport for JavaScript

2007-07-03 Thread Tobie Langel
Hi, Nice work. Have you checked the Template class ? It has a lot of similarities with your $Q function. Regards, Tobie On Jul 3, 5:06 am, Nicolas Sanguinetti [EMAIL PROTECTED] wrote: After a few days working on a few hacks for 'enhancing' dates here and there (like strftime, which days

[Prototype-core] Re: String.strip enhancement

2007-07-09 Thread Tobie Langel
Jean-Philippe, Thanks for the link to Steven's blog. It's great and full of very insightful research. I'll be sure to check it out and improve our regexp where necessary. Regards, Tobie On Jul 8, 3:49 pm, Mislav Marohnić [EMAIL PROTECTED] wrote: Moal- Sorry, but if you're posting a patch

[Prototype-core] Re: Prototype and JavaScript 1.6 Array methods

2007-07-09 Thread Tobie Langel
Hi Jeff, That was in the works for a while. Your post just triggered a commit (http://dev.rubyonrails.org/ changeset/7170). Check SVN for the latest implementation. Hope this helps, Tobie On Jul 9, 3:04 pm, Jeff Watkins [EMAIL PROTECTED] wrote: Howdy, I'm investigating switching the online

[Prototype-core] Re: Assigning an unique ID

2007-07-14 Thread Tobie Langel
Hi, I'm failing to see what advantage it has over directly storing a reference to the element like so: this.myElement = $(e); ... var e = this.myElement; Regards, Tobie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Prototype-core] Re: Assigning an unique ID

2007-07-17 Thread Tobie Langel
the method should return the element - for chaining purposes and to follow the general pattern of the other DOM methods - or the generated id itself, which IMHO would proove more useful here. Again, what are your thoughts ? Thanks for your valuable input, Tobie On Jul 14, 2:32 pm, Tobie Langel

[Prototype-core] Re: Assigning an unique ID

2007-07-18 Thread Tobie Langel
it is trivial, so please speak up. Regards, Tobie On Jul 18, 10:57 am, Ken Snyder [EMAIL PROTECTED] wrote: Tobie Langel wrote: ... I'm also concerned about naming the method adequately. Sam suggested Element#denominate which looks nicer than (generate|assign)Id but which I fear could

[Prototype-core] Re: Assigning an unique ID

2007-07-18 Thread Tobie Langel
Hi again, Wrote a patch: http://dev.rubyonrails.org/ticket/9012 I ended up quite liking the identify method name so I went with it. It's obviously still open for discussion. Adding scope is trivial, so if there's a real use case we can do that too. Regards, Tobie

[Prototype-core] Re: Assigning an unique ID

2007-07-18 Thread Tobie Langel
Sorry for the triple posts, as you may have noticed, Google Groups went really crazy today, and I really thought my messages just weren't going through. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype:

[Prototype-core] Re: A Lightweight Set

2007-07-20 Thread Tobie Langel
Or said another way, I can't store keys, values, map, find, etc in a Hash (unless I'm missing something clever). Yes you can... but they override the existing methods. So for example: $H({map: 2}) works as expected except you won't be able to use map or any method that relies on it

[Prototype-core] Re: Event.observe should fix this problem in attachEvent

2007-07-21 Thread Tobie Langel
Have a look at the event branch for this. On Jul 21, 11:57 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You must know the attachEvent can only put a function to be a element's event handler, andd in that function this should be the element itself, but the internet explorer linked it with

[Prototype-core] Re: Event.observe should fix this problem in attachEvent

2007-07-21 Thread Tobie Langel
Sorry, here's the link for it: http://dev.rubyonrails.org/browser/spinoffs/prototype/branches/event On Jul 22, 12:30 am, Tobie Langel [EMAIL PROTECTED] wrote: Have a look at the event branch for this. On Jul 21, 11:57 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You must know

[Prototype-core] Re: Strange exception in FF with $$()

2007-07-24 Thread Tobie Langel
(btw, what's up with all those numbers in the release? was something wrong with just doing a 1.5.2 :) 1.5.1.1 is just a bug-fix release for 1.5.1. No new features included, hence the 1.5.1.1 rather than 1.5.2. Regards, Tobie --~--~-~--~~~---~--~~ You

[Prototype-core] Re: newgrounds.com is now using Prototype and Scripty (NT)

2007-07-25 Thread Tobie Langel
Mislav, man, are you in a bad mood or something !? ;) John-David probably just suggested we should add it to the real-world page. Best, Tobie On Jul 25, 3:37 pm, Mislav Marohnić [EMAIL PROTECTED] wrote: You already know that this is a list for core discussion only. The news is cool, but

[Prototype-core] Re: Lint errors

2007-08-19 Thread Tobie Langel
Hi Jeff, There's a bunch of thread on JavaScript Lint floating around the mailing list already, My position regrading JS Lint is that if it requires to go through 160 warnings to find one that really is an issue, its certainly not the best tool for the job. Regarding the particular warning

[Prototype-core] Re: Suggestion: getElementsByClassName wrapper for firefox 3.0

2007-08-24 Thread Tobie Langel
I'm not saying we should do that, but can't we just wrap it HTMLElement.prototype too ? Tobie On Aug 24, 6:49 am, Mislav Marohnić [EMAIL PROTECTED] wrote: On 8/24/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ... this difference may cause some bugs, so I suggest a small wrapper for

[Prototype-core] Re: iterable/$A

2007-09-01 Thread Tobie Langel
Can we have benchmarks ? On Sep 1, 7:32 pm, Robert Katić [EMAIL PROTECTED] wrote: I have another question about $A and similar. Why you prefer do this var results = []; for (var i = 0, length = iterable.length; i length; i++) results.push(iterable[i]); instead of

[Prototype-core] Re: iterable/$A

2007-09-02 Thread Tobie Langel
: 1 push: 141ms init: 79ms On Sep 2, 4:31 am, Tobie Langel [EMAIL PROTECTED] wrote: Can we have benchmarks ? On Sep 1, 7:32 pm, Robert Katić [EMAIL PROTECTED] wrote: I have another question about $A and similar. Why you prefer do this var results

[Prototype-core] Re: Indiscriminate use of breaking into words function $w()

2007-09-03 Thread Tobie Langel
FYI, some rough benchmarking in Safari using the benchmarking function of unit tests: benchmark(function(){ var colors = $('blue red green violet'); }, 1) benchmark(function(){ var colors = ['blue', 'red', 'green', 'violet']; }, 1) Info: Operation

[Prototype-core] Re: Indiscriminate use of breaking into words function $w()

2007-09-04 Thread Tobie Langel
Feel free to submit a patch with $w() used consistently. Thanks! Tobie On Sep 4, 1:02 pm, Les [EMAIL PROTECTED] wrote: The readability argument is subjective. Personally, I find the array literal syntax more readable. I agree. Also, please notice that the $w() versus [ ] usage is not

[Prototype-core] Re: Indiscriminate use of breaking into words function $w()

2007-09-04 Thread Tobie Langel
Haha Jerod, good point... and shame on me... (I have an excuse I was... uh... jet-lagged!) Here are the correct results: Info: Operation finished 1 iterations in 0.665s Info: Operation finished 1 iterations in 0.133s So it is roughly 5 times slower... changing $w to [] would make

[Prototype-core] Re: Ajax.Request.getStatus() new in 1.6

2007-09-07 Thread Tobie Langel
Hi Ken, I didn't push the getStatus method further than that because there are some issues with the file protocol in Safari (status is always equal to 0 in that case if I remember well). Proper support for the file protocol is something I'd like to have for 1.6 final. It implies rewritting

[Prototype-core] Re: Ajax.Request.getStatus() new in 1.6

2007-09-08 Thread Tobie Langel
So Tobie, how would you use the file protocol for an ajax request? It's mainly a backwards compatibility issue (plus it can be useful for testing purposes). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Prototype-core] Re: JSON conversion isn't adequate

2007-09-25 Thread Tobie Langel
Hi, Regarding your first and 3rd point, Prototype's JSON implementation is based on RFC 4627 (http://www.ietf.org/rfc/rfc4627.txt?number=4627) and maps Douglas Crockford's JS implementation (http://json.org/ json.js). JSON is a language agnostic data exchange format which happens to be easily

[Prototype-core] Re: JSON conversion isn't adequate

2007-09-25 Thread Tobie Langel
Also consider that JSON is not eval'ed unless the regex detects that there are no illegal tokens such as function calls that would open up a script to hacking That's only true if you've passed true to String#evalJSON's sanitize argument - see http://prototypejs.org/api/string/evalJSON for

[Prototype-core] Re: String#times performance pit in IE

2007-09-26 Thread Tobie Langel
Brilliant Martin! as usual...! Martin Ström wrote: Try benchmarking this solution as well, it doesn't even use an for loop which could make it even a bit faster: String.prototype.times3 = function(count) { return new Array(count + 1).join(this); } Hej Martin

[Prototype-core] Re: Why PeriodicalUpdater doesn't work on Internet Explorer?

2007-09-27 Thread Tobie Langel
Hi, You'll get an answer much faster on the prototype user mailing list: http://groups-beta.google.com/group/rubyonrails-spinoffs Best, Tobie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype: Core

[Prototype-core] Re: DOMContentLoaded bug?

2007-09-28 Thread Tobie Langel
yup, we're going to correct this asap. Regards, Tobie On Sep 28, 3:49 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I noticed that when using the DOMContentLoaded functionality of the new beta in IE, the browser will receive 404 calls (test it using filder). I believe the error is from

[Prototype-core] Re: *Bug* - transport.responseJSON doesn't work with konqueror

2007-10-07 Thread Tobie Langel
Hi Luke, Thanks for the info. Mind opening a bug report for it ? That would be really helpful. Have you run the test suite on Konqueror, any ajax related tests failing ? I'm suspecting it might be an issue with the content headers, could you please let me know what you get for the following:

[Prototype-core] Re: Getting patches reviewed and applied

2007-10-14 Thread Tobie Langel
I feel like we're turning the corner there, though; we should probably start following the Report 12 process for Prototype. What does the rest of Core think? +1 ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Prototype-core] Re: `new Element' does not take care to properly set up event attributes in IE

2007-10-19 Thread Tobie Langel
Hey Viktor, This syntax is just not supported at the moment. Use: new Element('div').observe('click', callback); instead. Regards, Tobie On Oct 19, 2:37 pm, Viktor Kojouharov [EMAIL PROTECTED] wrote: This is a really troublesome bug, which is exhibited in IE browsers. Consider this

[Prototype-core] Re: Implementing Cross site Ajax support for prototype

2007-10-21 Thread Tobie Langel
Hi, What would be great would be to include writing capacities similar to what Google came up with. I have no idea how complex that is to set up - probably very - nor how their code is licensed. Regards, Tobie On Oct 21, 3:10 pm, Thierry [EMAIL PROTECTED] wrote: I am looking for cross

[Prototype-core] Re: Implementing Cross site Ajax support for prototype

2007-10-21 Thread Tobie Langel
http://ajaxian.com/archives/google-launches-javascript-api-that-allows-you-to-write-back On Oct 21, 4:03 pm, Thierry [EMAIL PROTECTED] wrote: What did google come up with? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Prototype-core] Re: Event.extend not a function in firefox

2007-10-21 Thread Tobie Langel
Fixed in http://dev.rubyonrails.org/changeset/7986 cheers, Tobie On Oct 19, 5:11 pm, kangax [EMAIL PROTECTED] wrote: Sam, I think this issue is well documentedhttp://dev.rubyonrails.org/ticket/9421 --~--~-~--~~~---~--~~ You received this message because you

[Prototype-core] Re: a few more additions to Element._attributeTranslations

2007-10-25 Thread Tobie Langel
Hi Viktor, Could you possibly open a ticket, or better yet, write a patch with corresponding tests? Thanks, Tobie On Oct 25, 11:12 am, Viktor Kojouharov [EMAIL PROTECTED] wrote: Currently, cellspacing|padding cannot be set using writeAttribute (or new Element) in Internet explorer, since it

[Prototype-core] Re: Ticket 10030 - is Ajax.Request.success() broken?

2007-11-13 Thread Tobie Langel
: Tobie Langel wrote: Some browsers - I can't remember witch - always return a status of 0 for the file: protocol, others don't return a value at all in that case, hence this hack. We're going to be doing more work on Ajax for 1.6.1, but I'm not even sure there is a real solution ot his

[Prototype-core] Re: IE not updating div element working fine in FF

2007-11-14 Thread Tobie Langel
Hi, Please use something like http://pastie.caboo.se/ to paste code as it's just unreadable like that. Also, please post assistance requests to the spinoffs mailing list http://groups-beta.google.com/group/rubyonrails-spinoffs. This list is for development purposes only. Thanks! Tobie On

[Prototype-core] Re: Ticket 10030 - is Ajax.Request.success() broken?

2007-11-14 Thread Tobie Langel
implement that for the moment. So a status code of 0 will not trigger an onException callback. You're welcomed to submit a patch. If not I'll look into it asap. Regards, Tobie On Nov 14, 5:41 pm, Ken Snyder [EMAIL PROTECTED] wrote: Tobie Langel wrote: ... Could you please clarify what kind

[Prototype-core] Re: Ticket 10030 - is Ajax.Request.success() broken?

2007-11-14 Thread Tobie Langel
But what about http pages accessing files? I was under the impression that this is the prime testing situation. That's a violation of SOP. It's just not possible with Ajax. (Else, imagine how a website could discretely upload most of your hard- drive's content). One question: We want the

[Prototype-core] Re: Ticket 10030 - is Ajax.Request.success() broken?

2007-11-14 Thread Tobie Langel
Ken, sorry if my last comment sounded a bit harsh - really wasn't my intention. Thanks again for your work on this, it really, really helped. Best, Tobie On Nov 14, 7:22 pm, Tobie Langel [EMAIL PROTECTED] wrote: But what about http pages accessing files? I was under the impression

  1   2   3   >