[Proto-Scripty] Re: Future of Prototyp.js

2012-10-21 Thread T.J. Crowder
On Sunday, 23 October 2011 17:43:39 UTC+1, T.J. Crowder wrote: Hi, On Oct 23, 5:35 pm, wwwboy www...@pochta.ru wrote: With the speed of which modern browsers release updates and move toward HTML5 - I think there will be no significant differences between them in a year. IE8

[Proto-Scripty] Walter Lee Davis is now a moderator

2012-05-15 Thread T.J. Crowder
! Thanks Walter! -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this discussion on the web visit https

Re: [Proto-Scripty] Call for moderators

2012-05-12 Thread T.J. Crowder
web-only, I doubt I would be a good choice. Walter On May 11, 2012, at 11:09 AM, T.J. Crowder wrote: Hi all, I almost never read this group anymore. When I do, there are usually a couple of messages from new members waiting to be allowed through. (I'm a moderator of the group

[Proto-Scripty] Call for moderators

2012-05-11 Thread T.J. Crowder
. Ideally, I'd like to see replies from people who've been active on the list for at least a year. Thanks! -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype

Re: [Proto-Scripty] stupid checkbox question

2012-04-28 Thread T.J. Crowder
while HTML5 is very lax, if you're ever going to use CSS selectors to refer to the element, best to stick to the more restrictive CSS rules. FWIW, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you

Re: [Proto-Scripty] Re: accessing global objects

2012-04-02 Thread T.J. Crowder
From the code you've quoted, it would be accessible, there must be more to it than that. Can you provide a minimalist test case on http://jsbin.com or similar? -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Monday, 2 April 2012 12:21:44

[Proto-Scripty] Re: Handle an Event or Element in one function (or alias)?

2012-02-26 Thread T.J. Crowder
ones you add) http://api.prototypejs.org/dom/Element/Methods/ * `methodize` is what Prototype uses to turn Element.setTab(foo) into $(foo).setTab(); http://api.prototypejs.org/language/Function/prototype/methodize/ Hope this helps - happy coding! -- T.J. Crowder Independent Software Engineer tj

[Proto-Scripty] Re: Problem with jquery+prototype

2012-02-25 Thread T.J. Crowder
to Prototype, and `jQuery` is how you access jQuery. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email

[Proto-Scripty] Re: Problem with jquery+prototype

2012-02-24 Thread T.J. Crowder
Hi, On Feb 23, 9:42 pm, Syn vjuliu...@gmail.com wrote: Hey, I'm using a tool which uses prototype. I'm also using my own little jquery which looks like this: $(document).ready(function(){         $('.flip').click(function(){         $('#panel').slideToggle('slow');         });        

[Proto-Scripty] Re: class is a reserved identifier. What is wrong?

2012-02-20 Thread T.J. Crowder
Hi, The problem must be in code you haven't quoted. Use your editor to do a case-sensitive search for class (in all lower case), it's a reserved (but currently unused) word in JavaScript. Note that your quoted code uses Class (with an initial capital letter), which is fine. HTH, -- T.J. Crowder

[Proto-Scripty] Re: Order of Event Handler

2012-02-07 Thread T.J. Crowder
Prototype so that it inserts a wrapper handler that receives the jQuery event object, uses Prototype to extend the `event.originalEvent` object, and then fires the handler using that. But it will get complicated fast (not least around `stopObserving`). Good luck, -- T.J. Crowder Independent

[Proto-Scripty] Re: Problem with IE8 throwing Object doesn't support this property or method error

2012-01-26 Thread T.J. Crowder
to run it through $() so Prototype can extend it. HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Jan 26, 6:46 pm, MrBaseball34 mrbasebal...@gmail.com wrote: Prototype version: 1.6.0.3 Line 4081 4061: fire: function(element

[Proto-Scripty] Re: RegExp.match

2012-01-22 Thread T.J. Crowder
On Jan 22, 8:54 am, Dmitry Trunikov dmitry.truni...@gmail.com wrote: ... Thank you very match. ^ ... LOL No worries! -- T.J. :-) -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email

[Proto-Scripty] Re: RegExp.match

2012-01-20 Thread T.J. Crowder
HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com

[Proto-Scripty] Re: Questions about Function#methodize()

2012-01-15 Thread T.J. Crowder
; the return value of `foo` is the value used in x = y = value. See http://es5.github.com/#x11.13.1 HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: Select range of array items

2012-01-12 Thread T.J. Crowder
fine. It's only the DOM element extensions that are not automatic in IE. This works in IE6, for instance: http://jsbin.com/afocoy All that `$A()` does in that code is needlessly duplicate the array. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software

[Proto-Scripty] Re: Ajax.Updater insertion not working in IE

2012-01-10 Thread T.J. Crowder
Hi, On Jan 9, 11:08 pm, Jason C jtchand...@gmail.com wrote: ...but does not work in IE9. What error(s), if any, do you see in the JavaScript console / developer tools? -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received

[Proto-Scripty] Re: Status of prototype

2012-01-06 Thread T.J. Crowder
, etc., that would make a _massive_ difference to the project. Hopefully that new co-chair could also look at some of the longer-term stuff (like using element wrappers rather than DOM element augmentation, which I know was high on Andrew's to do list). Best, -- T.J. Crowder Independent Software

[Proto-Scripty] Re: I've a problem with my code.

2012-01-06 Thread T.J. Crowder
clearing out the descendant elements of the addcomment element that contains this comment element. HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Jan 6, 4:45 pm, Matthew Goszcz matthew.gos...@gmail.com wrote: I'm a newcomer to prototype

[Proto-Scripty] Re: I've a problem with my code.

2012-01-06 Thread T.J. Crowder
` is a *property*, not an *attribute*.) -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype

[Proto-Scripty] Re: Using `element.update()` on td elements

2011-12-30 Thread T.J. Crowder
`colspan`, results will still vary across browsers -- ex http://jsbin.com/aqehax/3 -- but that's no great surprise, and using colspan -- ex http://jsbin.com/aqehax/4 -- works.) HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You

[Proto-Scripty] Re: about source code Class.create()

2011-12-05 Thread T.J. Crowder
15 lines further down: if (!klass.prototype.initialize) klass.prototype.initialize = Prototype.emptyFunction; HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed

[Proto-Scripty] Re: Scriptaculous page hacked?

2011-12-05 Thread T.J. Crowder
was created by Thomas Fuchs where the name is a link to Thomas' blog. His blog has his email address. I'm not seeing the porn link (double-check me though), so I'm guessing someone already corrected it. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder

[Proto-Scripty] Re: Where is ver. 2.0 is coming?

2011-11-30 Thread T.J. Crowder
Other than the unnecessary assignment to `child`, doesn't look that bad to me... How would you improve it? -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Nov 30, 6:38 am, Victor vkhomyac...@gmail.com wrote: Also CoffeeScript sometimes

[Proto-Scripty] Re: Possible BUG: IE8: Object::stringify

2011-11-21 Thread T.J. Crowder
= JSON.stringify(object); return string.replace(/\\u([0-9A-Za-z]{2,4})/g, function(m, c0) { return String.fromCharCode(parseInt(c0, 16)); }); } ...or similar. HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received

[Proto-Scripty] Re: Prototype AJAX call IE6 - not working

2011-11-08 Thread T.J. Crowder
stop complaining. There's a similar problem with dangling commas at the ends of array literals (e.g., given `var a = [1, 2, 3, ];`, what's the length of `a`?). More: http://blog.niftysnippets.org/2010/09/literal-improvement.html HTH, -- T.J. Crowder Independent Software Engineer tj / crowder

[Proto-Scripty] Re: Element.replace get top node of replaced content

2011-11-04 Thread T.J. Crowder
, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com

[Proto-Scripty] Re: Done but with errors on when page loads.

2011-10-28 Thread T.J. Crowder
. You have to make sure you're dealing with an extended one. All elements you get via Prototype are pre-extended for you, but if you create or retrieve them via other means, they won't be. See the article for details. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www

[Proto-Scripty] Re: Rant - IE7 Sucks

2011-10-27 Thread T.J. Crowder
On Oct 27, 3:46 pm, Victor vkhomyac...@gmail.com wrote: I think there is some problem in your code... I suspect so as well, which is why a couple of days ago I asked him to post a self-contained example to http://jsbin.com. -- T.J. ;-) -- You received this message because you are subscribed

[Proto-Scripty] Re: Form.Serialize returning nada

2011-10-25 Thread T.J. Crowder
On Oct 25, 2:18 pm, ColinFine colin.f...@pace.com wrote: Your 'serialize()' is called when you _define_ dofill. No, it'll get called each time he _calls_ `dofill`. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received

[Proto-Scripty] Re: Rant - IE7 Sucks

2011-10-25 Thread T.J. Crowder
Can you post a self-contained example to http://jsbin.com? -- T.J. On Oct 25, 6:10 pm, kstubs kst...@gmail.com wrote: I may have to repost, but I'll state what I think the issue may be here first. OK, so IE7.  I have a class and I mixin an object called SimpleForms.  These methods are not

[Proto-Scripty] Re: Future of Prototyp.js

2011-10-23 Thread T.J. Crowder
(such as how opacity is specified in various browsers), but mostly it's about simplifying and expanding on what's common across browsers (for instance, the DOM navigation stuff). My two cents. :-) [1] http://marketshare.hitslink.com/browser-market-share.aspx?qprid=2qpcustomd=0 -- T.J. Crowder

[Proto-Scripty] Re: Object.isArray should be changed

2011-10-23 Thread T.J. Crowder
prototype method from ECMAScript5 (so, IE8 and downward), and gives false positives on any object that just happens to have a property called `forEach`. Respectfully, the Prototype implementation is much more robust. [1] http://es5.github.com/#x15.2.4.2 -- T.J. Crowder Independent Software

[Proto-Scripty] Re: Object.isArray should be changed

2011-10-23 Thread T.J. Crowder
from 1.6 to 1.7, here's a cheap and easy way: (function() { var toString = Object.prototype.toString; Object.isArray = function(obj) { return toString.call(obj) === [object Array]; // Capitalization matters }; })(); HTH, -- T.J. Crowder Independent Software Engineer tj

[Proto-Scripty] Re: Future of Prototyp.js

2011-10-23 Thread T.J. Crowder
developers - small size, fast execution! Again, what makes you think that legacy support is a significant fraction of the library? I suggest reading through the source, the vast majority of it is utility functionality, not cross-browser workarounds. -- T.J. Crowder Independent Software Engineer tj

[Proto-Scripty] Re: strange problem with detect method and cloning data

2011-10-21 Thread T.J. Crowder
` functions), but avoids requiring the `destroy` call. Example: http://jsbin.com/ewoniq/2 FWIW, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: strange problem with detect method and cloning data

2011-10-21 Thread T.J. Crowder
to have. If thousands, enable function reuse (I just tend to use a naming convention rather than true private variables); if dozens, probably just go ahead and duplicate the methods. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You

[Proto-Scripty] Re: strange problem with detect method and cloning data

2011-10-18 Thread T.J. Crowder
, but of course they don't in the case of your `a` constructor. Very surprising. Similarly: var one = new a(); var two = new a(); one.add(foo); one.add(bar); alert(two.items.length); // 2?!?! I haven't added anything to `two`! I'm curious what the use-case is... HTH, -- T.J. Crowder Independent Software

[Proto-Scripty] Re: strange problem with detect method and cloning data

2011-10-18 Thread T.J. Crowder
On Oct 18, 10:29 am, buda www...@pochta.ru wrote: that sample was to demonstarte Object.clone bug :) It's not a bug, though I'd say detecting that it's being fed an array wouldn't be a bad feature to add. Usually I us to var a  = Class.create((function() {    var _privates = [];    

[Proto-Scripty] Re: Why created object is not extended with Object methods?

2011-10-18 Thread T.J. Crowder
)); // name You're confusing `Object` with `Object.prototype`. The properties of `Object` are not inherited by object instances; the properties of `Object.prototype` are. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message

[Proto-Scripty] Re: Why created object is not extended with Object methods?

2011-10-18 Thread T.J. Crowder
/myths-and-realities-of-forin.html [2] http://api.prototypejs.org/language/Array/ [3] http://es5.github.com/#x15.2.4 HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google

[Proto-Scripty] Re: err fred.loginfo is not function.

2011-10-17 Thread T.J. Crowder
start here[1] and then work your way forward through the posts chronologically, it may be helpful. [1] http://blog.niftysnippets.org/2008/02/javascripts-curiously-powerful-or.html HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct

[Proto-Scripty] Re: method ON vs OBSERVE

2011-10-17 Thread T.J. Crowder
be a better way to go. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous

[Proto-Scripty] Re: strange problem with detect method and cloning data

2011-10-17 Thread T.J. Crowder
help you. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 17, 3:37 am, buda www...@pochta.ru wrote: I have a class var a = Class.Create({ function initialize() {   var _items = [];   Object.defineProperties(this, {     'items

[Proto-Scripty] Re: strange problem with detect method and cloning data

2011-10-17 Thread T.J. Crowder
On Oct 17, 10:17 am, T.J. Crowder t...@crowdersoftware.com wrote: It's very hard to help when the code presented is fundamentally broken and yet reported as working. Sorry, in print that comes across much more harshly than it was intended to. I only mean that it's easier to help debug code

[Proto-Scripty] Re: method ON vs OBSERVE

2011-10-12 Thread T.J. Crowder
function if you need to stop it later, but since you have to remember the `EventHandler` instance `on` returns to you, I'm not seeing any net benefit in that sense. `on`'s real use is event delegation IMHO. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software

[Proto-Scripty] Re: Silly Question

2011-10-11 Thread T.J. Crowder
are for, but it should get you started. HTH, [1] http://stackoverflow.com/questions/4868412/show-modal-dialog-with-x-without-using-jqueryui/4868514#4868514 [2] http://jsbin.com/ocobu4/4 -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received

[Proto-Scripty] Re: Pimp my code!

2011-10-09 Thread T.J. Crowder
properties, but I find that it applies in 99% of the situations I'd want it. [1] http://api.prototypejs.org/dom/Element/toggleClassName/ [2] http://blog.niftysnippets.org/2008/03/mythical-methods.html HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder

[Proto-Scripty] Re: The order of iteration with Hash objects.

2011-10-06 Thread T.J. Crowder
is a number that you increase each time you put an item into the hash. You'd still have to sort the keys after retrieving them, they won't be guaranteed to be iterated in order. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received

[Proto-Scripty] Re: The order of iteration with Hash objects.

2011-10-05 Thread T.J. Crowder
. [1] http://api.prototypejs.org/language/Hash/prototype/keys/ [2] http://es5.github.com/#x15.4.4.11 -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: Instance methods and stopObserve

2011-10-04 Thread T.J. Crowder
/ [2] http://blog.niftysnippets.org/2010/03/anonymouses-anonymous.html -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 2, 12:44 pm, kstubs kst...@gmail.com wrote: Subject line correction: Instance methods and stopObserve Consider

[Proto-Scripty] Re: Future of Prototype.js

2011-09-30 Thread T.J. Crowder
person for revitalize this community... Andrew reads the list and of course anyone can send him an email directly, but sure, I'll drop him a note calling his attention to this thread. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You

[Proto-Scripty] Re: Future of Prototype.js

2011-09-27 Thread T.J. Crowder
and reliability of the actual vehicles, but at the stability and forecast longevity of the company behind them. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: Snap for scriptaculous sortable

2011-09-26 Thread T.J. Crowder
is completely and totally up to them. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email

[Proto-Scripty] Re: Snap for scriptaculous sortable

2011-09-26 Thread T.J. Crowder
to them. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous

[Proto-Scripty] Re: Future of Prototype.js

2011-09-25 Thread T.J. Crowder
with the website, determining and actioning Prototype 2, etc., etc. It's a big commitment. FWIW, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com [1] http://madrobby.github.com/scriptaculous/contribute/ [2] http://prototype-ui.com/ [3] http

[Proto-Scripty] Re: Future of Prototype.js

2011-09-23 Thread T.J. Crowder
the beginning of a renaissance for the library, a turning point of talent looking to help out. I wish I could be part of it. Best, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Sep 23, 12:34 pm, buda www...@pochta.ru wrote: It has long

[Proto-Scripty] Re: Future of Prototype.js

2011-09-23 Thread T.J. Crowder
://blog.niftysnippets.org/2009/09/simple-efficient-supercalls-in.html My main point being: jQuery is great, but its scope isn't as broad. In some ways that may be what you want with this ECMAScript5 stuff coming in -- or not. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder

[Proto-Scripty] Re: Can a Template Escape HTML entities in Fields?

2011-09-22 Thread T.J. Crowder
. I eventually went further and just made it possible for the template to call string methods if they didn't take args, but I don't have a linkable patch for that. [1] https://prototype.lighthouseapp.com/projects/8886/tickets/773-template-option-to-escape-html HTH, -- T.J. Crowder Independent

[Proto-Scripty] Re: Prototype and jQuery

2011-09-21 Thread T.J. Crowder
because $ resolves to the argument, so $(div).css(color, blue); // Turns text in all divs blue })(jQuery); // Here, $ = Prototype because noConflict() was called, so $$(div).invoke('setStyle', {color: green}); // Turns text in all divs green FWIW, -- T.J. Crowder Independent Software Engineer tj

[Proto-Scripty] Re: $('som_div') $('som_div div.child_of_some_div')

2011-09-20 Thread T.J. Crowder
will vary markedly depending on whether the browser supports `querySelectorAll`. FWIW, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Sep 20, 3:54 pm, kstubs kst...@gmail.com wrote: $('som_div') $('som_div div.child_of_some_div') I find

[Proto-Scripty] Re: $('person-example').serialize(true)

2011-09-12 Thread T.J. Crowder
with the serialized form data. Note that person-example must be the **id** (not name) of a form. HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: Event fire bubbling

2011-09-08 Thread T.J. Crowder
) {     var obj = {'index': this.index, 'event': e};         Event.fire(this.container, 'anychart:onEventMarkerClick', obj, true);     }, WFM: http://jsbin.com/ovudod Perhaps you can post some code that doesn't work? -- T.J. Crowder Independent Software Engineer tj / crowder software / com www

[Proto-Scripty] Re: Possible bug with arrays and classes

2011-09-01 Thread T.J. Crowder
: this.itterations = this.itterations + 1; ...and so it creates an own copy of the property on the instance, rather than incrementing the one on the prototype. (Subtle, that one, and I had to go check to be sure.) Happy coding, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www

[Proto-Scripty] Re: Prototype itself throws errors in IE7

2011-08-27 Thread T.J. Crowder
through `$` more than once is a harmless no-op. Details: http://www.prototypejs.org/learn/extensions HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] Re: Remove class

2011-08-26 Thread T.J. Crowder
not creating instances everytime and having to worry about garbage collection. Am I correct in thinking the above approach is less taxing on everything. Thanks again for the help in understanding GB collection. On Aug 24, 3:36 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, It's

[Proto-Scripty] Re: Remove class

2011-08-24 Thread T.J. Crowder
of the instance at all. If it hooks up handlers to events or something, those references will keep it in memory until you unhook it. [1] http://blog.niftysnippets.org/2008/02/closures-are-not-complicated.html FWIW, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software

[Proto-Scripty] Re: Prototype's evolution

2011-08-19 Thread T.J. Crowder
or to have so many references. It just kept...growing... :-) Sorry about that. Best, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group

[Proto-Scripty] Re: Bind order args

2011-08-11 Thread T.J. Crowder
] Closures are not complicated http://blog.niftysnippets.org/2008/02/closures-are-not-complicated.html [2] Variable shadowing http://en.wikipedia.org/wiki/Variable_shadowing [3] Enumerable#each http://api.prototypejs.org/language/Enumerable/prototype/each/ HTH, -- T.J. Crowder Independent Software

[Proto-Scripty] Re: Bind order args

2011-08-10 Thread T.J. Crowder
were passing it into `bind`). (I used `item` rather than `mtedit` as the function argument name to avoid confusion with the `mtedit` variable in the containing scope.) FWIW, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Aug 9, 7:43 pm

[Proto-Scripty] Re: Triggering an effect on 2 completely different HTMLdivElements simultaneously with 1 single click, how to ?

2011-08-06 Thread T.J. Crowder
] [1] http://madrobby.github.com/scriptaculous/effect-parallel/ [2] http://jsbin.com/ozifoy -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Aug 6, 12:34 pm, donalduck g...@kiloge.fr wrote: Greetings How can I trigger the blind effect on 2

[Proto-Scripty] Re: Eliminate POST vars before submit

2011-08-01 Thread T.J. Crowder
. Then they won't be sent. But 1,300 fields in a single form...that screams divide and conquer to me. Best, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Aug 1, 3:14 pm, Martín Marqués martin.marq...@gmail.com wrote: I have a large form with quite

[Proto-Scripty] Re: Eliminate POST vars before submit

2011-08-01 Thread T.J. Crowder
();             }         }         this.submit();     }     ); }); This works like a charm. The only thing missing is some validation for a select element (getElements() brings everything in the form, not only the selects), but havent found how to do that. 2011/8/1 T.J. Crowder t

[Proto-Scripty] Re: semi-colon complaint and other 1-7

2011-07-29 Thread T.J. Crowder
don't rely on ASI in your own code. [1] http://es5.github.com/#x7.9 -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Jul 28, 9:49 pm, kstubs kst...@gmail.com wrote: Thanks.  I started out reporting an issue on a semi-colon, but thought

[Proto-Scripty] Re: Form serializing and ignoring disabled fields

2011-07-29 Thread T.J. Crowder
description of this: http://www.w3.org/TR/html5/association-of-controls-and-forms.html#constructing-form-data-set So not just recommended, but dictated by the standard. HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Jul 29, 5:03 pm, kstubs

[Proto-Scripty] Re: Combo box?

2011-07-28 Thread T.J. Crowder
-market-share.aspx?qprid=2 -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Jul 27, 4:18 am, Tom Gregory tagreg...@gmail.com wrote: I should add, it comes in both Prototype and jQuery flavors, with forks for moo tools and others. (Sorry

[Proto-Scripty] Re: Combo box?

2011-07-28 Thread T.J. Crowder
-market-share.aspx?qprid=2 -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Jul 27, 4:18 am, Tom Gregory tagreg...@gmail.com wrote: I should add, it comes in both Prototype and jQuery flavors, with forks for moo tools and others. (Sorry

[Proto-Scripty] Re: semi-colon complaint and other 1-7

2011-07-28 Thread T.J. Crowder
Your title was semi-colon complaint but your example was that Eclipse complains about a comma. If Eclipse is really saying it thinks that comma should be a dot, then yes, it's an Eclipse issue. The comma operator[1] is perfectly valid there. [1] http://es5.github.com/#x11.14 HTH, -- T.J

[Proto-Scripty] Re: IE 9 issues with Insertion

2011-07-28 Thread T.J. Crowder
What do you figure the odds are that people are going to need to know more about your code than that? Like, you know, what your page's HTML looks like, what those strings are you're inserting. Trivial points, really... ;-) -- T.J. Crowder Independent Software Engineer tj / crowder software / com

[Proto-Scripty] Re: ajax.updater oncomplete anonymous function variable argument

2011-07-16 Thread T.J. Crowder
/prototype/curry/ HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Jul 15, 5:26 pm, Heath Jordan hjor...@cascadeauto.com wrote: I am using an anonymous function so I c an pass args.  I need the arguments to be variable and when

[Proto-Scripty] Re: Modal windows

2011-07-12 Thread T.J. Crowder
Hi, There are several on http://scripteka.com/. Click the window or modal tags in the tag cloud at the bottom to filter the list on the left. Best, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Jul 12, 8:53 am, vasileVas radupacur

[Proto-Scripty] Re: Object from string

2011-07-10 Thread T.J. Crowder
/myth-of-arrays.html FWIW, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype

[Proto-Scripty] Re: li problem in IE8

2011-07-07 Thread T.J. Crowder
something that can't have an `li` inside it. HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send

[Proto-Scripty] Re: What's your favorite error status code?

2011-07-07 Thread T.J. Crowder
the browser and server. The correct response to bum data from the user is a 200 with an application-logic-level success/error flag. I wouldn't conflate the transport and business logic layer errors. (The 409 / Ajax thing *is* funny.) FWIW... -- T.J. Crowder Independent Software Engineer tj / crowder

[Proto-Scripty] Re: What's your favorite error status code?

2011-07-07 Thread T.J. Crowder
On Jul 7, 1:27 pm, Walter Lee Davis wa...@wdstudio.com wrote: On Jul 7, 2011, at 8:21 AM, T.J. Crowder wrote: To my mind, HTTP response codes aren't for application logic signalling. They're for signalling between the browser and server. The correct response to bum data from the user

[Proto-Scripty] Re: managing zindex

2011-07-04 Thread T.J. Crowder
the advantage of being wonderfully simple. And you could always put in a check for when you find your `nextZIndex` value is at about 2,147,483,000 or so and do the expensive (not really at that point, in the scheme of things) operation of redoing the numbering on all of your relevant elements. FWIW, -- T.J

[Proto-Scripty] Re: managing zindex

2011-07-04 Thread T.J. Crowder
suspicion] or a 64-bit int.) But IE, Firefox, and Opera all became unhappy in varying ways. -- T.J. :-) On Jul 4, 10:41 pm, T.J. Crowder t...@crowdersoftware.com wrote: Hi, I was playing with something a couple of years back that was going to have a bunch of little boxes, any of which needed

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

