[Proto-Scripty] Stopping an enumeration

2009-11-09 Thread andy.kri...@gmail.com
I'd like to use enumeration functions to select from a sorted list where I know that if the select function has passed and then starts failing (returns false), I can stop enumerating (because every additional item will also fail). For example, scanning a sorted array of strings for strings that st

[Proto-Scripty] Re: Stopping an enumeration

2009-11-09 Thread andy.kri...@gmail.com
Never mind - I just discovered $break in the docs - that should do what I want. On Nov 9, 6:41 am, "andy.kri...@gmail.com" wrote: > I'd like to use enumeration functions to select from a sorted list > where I know that if the select function has passed and then starts > failing (returns false),

[Proto-Scripty] Re: Some basic basic stuff

2009-11-09 Thread ColinFine
On Nov 7, 9:45 pm, kstubs wrote: > Try naming the ID attribute different than the NAME attribute. > What difference would that make? However, what I was going to suggest was checking that your id 'firstname' is unique in the page. Names can be duplicated, but id's can't. --~--~-~--~-

[Proto-Scripty] Re: Noob needs help with event handling

2009-11-09 Thread ColinFine
On Nov 6, 7:14 pm, Rhiq wrote: > I'll try to explain what I am up to; feel free to slap me if I am > really messing this up. > > I have a table that represents orders in a database, and it seems to > be working fine.  When the user clicks on an order a div is updated > using an Ajax.updater cal

[Proto-Scripty] Re: Some basic basic stuff

2009-11-09 Thread ColinFine
On Nov 9, 7:04 am, Eugene Hourany wrote: > I never put in a name attribute, that could be part of the problem. > No. > > Now all I want to know is how to load and parse a JSON file using the same > method. What's a JSON file? JSON is a text representation of data which is pretty well identica

[Proto-Scripty] Prototype.jExtension

2009-11-09 Thread jacoz
Hi, I want you to show my extension of your framework. If you want you can take a look at it (http://app.jaydns.com/ prototype.jextension/prototype.jextension.js) and if you're interested in you may also uso some of that features in your next release! :) Jacopo. --~--~-~--~~-

[Proto-Scripty] Re: Prototype.jExtension

2009-11-09 Thread speedpac...@gmail.com
I'm getting a 403 :( On Nov 9, 11:19 am, jacoz wrote: > Hi, > I want you to show my extension of your framework. > If you want you can take a look at it (http://app.jaydns.com/ > prototype.jextension/prototype.jextension.js) and if you're interested > in you may also uso some of that features in

[Proto-Scripty] Re: Object.extend equivelant

2009-11-09 Thread T.J. Crowder
Hi, > I get an error in prototypejs, "parent.subclasses is undefied" (occurs > at line 99) the code is: > > parent.subclasses.push(klass); > > Any ideas? The superclass (parent) must be a class that was defined with Class.create; from that error, I'm thinking GridBuild is defined "raw" (or in so

[Proto-Scripty] Re: Noob needs help with event handling

2009-11-09 Thread Walter Lee Davis
On Nov 9, 2009, at 8:51 AM, ColinFine wrote: > > > > On Nov 6, 7:14 pm, Rhiq wrote: >> I'll try to explain what I am up to; feel free to slap me if I am >> really messing this up. >> >> I have a table that represents orders in a database, and it seems to >> be working fine. When the user click

[Proto-Scripty] Re: Prototype.jExtension

2009-11-09 Thread Andy Daykin
ditto - sounds interesting, let us know when it's up! -Andy -- From: Sent: Monday, November 09, 2009 8:29 AM To: "Prototype & script.aculo.us" Subject: [Proto-Scripty] Re: Prototype.jExtension > > I'm getting a 403 :( > > On Nov 9, 11:19 am, jac

[Proto-Scripty] Re: Stopping an enumeration

2009-11-09 Thread Matt Foster
> > I'd like to use enumeration functions to select from a sorted list > > where I know that if the select function has passed and then starts > > failing (returns false) This isn't a prime situation for Enumerable but certainly nothing it can't handle. > Never mind - I just discovered $break in

[Proto-Scripty] Re: Object.extend equivelant

2009-11-09 Thread kstubs
It is defined like this: var GridBuild = function(){}; Object.extend(Object.extend(GridBuild.prototype, GridBase.prototype), ... code cut here ... { On Nov 9, 7:30 am, "T.J. Crowder" wrote: > Hi, > > > I get an error in prototypejs, "parent.subclasses is undef

[Proto-Scripty] Re: Prototype.jExtension

2009-11-09 Thread Tobie Langel
Hi jacoz, Seems like your Array#add would benefit from using Array#splice. https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/splice Best, Tobie --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

[Proto-Scripty] Re: Noob needs help with event handling

2009-11-09 Thread Rhiq
On Nov 9, 7:40 am, Walter Lee Davis wrote: > On Nov 9, 2009, at 8:51 AM, ColinFine wrote: > > > > > > > On Nov 6, 7:14 pm, Rhiq wrote: > >> I'll try to explain what I am up to; feel free to slap me if I am > >> really messing this up. > > >> I have a table that represents orders in a database,