similar to: [prototype] private members

Displaying 20 results from an estimated 100000 matches similar to: "[prototype] private members"

2008 Jan 20
1
Prototype.js with jsDoc-toolkit?
Is anyone else using jsdoc-toolkit with Prototype.js? It works great on plain ''ol JavaScript, but seems to have some problems using Prototype 1.6-style classes and inheritance. For example, if I do something like: <code> /** * @class Foo * @extends Bar */ Foo = Class.create(Bar, { /** * @constructor */ initialize : function() { /** * An important number
2005 Aug 22
1
Docs for prototype.js
I just found this (by way of comp.lang.javascript), and article on the use of and reference for prototype.js. http://www.sergiopereira.com/articles/prototype.js.html I haven''t checked the details, but it looks pretty good. The author points out that it is un-official. Sam, if you''re reading this, is there a chance of giving it an official blessing? Michael -- Michael
2005 Sep 05
3
Prototype 1.4.0_pre4 + script.aculo.us 1.5_pre4?
Hello, I''m maintaining the PEAR-installable PHP packages for both script.aculo.us and Prototype on Pearified.com. I saw the 1.5_pre4 release of script.aculo.us yesterday, and would like to release the update on Pearified.com, but don''t want to release hacked versions of Prototype. I saw that Prototype was updated to 1.4.0_pre4 yesterday as well ... Is that a suitable package
2008 Apr 07
4
Staff Manager tutorial from "Prototype and script.aculo.us" by Christophe Porteneuve
Hi there, Taking my first steps in Prototype and reading this very helpful book by Christophe Porteneuve. There''s an interesting tutorial (Chpt. 7) on making a tree to organize staff members. The problem is that I can''t make it working in IE. In Firefox it works just great. Did anybody fiddle with it? Maybe somebody has already figured it out. IE says
2008 Mar 25
6
Prototype 1.6.0.2 + Firefox 3 Enumerable problems
I am using Prototype 1.6.0.2 on Firefox 3.0b4. The following does not work when I enter it in Firebug: $A([1,2,3,4]).each(function(n) {alert(n);}); The above is just an example. Any array, using $A and any enumerable method, returns the following: TypeError: iterator.bind is not a function Seems like some objects are not being extended correctly? Using Prototype 1.5.0 on Firefox 3.0b4, this
2007 Jan 31
1
Suggestion about Prototype
After I read Prototype API and try it some, I love it much. It''s a powerful javascript framework and really easy to use. But I feel something has miss in prototype like, ··· Everything put in one file and cannot separate ··· I think prototype may have feature to load other script into prototype. Because this will make prototype user can load only needed part. Another reason, I think
2006 Jan 11
2
extending the Element.prototype to provide a setAttributes function
Hi folks, I''m pretty new to javascript and prototype, so I just want to get some peer-review on a function I wrote that makes a handy (at least, it seems handy) way to set a group of attributes on an element easily. Object.extend(Element.prototype, { setAttributes: function(attrs) { var el = this; $H(attrs).each( function(attr) { el.setAttribute(attr[0], attr[1]);
2005 Dec 22
6
Scriptaculous and Prototype based Rich Text Editor
Hi Guys, I'm currently using the Dojo Rich text editor on my site https://wideword.net but am not 100% happy with it as I'm a prototype kind of guy. So I started writing this Rich Text Editor the other day on an experiment. I used the In Place Editor as a template for it and have gotten it to more or less work under IE and Gecko. Unfortunately it still isn't working on Safari ( The
2006 Mar 28
1
prototype $A()
Thank you Ryah! With your answer I have been able to integrate Behaviour into a Prototype class. Thank you again!! Now I have a question related to prototype. It doesn´t transform single elements to an array? I have this code: var element = $("idDiv"); var array = $A(element); alert(array.length); the output is 0; with this one: var elements = $("idDiv", "idDiv2");
2005 Dec 23
3
RE: Scriptaculous and Prototype based Rich TextEditor
What I have so far. In my main HTML: <script type="text/javascript" src="/javascripts/tiny_mce/tiny_mce_src.js"></script> <script type="text/javascript"> tinyMCE.init({ mode: "textareas", theme: ''advanced'', theme_advanced_toolbar_location: ''top'' }); ... </script> My Ajax form
2008 Jun 26
7
Strange readyStates in prototype Ajax
Hi, I''ve never posted here before so please forgive me if I''m not observing proper decorum, yadda yadda yadda :-) I''ve ran into a very, very strange bug with Prototype I wanted to share and see if anyone else has seen this. In a few of my projects involving Ext JS, I''m using the TreePanel control, which uses AJAX to load child nodes asynchronously. Because I
2006 Feb 10
8
Prototype Inheritance example
Hello Everyone, I am working on a control collection for javascript/Ajax.Net. I am stuck on the class inheritance aspects of the prototype library. If someone could point me to an example it would be a great help. I have looked through the controls.js of the scriptaculous library and found something like the below code, but everytime I ran it I would get a constructor error. Thanks for any help;
2006 Apr 17
2
RE: document.getElementsByClassName (prototype) andElement.childrenWithClassName (scriptaculous) redundancy?
Isn''t the difference that the scriptaculous one only gets child nodes from the node you specify, whereas the prototype one gets all in the entire document? Still, it would be nice to just have the one, and let you pass in the document element if you wanted all of them. Just guessing, really. I haven''t looked at the code in question. Greg > -----Original Message----- >
2008 Feb 18
6
inheriting static/class methods with new prototype.js class creation
Hey all. I want something like this to work: var Foo = Class.create(); Foo.myStaticMethod = function(){alert("I''m a static method!")}; Foo.myStaticMethod(); // works var f = new Foo(); f.myStaticMethod(); // doesn''t work, but that''s good--I don''t want it to var Bar = Class.create(Foo); Bar.myStaticMethod(); // doesn''t work, undefined :(
2006 Apr 18
7
[Prototype] evalScripts not working for me
I think I am experiencing the variable scope problem with evalScripts. I have this block of code being returned from an Ajax.Updater call, as shown by FireBug or one of those other Firefox plugins. I have tried to boil it down to the minimum code. <script type="text/javascript"> test = function() { alert("test"); }; </script> <table
2007 Jan 27
5
Prototype not processing javascript
I''m trying to change over from Rails 1.1.6 to 1.2.1 and have discovered that either something is wrong with Prototype of else something has changed that I am not aware of and cannot find documentation on. (I just joined this group, so if this has already been cussed and discussed here or in another list then please point me in the right direction.) I am trying to use the
2005 Sep 22
5
Prototype lib : for-each loops and DontEnum
All I realise that this isn''t strictly the correct place to discuss the prototype lib but being as scriptaculous is dependent on it I thought people might have some opinions. Easier to explain with the example below, copy into a html file and ensure the path to prototype.js is correct. You''ll see the first example prints an extra element "extend" when iterating over
2006 Jun 21
26
Implementing a boolean "switch" in a Class
I need a single boolean which would be "globally" accessible to all instances of a class. Seems like the boolean should be in the class prototype, but I was troubled by the difficulty of setting the prototype boolean to true. Maybe I''m missing something? var MyObject = Class.create(); MyObject.prototype = { bSwitch: false, ... other methods and properties } var oMyOb1
2007 Jun 19
1
if you have Prototype problem come and chat with other user
hi members: this message not spam. i made one chat for all programer,for programer help other programer. if you have problem in the Prototype or css or php or asp or asp.net or xml and ... come and use my free chat. i made this chat to help you and other only i send this message to this group for help other member only. http://chat.takdesigner.com
2008 May 30
1
Prototype doesn't work if we have swf content on the same page
I having to many troubles with prototype and scriptaculous when i have object tag to embed swf content on webpage. First it conflict with adsense and the page can''t be showed on IE6, fine, i remove adsense banners. But my lightbox galery(maded with prototype) doesn''t work if i had swf content from youtube... Some body can help with this problem? I''m starting hate