2011-07-01 Thread T.J. Crowder
5109 jQuery.find = Sizzle; But again: I have no idea if that's all that's required, just that the result worked in our `up` case finding `article`. It probably isn't that easy. Perhaps post a new thread asking about an update with just the latest Sizzle. Best, -- T.J. Crowder Independent

[Proto-Scripty] Re: Element.extend returning null after in a form (in chrome)

2011-07-01 Thread T.J. Crowder
Hi, It would help to quote some code, otherwise people are just guessing at what might be going wrong. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Jul 1, 8:17 am, Thexder jpree...@gmail.com wrote: I pass in a form id, it has the form

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

2011-06-30 Thread T.J. Crowder
, it had its own selector engine), it works: http://jsbin.com/osufay/3 So it was a bug in Sizzle that's been fixed. The fix would be to upgrade the Sizzle bundled in Prototype to the latest version. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com

[Proto-Scripty] Re: event observe for image problem on IE

2011-06-29 Thread T.J. Crowder
= src; ...just in case the image is already in cache. HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Jun 28, 4:06 pm, edwingt edwin.al...@gmail.com wrote: Hello I'm trying to do an event observe work on IE, it works good on FF

[Proto-Scripty] Re: event observe for image problem on IE

2011-06-29 Thread T.J. Crowder
On Jun 29, 9:33 am, Johan Arensman johanm...@gmail.com wrote: TJ! How on earth can you do that so fast!? Do you have this reply as a template or something?? LOL I took typing in high school. Some of the best advice my mother ever gave me. :-) -- You received this message because you are

