search for: crockford

Displaying 12 results from an estimated 12 matches for "crockford".

Did you mean: rockford
2005 Aug 10
2
extend question
Is it possible to call the super class''s version of a function from a subclass? SuperClass = Class.create(); SuperClass.prototype = { initialize: function(){ this.varA = ''''; this.varB = ''''; } } SubClass = Class.create(); SubClass.prototype = (new SuperClass()).extend({ initialize: function(somevar) { this.somevar = somevar; }
2011 Apr 14
3
Consecutive code blocks
..., I just wrote some Markdown which featured the following code snippets: <h1>TXJS 2011 Speakers</h1> <ul> <li><span>Brendan Eich</span></li> <li><span>Alex Russell</span></li> <li><span>Douglas Crockford</span></li> <li><span>Paul Irish</span></li> </ul> ul { list-style: square outside; color: #ccc; } li>span { color: #000; } The horrible styling above highlights the trailing whitespace a few lines from the...
2005 Sep 30
5
Converting text into a javascript array
Hey Guys, I know this isn''t specific to scriptaculous libraries but it''s something that I''m exploring as I use the ajax functions in prototype. My application server is not rails but java and I was thinking of returning a javascript array in the ajax response. When I get back my response is it, of course, text and I''m not sure how best to convert it into
2006 Apr 24
1
JSON Validator
Maybe I am missing something very obvious, but guys does anyone know of any JSON Validators around? The reason is when you do an eval(json_response), if the JSON format is not proper, you''ll only get an error like "Can''t eval..". But, this doesn''t help identify where the actual problem lies. Is there some kind of a schema or something we can write to check
2006 Jan 12
0
re: Good OOP and JS books / tutorials?
...#39;'ve found the following site is a nice introduction for javascript newbies who have an OO background: http://www.multitask.com.au/people/dion/ Of course, the real ugly truths about javascript are a less friendly, but a nonetheless important read http://www.quirksmode.org/blog/ http://www.crockford.com/ ----^-------^------^--------^-------^ Jon Boutelle Principal, Uzanto Consulting Mountain View, CA Office Phone:650-564-0000 Cell Phone :510-708-9825 skype id: jboutelle www.uzanto.com www.jonathanboutelle.com www.themindcanvas.com ----^-------^------^--------^-------^
2008 May 13
8
static private and multi-inherit
/*author:csf178-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org*/ function Class(Initalizer,SuperClasses) { if(!SuperClasses)SuperClasses=[]; var ret=function(){ for(var i=0;i<SuperClasses.length;i++) { SuperClasses[i].call(this); } var $private={}; var $public=this; var $static=ret; with($static){ with($private){ with($public){
2006 Apr 28
3
Serialize / deserialize an associative array
Perhaps I missed something but I don''t see an easy way to do this ? Basically just wanna hold some ui state in a cookie. Did I miss something obvious ? Best Matt *********************************************************************************** The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB. Authorized and
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 May 16
18
Ruby''s purpose?
Before I get flamed, I just want to start off by saying that I am new to Ruby and I really enjoy this language and want to see it succeed. But, what niche does this language fill? These are serious question, not a put down of the language. Does it has something to offer for Web 2.0? Is it just another scripting language? Does it suppose to replace something else? Does it suppose to work with
2006 Jan 11
9
Prototype & Cookies
Has anyone written any "cookie" class using prototype? Basically, what I am looking for is if there is an easy way to store mutiple cookies in a single cookie using hash or something - easy writing and retrieval (updating the cookie value). For eg - If I had 25 cookies for my domain 5 of the cookies would either get dropped or not be set (as there is a limit of 20 cookies per domain).
2007 Feb 12
6
prototype.js and different browsers
Hi I''m currently learning how AJAX is working and found prototype.js interesting. But I have some issues that might be because of misusage: http://brasilia.nersc.no/test/PyTest/AJAX.html When I use this in Firefox2 it correctly fills the first select, using opera9 it is filled, but it just shows a list of "blank" options (no description), and in IE6 it doesn''t get
2006 Jun 25
17
JavaScript Compression
Is there a good windows-based JavaScript compressor which will reliably compress script aculo and prototype? Sam _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs