[Proto-Scripty] I need to get what class is creating in initialize method

2012-01-05 Thread buda
Is there a way to detect is this is an instance of a Class in initialize method? -- 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. To unsubscribe from this

[Proto-Scripty] Re: I need to get what class is creating in initialize method

2012-01-05 Thread buda
I also need in my class method to have an ability to create ansector class from the current How I could achieve the reference to the class within it mwthod? -- 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] I need to initialize base class an do not bothe user to call $super in subclass

2012-01-03 Thread buda
How to setup base class so that subclasses don't neet to call $super in their initialize method (because they might skip this call or call with wrong parameters) ? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this

[Proto-Scripty] Re: I need to initialize base class an do not bothe user to call $super in subclass

2012-01-03 Thread buda
at this moment.   } }); Ofcourse the naming can be different but it's just an idea. On Tue, Jan 3, 2012 at 3:25 PM, buda www...@pochta.ru wrote: How to setup base class so that subclasses don't neet to call $super in their initialize method (because they might skip this call

[Proto-Scripty] Re: Recode jQuery expression in the prototype way

2011-12-15 Thread buda
http://webdeveloperplus.com/jquery/create-a-dynamic-scrolling-content-box-using-ajax/ function _onScroll(e) { var el = e.element(); if (el.scrollTop = (el.scrollHeight - (el.clientHeight + 50))) { if (dataContextLength ! == el.childElements().length) {

[Proto-Scripty] Re: Recode jQuery expression in the prototype way

2011-12-15 Thread buda
http://webdeveloperplus.com/jquery/create-a-dynamic-scrolling-content-box-using-ajax/ function onScroll(e) { var el = e.element(); if (el.scrollTop = (el.scrollHeight - (el.clientHeight + 50))) { if (dataContextLength !== el.childElements().length) { onDataContextChanged(); } } } -- You

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

2011-11-28 Thread buda
Who knows when is early code ver.2.0 of the library will appear? -- 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. To unsubscribe from this group, send

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

2011-11-28 Thread buda
But it's only new syntax sugar - not framework like Prototype with many features!! On 28 ноя, 18:48, Pablo Aravena paraven...@gmail.com wrote: Hi buda I think there will be no new releases of prototype in the near future. That is sad, but some months ago I began looking at CoffeScript and I

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

2011-11-28 Thread buda
I'm vary sad - I have to migarte on jQuery ((( On 28 ноя, 21:57, buda www...@pochta.ru wrote: But it's only new syntax sugar - not framework like Prototype with many features!! On 28 ноя, 18:48, Pablo Aravena paraven...@gmail.com wrote: Hi buda I think there will be no new

[Proto-Scripty] Prototype's Event system need to be fixed

2011-10-24 Thread buda
1) Since IE9 IE has addEventListener - so it has to listen events in standart W3C way - so it has capture events I use capturing very often - so I forced, instead using on or observe, use addEventListener 2) In the library's code there are planty tones of check - 'if (element.addEventListener)' I

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

2011-10-22 Thread buda
Hi T.J.! Thanks for your help! This code will be sheared and there is the risk that people have an ability involuntarily to change privates - so I need to protect it -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To view this

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

2011-10-22 Thread buda
Thanks On 18 окт, 19:43, Andy andreas.schuhmache...@googlemail.com wrote: On 13 Okt., 18:05, buda www...@pochta.ru wrote: I need to create class which is inhereted from enumerable module, sortable class and observable class Is it possible in one operation call? Just use Object.extend

[Proto-Scripty] Future of Prototyp.js

2011-10-22 Thread buda
The rapid development of browser features they caught up and there are fewer and fewer differences between them. A year later, they practically do not remain. IE6 is already innonexistence. So I think that the new version should be completely rewritten, freed from the burden of supporting

[Proto-Scripty] Object.isArray should be changed

2011-10-22 Thread buda
I've noticed that library's isArray not worked properly sometimes. I offer new version of it isArray: function(obj) { return (typeof(obj) === 'object') !Object.isUndefined(obj.forEach); } -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

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

2011-10-21 Thread buda
Hi! Thanks for response. `_items` - it's typo ;) of course there mightbe - return _privates[this. internalId].items.slice(0); I agree with you about error in destroy - not deleting an instance item in _privates array. About not using such pattern - I agree if only few methods need to access

[Proto-Scripty] Re: An idea from jQuery which might be borrowed to Prototype

2011-10-20 Thread buda
I've solved - here is working example http://jsfiddle.net/DybH8/19/ -- 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://groups.google.com/d/msg/prototype-scriptaculous/-/iMik5BYYA7UJ.

[Proto-Scripty] Re: An idea from jQuery which might be borrowed to Prototype

2011-10-20 Thread buda
I've solved - here is working example http://jsfiddle.net/DybH8/21/ -- 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://groups.google.com/d/msg/prototype-scriptaculous/-/QR-HUdqLIMQJ. To

[Proto-Scripty] Re: An idea from jQuery which might be borrowed to Prototype

2011-10-20 Thread buda
I've solved - here is working example http://jsfiddle.net/DybH8/22/ -- 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://groups.google.com/d/msg/prototype-scriptaculous/-/RxVdUDrLqyAJ. To

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

2011-10-19 Thread buda
Hi Andrew! is it possible to realize extending of the class by in a way that at the end of this process would be called the initialization method of extension? So I would be extend any class with such extensions with no need to create intermediate classes. Often in such extension I need to add

[Proto-Scripty] An idea from jQuery which might be borrowed to Prototype

2011-10-19 Thread buda
Hi! Working on porting Microsoft DataLink plugin to Prototype i began learn jQuery and found one interesting thing; instead of workin whith JS objects in the way of Object.method(obj) they use wrap this object in so called jQuery object which already has all needed method and propeties to work

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

2011-10-19 Thread buda
T.J. here is the example of using instange private vaiables store in use - http://jsfiddle.net/QW8vM/13/ -- 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

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

2011-10-19 Thread buda
T.J. here is the example of using instange private vaiables store in use - http://jsfiddle.net/QW8vM/16/ -- 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

[Proto-Scripty] Re: An idea from jQuery which might be borrowed to Prototype

2011-10-19 Thread buda
So, I need the idea to have an ability to any object use the storage var a = { name: 'John', last: 'Pupkin' } add to 'a' an 'id' field - corrupt 'a' as object so I need a way to identify a to have an ability to use the storage Any idea? -- You received this message because you are

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

2011-10-19 Thread buda
T.J. here is the example of using instange private vaiables store in use - http://jsfiddle.net/QW8vM/17/ -- 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

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

2011-10-19 Thread buda
T.J. here is the example of using instance private vaiables store in use - http://jsfiddle.net/QW8vM/17/ -- 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

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

2011-10-18 Thread buda
it's general example for show the problem with Object.clone :) Usually I use anothe technique: var a = Class.create((function(){. var instancePrivates = []; function initialize(){ var internalId; instancePrivates.push({}); internalId = --instancePrivates;

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

2011-10-18 Thread buda
in last example of course this.internalId = --instancePrivates; instead of var internalId; internalId = --instancePrivates; -- 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

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

2011-10-18 Thread buda
that sample was to demonstarte Object.clone bug :) Usually I us to var a = Class.create((function() { var _privates = []; function initialize() { _privates.push({}); this.internalId = _privates.length-1; _privates[this.internalId].items = []; -- here the instances

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

2011-10-18 Thread buda
T.J. what the reasons not to make them Object.prtototype methods? On 18 окт, 14:21, T.J. Crowder t...@crowdersoftware.com wrote: On Oct 18, 8:30 am, buda www...@pochta.ru wrote: I try var o = {}; o.name = 'propertyName'; alert(o.keys); -- undefined why? but in debugger I see

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

2011-10-18 Thread buda
I use destroy method on the class and clean everythig in it On 18 окт, 14:17, T.J. Crowder t...@crowdersoftware.com wrote: 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

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

2011-10-17 Thread buda
it's ok T.J. - I'll try to write a test on JS Bin and write link here to reproduce the bug On 17 окт, 12:33, T.J. Crowder t...@crowdersoftware.com wrote: 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

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

2011-10-17 Thread buda
Here is a sample from my code http://jsfiddle.net/QW8vM/9/ On 17 окт, 12:33, T.J. Crowder t...@crowdersoftware.com wrote: 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.

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

2011-10-17 Thread buda
sorry - this is a write link http://jsfiddle.net/QW8vM/10/ -- 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://groups.google.com/d/msg/prototype-scriptaculous/-/3QhVzBt2bpUJ. To post to

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

2011-10-17 Thread buda
here the code http://jsfiddle.net/QW8vM/10/ -- 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://groups.google.com/d/msg/prototype-scriptaculous/-/NzCfXch19G8J. To post to this group,

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

2011-10-16 Thread buda
I have a class var a = Class.Create({ function initialize() { var _items = []; Object.defineProperties(this, { 'items': { get: function () { return Object.clone(_items); }, enumerable: true } }); ... } function indexOf(item) { return

[Proto-Scripty] Is there realization of deferred object on prototype.js?

2011-10-15 Thread buda
Many frameworks have such object. Is there any realization of it? Will it be implemented in future releases? -- 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

[Proto-Scripty] Is it posible multiple Inheritance?

2011-10-13 Thread buda
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 because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to this group, send email to

[Proto-Scripty] Extending Templates functionality

2011-10-05 Thread buda
How to extend Templates to add myself selectors and command Like Microsoft jQuery Template, to support operations not only on one object but on a list subobjects and so on? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to

[Proto-Scripty] And why not rename the Template for $ T?

2011-10-05 Thread buda
This reduction in short and not yet occupied. -- 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. To unsubscribe from this group, send email to

[Proto-Scripty] Be sure to buy a book Protorype.js and Sript.aculo.us you fall off 90% of questions.

2011-10-01 Thread buda
Since I bought it - it became my reference book, not only on Prototype.js but on JavaScript. I periodically reread it each time discovering new nuances. The more I read it - the more I fall in love with Prototype.js. What an elegant architectural solutions! What is non-trivial syntax! JQuery,

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

2011-09-24 Thread buda
I also nee optional parameter in 'observe' and 'on' methods to capture events On 23 сен, 21:27, buda www...@pochta.ru wrote: Thanks for the detailed post. I myself have been using Prototype.js from the very beginning and its ideology is close to me. I'm anxious for the fate of the library

[Proto-Scripty] Future of Prototype.js

2011-09-23 Thread buda
It has long heard nothing about plans for the future. Browsers are evolving, and many library functions are duplicate the functions of JavaScript. Already implemented in all browsers support ECMAScript 5, but the library is not reflected. I would like to be able to not pull in hundreds of

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

2011-09-23 Thread buda
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 heard nothing about plans for the future. Browsers are evolving, and many library functions

[Proto-Scripty] Will Ajax support ontimeot event on XMLHttpRequest in IE8?

2011-08-18 Thread buda
IE8 supports an even ontimeout on XMLHttpRequest How can I manually add support To Ajax object not waiting new version of prototype.js? -- 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

[Proto-Scripty] Re: Memory leak in Prototype 1.7

2011-06-14 Thread buda
Thanks! On 14 июн, 12:31, KIR kirill.maxi...@gmail.com wrote: On Jun 14, 7:08 am, buda www...@pochta.ru wrote: How do you find memory leak in Chrome? I acnt find any tool except memory graph!   Using a memory profiler. Create a memory dump (there is an icon with eye), do actions which

[Proto-Scripty] Starnge order of observing of events dom:loaded in IE8

2011-06-14 Thread buda
I've registered on a page scripts html body . body script src=prototype.js type=\text/javascript\script script src=global.js type=\text/javascript\script script src=page1.js type=\text/javascript\script /html in global.js I've registered an event observer on event dom:loaded

[Proto-Scripty] Re: Starnge order of observing of events dom:loaded in IE8

2011-06-14 Thread buda
I'm sad - I've added scripts at the header, but without the rezult ( On 15 июн, 01:01, buda www...@pochta.ru wrote: there were typing mistakes This is shoud be typed like this   script src=prototype.js type=text/javascriptscript   script src=global.js type=text/javascriptscript   script src

[Proto-Scripty] Re: Memory leak in Prototype 1.7

2011-06-13 Thread buda
How do you find memory leak in Chrome? I acnt find any tool except memory graph! On 13 июн, 18:02, KIR kirill.maxi...@gmail.com wrote: Hello,   I've found (and fixed) a memory leak in Prototype 1.7. Some details are here:  http://kirblog.idetalk.com/2011/06/prototype-17-memory-leak.html  

[Proto-Scripty] DOM tree modification event in prototype.js

2011-05-30 Thread buda
JQuery has such event Could I have the same functioanility if I wrap all DOM-modifies method with firing such event after modification and if I use the only this methods to modify DOM? Is it right way? -- You received this message because you are subscribed to the Google Groups Prototype

[Proto-Scripty] The method of the temporary opening and closing access to the private variable.

2011-05-29 Thread buda
I've found an article in russian A modular approach to JavaScript. (http://habrahabr.ru/blogs/javascript/117069/) where the autor explains one interesting idea how temporary to open/ close acces to private variable. This trick is based on that if private variable is not simple tipy - it may be

[Proto-Scripty] Prototype.js: is it possible to extend Object with module which is not the reference?

2011-05-28 Thread buda
I use to extend class with static members but in a resul I extend clsses every time with the same module - but I neet the very time the new copy of it I need that every class could trace theirs instances var module = (function(){ var instances = [], pubs = {}; pubs.addInstance = addInstance;

[Proto-Scripty] Re: Prototype.js: is it possible to extend Object with module which is not the reference?

2011-05-28 Thread buda
I missed to write at the end of module definition write string: return pubs; On 28 май, 20:09, buda www...@pochta.ru wrote: I use to extend class with static members but in a resul I extend clsses every time with the same module - but I neet the very time the new copy of it I need that every

[Proto-Scripty] Re: Prototype.js: is it possible to extend Object with module which is not the reference?

2011-05-28 Thread buda
I'm sorry - I've found the solution: function extendWithInstances(theClass){ Object.exctend(theClass, function(){ var instances = [], pubs = {}; .. }()); } .. extendWithInstances(Class1); extendWithInstances(Class2); On 28 май, 20:11, buda www...@pochta.ru wrote: I missed

[Proto-Scripty] Re: Class with private members pattern

2011-05-27 Thread buda
Here is an example http://jsbin.com/eyapo3/2/edit On 26 май, 23:27, buda www...@pochta.ru wrote: One thing is stay for me unconvinient is  calling private functions in public functions. It's nessety to call them with .bind(this)(...) function publicFunc1(){ ...  _private_prop1 = 45

[Proto-Scripty] Re: Class with private members pattern

2011-05-27 Thread buda
/private-methods-in-javascript.html [5]http://blog.niftysnippets.org/2010/03/anonymouses-anonymous.html HTH, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On May 26, 9:27 pm, buda www...@pochta.ru wrote: One thing is stay for me

[Proto-Scripty] Is there a way to autoinherited static member from superclass

2011-05-27 Thread buda
I use to do var Class1 = Class.create({ ... }); Object.extend(Class1, { staticProp: '', staticMeth: function(){...} }) var Class2 = Class.create(Class1, { }); Object.extend(Class2, { staticProp: '', staticMeth: function(){...} }) Is there a way to inheritate staticProp and

[Proto-Scripty] Re: Is there a way to autoinherited static member from superclass

2011-05-27 Thread buda
software / com On May 27, 1:25 pm, buda www...@pochta.ru wrote: I use to do var Class1 = Class.create({ ... }); Object.extend(Class1, {  staticProp: '',   staticMeth: function(){...} }) var Class2 = Class.create(Class1, { }); Object.extend(Class2

[Proto-Scripty] Class with private members pattern

2011-05-26 Thread buda
After reading a good book I found for myself a mthod to have private members in Class Here is the pattern var myClass = Class.create((function(){ var _private_prop1, _private_prop2, public_prop; function _privateFunc1(){ ... } function _privateFunc2(){ ... } function

[Proto-Scripty] Re: Class with private members pattern

2011-05-26 Thread buda
One thing is stay for me unconvinient is calling private functions in public functions. It's nessety to call them with .bind(this)(...) function publicFunc1(){ ... _private_prop1 = 45; _privateFunc1.bind(this)(); ... } May be you have suggestion on this -- You received this message because

[Proto-Scripty] Class.create and prototype and instance methods

2011-05-24 Thread buda
Why Class.create produces only instance methods but not prototype ones? -- 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. To unsubscribe from this group,

[Proto-Scripty] Re: Class.create and prototype and instance methods

2011-05-24 Thread buda
static - means defined in object's prototype? but what difference between foo, which decleared in prototype, and so called static method bar? which is also decleared in prototype? On 24 май, 16:55, T.J. Crowder t...@crowdersoftware.com wrote: On May 24, 2:39 pm, buda www...@pochta.ru wrote

[Proto-Scripty] Is there a plan to add video module to script.aculo.us?

2011-04-23 Thread buda
HTML5 supports video and there is a need to have support for it like a sound module -- 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. To unsubscribe from

[Proto-Scripty] will be in prototype function queue mechanism like deffered objects in jQuery?

2011-02-05 Thread buda
Now its an actual task to manage some async calls and do somthing after executing some calls and so on... -- 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: Dilemma: singleton or ordinal object?

2010-12-25 Thread buda
, I'm thinking), -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Dec 24, 2:01 am, buda www...@pochta.ru wrote: Usually we have some fields in a form like date-field. I have a dilemma: in such languages as C# I would create

[Proto-Scripty] Re: Dilemma: singleton or ordinal object?

2010-12-25 Thread buda
/anonymouses-anonymous.html -- T.J. :-) On Dec 25, 8:26 pm, buda www...@pochta.ru wrote: why do not you like the anonymous function? On 25 дек, 00:42, T.J. Crowder t...@crowdersoftware.com wrote: Hi, I'm sorry to say that I really can't tell what you're asking. I mean, singletons

[Proto-Scripty] Dilemma: singleton or ordinal object?

2010-12-23 Thread buda
Usually we have some fields in a form like date-field. I have a dilemma: in such languages as C# I would create singleton and use one class per many date-fields to display calendar. I dont know is it possible (how to create singleton class and how create ordinary class with static methods and

[Proto-Scripty] Re: Do somthing only after two Ajax calls return results

2010-11-22 Thread buda
, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Nov 21, 8:40 pm, buda www...@pochta.ru wrote: I have two calls run asyncronously I need to wait when they both is comleted and only then do somthing Two - is an example

[Proto-Scripty] Re: Do somthing only after two Ajax calls return results

2010-11-22 Thread buda
@googlegroups.com Subject: Re: [Proto-Scripty] Do somthing only after two Ajax calls return results Hi Buda, Having had this issue, and seen other frameworks sorting this out, the quickest and easiest way I have found is to have to global variables (flags) in the page, one for each of the Ajax

[Proto-Scripty] Do somthing only after two Ajax calls return results

2010-11-21 Thread buda
I have two calls run asyncronously I need to wait when they both is comleted and only then do somthing Two - is an example - they may be N-calls :) What is the right method to do it? Is theere an object somthing AsyncWaitFor(AjaxCall1...AjaxCallN)? -- You received this message because you are

[Proto-Scripty] Re: How should I model this if extending the DOM is bad?

2010-11-06 Thread buda
Keep reference to the object in storage of a paragraph, video and etc On 4 ноя, 23:09, Luke kickingje...@gmail.com wrote: Hi, sorry for the non-descriptive topic, I couldn't think of anything better. However, I'm currently working on a project where you can create simple webpages by adding

[Proto-Scripty] bug in 1.7_rc3 Event.isLeftClick in IE8?

2010-11-06 Thread buda
in dblckick observer i try to detect which button was clicked in debugger I can see that event.button = 0 but prototype steps in if (IE_LEGACY_EVENT_SYSTEM) branch is this a bug? -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To

[Proto-Scripty] Re: bug in 1.7_rc3 Event.isLeftClick in IE8?

2010-11-06 Thread buda
so in IE8 this code also does not work - alert is not appearing when clickin with left button On 7 ноя, 00:06, buda www...@pochta.ru wrote: but I started this because of in Mozilla dblclick fires on right button dblclick but I dont want to execute code if not Event.isLeftClick document.on

[Proto-Scripty] Will there be a book on the new version and when?

2010-10-31 Thread buda
Will there be a book on the new version and when? -- 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-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to

[Proto-Scripty] Re: Expando or data- like attributes?

2010-10-21 Thread buda
not so bad practice? On Oct 20, 1:48špm, buda www...@pochta.ru wrote: T.J., šthanks for an exhaustive explanation! But, as I understud, expando properties == custom attributes and its not good, but I see expando on extended elements in prototype! Will this to migrate to storage

[Proto-Scripty] Re: Expando or data- like attributes?

2010-10-20 Thread buda
was of some use. :-) Happy coding, -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 20, 4:34 am, buda www...@pochta.ru wrote: maybe I'm confusing javascript properties to the attributes? how do they compare? On 20 окт, 02

[Proto-Scripty] Expando or data- like attributes?

2010-10-19 Thread buda
I'm confused at all. On the one hand HTML declares the existence of the elements expando- attributes. On the other hand HTML5 says that all illegal attributes must begin with data-. What should I do? continue to use espando or a new style of naming attributes with the data-? Prototype.js uses

[Proto-Scripty] Re: Expando or data- like attributes?

2010-10-19 Thread buda
Or should I use .storage object? But in this case I couldnt do search like $$('p[myAttr=foo]') On 20 окт, 01:59, buda www...@pochta.ru wrote: I'm confused at all. On the one hand HTML declares the existence of the elements expando- attributes. On the other hand HTML5 says that all illegal

[Proto-Scripty] Re: Expando or data- like attributes?

2010-10-19 Thread buda
maybe I'm confusing javascript properties to the attributes? how do they compare? On 20 окт, 02:03, buda www...@pochta.ru wrote: Or should I use .storage object? But in this case I couldnt do search like $$('p[myAttr=foo]') On 20 окт, 01:59, buda www...@pochta.ru wrote: I'm confused

[Proto-Scripty] Re: Microsoft announced new useful plugins on JQuery - what about prototype?

2010-10-06 Thread buda
forget about a dozen more). Use what works for you, and let the competition between the various kits give rise to solutions you can use. Or write some extensions to Prototype to do the things you need. Walter On Oct 5, 2010, at 7:31 PM, buda wrote: But many developers needs

[Proto-Scripty] Microsoft announced new useful plugins on JQuery - what about prototype?

2010-10-05 Thread buda
http://weblogs.asp.net/scottgu/archive/2010/10/04/jquery-templates-data-link-and-globalization-accepted-as-official-jquery-plugins.aspx This is very useful - this must be in prototype too! -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us

[Proto-Scripty] Re: Microsoft announced new useful plugins on JQuery - what about prototype?

2010-10-05 Thread buda
jQuery is developing very quickly. Unfortunately it must be noted that this development forced to move to jQuery although I prefer the prototype. On 5 окт, 17:14, buda www...@pochta.ru wrote: http://weblogs.asp.net/scottgu/archive/2010/10/04/jquery-templates-da... This is very useful

[Proto-Scripty] Re: Microsoft announced new useful plugins on JQuery - what about prototype?

2010-10-05 Thread buda
http://blog.jquery.com/2010/10/04/new-official-jquery-plugins-provide-templating-data-linking-and-globalization/ On 5 окт, 17:14, buda www...@pochta.ru wrote: http://weblogs.asp.net/scottgu/archive/2010/10/04/jquery-templates-da... This is very useful - this must be in prototype too! -- You

[Proto-Scripty] Re: Microsoft announced new useful plugins on JQuery - what about prototype?

2010-10-05 Thread buda
coming on the heels of Microsoft's recently re-upping their commitment to jQuery is significant. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 5, 3:52 pm, buda www...@pochta.ru wrote: jQuery is developing very quickly

[Proto-Scripty] Re: Microsoft announced new useful plugins on JQuery - what about prototype?

2010-10-05 Thread buda
their commitment to jQuery is significant. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Oct 5, 3:52 pm, buda www...@pochta.ru wrote: jQuery is developing very quickly. Unfortunately it must be noted that this development forced

[Proto-Scripty] Re: pMask: a tool to mask input data

2010-03-09 Thread buda
good work! thanks On 6 мар, 15:06, green greenlaw...@gmail.com wrote: Hi, I have port Fabio Zendhi Nagao's iMaskhttp://zendold.lojcomm.com.br/imask/tool to prototype with changes (or, you can say, enhancements). You can download it athttp://github.com/greenlaw110/pMask/ Thx, Green --

[Proto-Scripty] Re: Why element never receives an event?

2010-02-03 Thread buda
thats it, but if form1 fires an event 'form:updated' - input element never receives that event, but I need it On Feb 3, 3:05 pm, ColinFine colin.f...@pace.com wrote: On Feb 2, 3:29 pm, buda www...@pochta.ru wrote: I need to receive message fired by form in forms element If you mean that you

[Proto-Scripty] Re: Why element never receives an event?

2010-02-03 Thread buda
Now I know that an events bubble up, but I need form elements receive an event fiered by a form - so I ask for a help here On Feb 3, 3:15 pm, Mona Remlawi mona.reml...@gmail.com wrote: hello buda, as T.J. Crowder mentioned above, firing an event means that the event is going to fire *up

[Proto-Scripty] Re: Why element never receives an event?

2010-02-03 Thread buda
that isn't tied to the DOM's concept of how they should work. -- T.J. On Feb 3, 1:22 pm, buda www...@pochta.ru wrote: Now I know that an events bubble up, but I need form elements receive an event fiered by a form - so I ask for a help here On Feb 3, 3:15 pm, Mona Remlawi mona.reml

[Proto-Scripty] Re: Why element never receives an event?

2010-02-02 Thread buda
I need to receive message fired by form in forms element On Feb 2, 3:55 pm, ColinFine colin.f...@pace.com wrote: On Feb 1, 11:26 am, buda www...@pochta.ru wrote: how to register a handler for processing the message form its elements in right way? If you want to trigger the event

[Proto-Scripty] Why element never receives an event?

2010-02-01 Thread buda
On the form form1 is an element MyElement I attach to MyElement event handler MyElement.observe ( 'form: updated', function (e ){...}); then in the code generating the event form1.fire ( 'form: updated'); but the handler is not called for MyElement Why? -- You received this message because

[Proto-Scripty] Re: Why element never receives an event?

2010-02-01 Thread buda
could see it; but not the other way around. HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / comwww.crowdersoftware.com On Feb 1, 11:02 am, buda www...@pochta.ru wrote: On the form form1 is an element MyElement I attach to MyElement event handler

[Proto-Scripty] how to check is the function = Prototype.emptyFunction ?

2010-02-01 Thread buda
var Obj = {}; Obj.meth = Prototype.emptyFunction; if (Obj.meth !== Prototype.emptyFunction) { alert('Not equal'); } why alert show everytime? -- 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

[Proto-Scripty] Re: how to check is the function = Prototype.emptyFunction ?

2010-02-01 Thread buda
the question is: how to check if a function is empty or have any code On Feb 1, 5:18 pm, Richard Quadling rquadl...@googlemail.com wrote: On 1 February 2010 13:02, buda www...@pochta.ru wrote: var Obj = {}; Obj.meth = Prototype.emptyFunction; if (Obj.meth !== Prototype.emptyFunction

[Proto-Scripty] Re: how to check is the function = Prototype.emptyFunction ?

2010-02-01 Thread buda
: This is getting into dirty territory (or at least I'd feel so) but: var x = function(){}; var y = function(){ alert(foo); } x + ; function () { } y + ; function () { alert(foo); } Best, Alex On Mon, Feb 1, 2010 at 10:29 AM, buda www...@pochta.ru wrote: the question is: how to check

[Proto-Scripty] Re: how to check is the function = Prototype.emptyFunction ?

2010-02-01 Thread buda
Richard, thanks it works On Feb 1, 6:12 pm, Richard Quadling rquadl...@googlemail.com wrote: On 1 February 2010 15:44, buda www...@pochta.ru wrote: it was simple sheme and it wasnt the stright code it must be like this var Obj = {};  ... Obj.meth = Prototype.emptyFunction

[Proto-Scripty] Re: Couldnot solve the problem with call class method with parameters

2010-01-29 Thread buda
x.method2 with a = 1, b = 2. Can you give a complete example[1] demonstrating the problem? [1]http://proto-scripty.wikidot.com/self-contained-test-page -- T.J. Crowder Independent Software Consultant tj / crowder software / comwww.crowdersoftware.com On Jan 27, 8:00 pm, buda www

[Proto-Scripty] Couldnot solve the problem with call class method with parameters

2010-01-27 Thread buda
I have a class var TObj = Class.create({ initialize: function() {... }, metod1: function() { this.method2(1,2); --- cal method2 with parameters }, method2: function(a, b){ var aa = a; -- a b is undefined! } }); why in method2

[Proto-Scripty] attach one observer for many events to an element

2009-12-17 Thread buda
What is the best way to attach one observer to many events for examle: I need to attach an observer to input element to validate input value for 'change' and 'paste' events -- You received this message because you are subscribed to the Google Groups Prototype script.aculo.us group. To post to

[Proto-Scripty] Re: attach one observer for many events to an element

2009-12-17 Thread buda
('change', boundHandler)                 .observe('paste', boundHandler);         }         return {hookUsUp: hookUsUp};     })()); HTH, -- T.J. Crowder Independent Software Consultant tj / crowder software / comwww.crowdersoftware.com On Dec 17, 2:03 pm, buda www...@pochta.ru wrote

[Proto-Scripty] How to detect who is click button - user or script like this btn.click()?

2009-11-13 Thread buda
I need to distinguish between inside the handler-pressed the button is pressed by user or by code like this: btnclick (btn). In the event no difference! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Prototype

  1   2   >