[Proto-Scripty] Re: IE8 problem

2011-06-23 Thread T.J. Crowder
] http://www.w3.org/TR/html401/struct/global.html#adef-class HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Jun 22, 2:33 pm, KingKong99 k0818069...@gmail.com wrote: I have very simple code as below: html head script src

[Proto-Scripty] Re: Registered events and removed DOM objects

2011-06-16 Thread T.J. Crowder
, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous@googlegroups.com

[Proto-Scripty] Re: form.serialize not working in IE8

2011-06-15 Thread T.J. Crowder
than `id`s)? -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to prototype-scriptaculous

[Proto-Scripty] Re: form.serialize not working in IE8

2011-06-15 Thread T.J. Crowder
-documents.html#dom-innerhtml -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Jun 16, 12:07 am, Don donlope...@gmail.com wrote: On Jun 15, 2:25 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, On Jun 14, 5:40 pm, Don donlope

[Proto-Scripty] Re: form.serialize not working in IE8

2011-06-15 Thread T.J. Crowder
And just because so many things about forms are special in IE, just a quick note that this is not specific to forms, the same thing happens to other content within the area being cleared: http://jsbin.com/elihi5/6 -- T.J. :-) On Jun 16, 4:16 am, T.J. Crowder t...@crowdersoftware.com wrote: I

[Proto-Scripty] Re: Ajax.Request not working with HTTPS and self signed certificates

2011-06-12 Thread T.J. Crowder
object instead. But again, only on IE. Note that using CORS requires that you add support for it to the server, because you have to handle a request from the browser asking if it's okay to send the cross-origin request. HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www

[Proto-Scripty] Re: Ajax.Request not working with HTTPS and self signed certificates

2011-06-12 Thread T.J. Crowder
 self signed certificate. Any idea? And yes, I should try with latest version of prototype.js. Thanks On Jun 12, 3:05 pm, T.J. Crowder t...@crowdersoftware.com wrote: Addendum: I am using prototype.js version 1.5. Why? It's been out of date for more than three and a half years

[Proto-Scripty] Re: problem in Event.observe()

2011-06-04 Thread T.J. Crowder
`, without calling `test`: Event.observe(window,'load',test); // ^--- No () here 我希望这有助于 ;-) -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Jun 3, 10:22 am, 坤 操 madfro...@gmail.com wrote: function test

  1   2   3   4   5   6   7   8   9   10   >