public
Description: prototype.js tidbits
Homepage: http://thinkweb2.com/projects/prototype/
Clone URL: git://github.com/kangax/protolicious.git
Search Repo:
Added prototype.js FAQ
kangax (author)
Wed Apr 16 17:19:42 -0700 2008
commit  e5c4ed17ac50216e4ccb76d1ba697885cb8fafff
tree    436adfb6dcf93b289ac5f2c385342c15ef77635d
parent  da8737094a7f17fea11c9a953a54ba03e534e0db
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
0
@@ -0,0 +1,85 @@
0
+Q: IE throws error: "Object does not support this property or method". What happened?
0
+A: http://www.prototypejs.org/learn/extensions
0
+
0
+
0
+Q: Error is thrown: this.<blah> is not a function. What happened?
0
+A: This is most likely an execution context (scope) problem. Iterators (which are used in Enumerable methods)
0
+ and event handlers (used in Element#observe) are executed within global context.
0
+ Changing the execution context is as easy as using Function#bind or Function#bindAsEventListener
0
+
0
+ http://alternateidea.com/blog/articles/2007/7/18/javascript-scope-and-binding
0
+ http://www.prototypejs.org/api/enumerable
0
+ http://www.prototypejs.org/api/event/observe
0
+ http://www.prototypejs.org/api/function/bind
0
+ http://www.prototypejs.org/api/function/bindAsEventListener
0
+
0
+
0
+Q: I get all kinds of weird output when iterating over an array using for..in.
0
+A: for..in should not be used to iterate over arrays
0
+ http://andrewdupont.net/2006/05/18/javascript-associative-arrays-considered-harmful/
0
+
0
+
0
+Q: Something doesn't work as expected. What should I do?
0
+A: 1) Get the latest version of prototype.
0
+ 2) Make sure a document has a proper doctype and is valid. http://validator.w3.org/
0
+ 3) There could be a conflict with other scripts in a document.
0
+ Try narrowing down the conflicting ones.
0
+
0
+
0
+Q: My applications slows down when I use Event#observe on 1000+ cells in a table.
0
+A: Event delegation could increase performance (and reduce memory usage) in such cases.
0
+
0
+ http://icant.co.uk/sandbox/eventdelegation/
0
+ http://cherny.com/webdev/70/javascript-event-delegation-and-event-hanlders
0
+ http://mislav.caboo.se/js/handling-events-on-elements/
0
+
0
+
0
+Q: How do I make prototype work together with jQuery?
0
+A: The easiest way is to use jQuery's noConflict.
0
+ http://docs.jquery.com/Using_jQuery_with_Other_Libraries
0
+
0
+
0
+Q: Is it possible to extend elements by criteria other than tagName (e.g. by className or an attribute)?
0
+A: Not in a current implementation. The extension mechanism is complex enough
0
+ and such support would most likely lead to unnecessary complexity.
0
+
0
+
0
+Q: Script.aculou.us wiki is down. Help!
0
+A: You could use an offline version of docs.
0
+ http://www.m3nt0r.de/blog/scriptaculous-offline-docs/
0
+
0
+
0
+Q: Are there any offline resources for prototype?
0
+ http://globalmoxie.com/projects/prototype-pdf/index.shtml
0
+ http://thinkweb2.com/projects/prototype/prototype-1602-cheat-sheet/
0
+
0
+
0
+Q: Where can I find prototype/scriptaculous tutorials?
0
+A: http://www.prototypejs.org/learn
0
+ http://alternateidea.com/tags/prototype/
0
+ http://andrewdupont.net/categories/web/development/javascript/prototype/
0
+ http://tobielangel.com/tags/prototype
0
+ http://mislav.caboo.se/js/
0
+ http://thinkweb2.com/projects/prototype/
0
+
0
+
0
+Q: Are there any books on Prototype/Scriptaculous?
0
+A: http://www.pragprog.com/titles/cppsu
0
+ http://www.amazon.com/Prototype-Scriptaculous-Action-Ajax-Crane/dp/1933988037
0
+
0
+
0
+Q: Where can I find a packed/minified/compressed version of prototype/scriptaculous?
0
+A: http://groups.google.com/group/prototype-core/files
0
+
0
+
0
+Q: Where can I find 3rd party plugins/extensions for prototype/scriptaculous?
0
+A: http://scripteka.com
0
+ http://www.ajaxrain.com/tagcloud.php?tag=prototype#script
0
+ http://wiki.script.aculo.us/scriptaculous/show/EffectsTreasureChest
0
+
0
+Q: I'm stuck. Where should I look for help?
0
+A: Join #prototype channel on irc.freenode.net or use "prototype users mailing list".
0
+ The "prototype core" mailing list is only for development related issues.
0
+ http://groups-beta.google.com/group/rubyonrails-spinoffs
0
+ http://groups-beta.google.com/group/prototype-core
0
+
0
\ No newline at end of file

Comments

  • foca Thu Apr 17 00:05:45 -0700 2008

    In the last question, where it says that protocore is only for development related issues, I’d clarify that development there means Prototype’s development. I don’t know, it sounds a little ambiguous to me :)

  • kangax Thu Apr 17 04:59:31 -0700 2008

    @foca
    good catch!
    I’ll change that and we’ll probably post it soon somewhere on prototypejs.org