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
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
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
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
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
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
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
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
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
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
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
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
,
--
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
@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
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
, 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
/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
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.
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
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,
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
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
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
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
/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
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
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
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;
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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.
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
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,
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;
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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) {
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
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
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
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
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
101 - 180 of 180 matches
Mail list logo