[Proto-Scripty] Dashboard

2010-02-23 Thread gm
Hello, I am interested in implementing a kind of Dashboard (not as complex as iGoogle but similar in a way) based on Prototype script.aculo.us. Since I don't want to reinvent the wheel i searched the web but unfortunately didn't find anything useful :( Does anyone know perhaps any starting

Re: [Proto-Scripty] Dashboard

2010-02-23 Thread Walter Lee Davis
There's at least two of these on Scripteka, have a quick search there for 'portal' or 'desktop' or similar. Walter On Feb 23, 2010, at 3:43 AM, gm wrote: Hello, I am interested in implementing a kind of Dashboard (not as complex as iGoogle but similar in a way) based on Prototype

Re: [Proto-Scripty] Re: How would I get a closer set of siblings?

2010-02-23 Thread Alex Wallace
Here's a slightly better version, as it crawls the tree itself instead of grabbing and filtering all of the element's nextSiblings(). Since it avoids the call to recursivelyCollect() it's a bit faster (with 10 siblings after the requested node, it's about 20% faster - when I upped it to about 40

Re: [Proto-Scripty] Re: How would I get a closer set of siblings?

2010-02-23 Thread Walter Lee Davis
Wow, thanks very much Alex! Walter On Feb 23, 2010, at 11:28 AM, Alex Wallace wrote: Here's a slightly better version, as it crawls the tree itself instead of grabbing and filtering all of the element's nextSiblings(). Since it avoids the call to recursivelyCollect() it's a bit faster

[Proto-Scripty] click one checkbox will submit only one checkbox value (not the whole form) immediately

2010-02-23 Thread albert kao
My JSP web page has many checkboxes. What is web page source code look like when clicking one checkbox will submit only one checkbox value (not the whole form) immediately? i.e. toggling one checkbox will send the info that only that checkbox is toggled. This does not work because clicking one

[Proto-Scripty] Re: click one checkbox will submit only one checkbox value (not the whole form) immediately

2010-02-23 Thread Al C
Albert - change the onclick to point to a javascript e.g., input type=checkbox name=choice value=1 onclick=submitjustthisone(); Of course, you will also need to write this function script function submitjustthisone(){ //do the stuff you need to do } /script On Feb 23, 4:58 pm, albert kao

Re: [Proto-Scripty] Re: evalScripts problem

2010-02-23 Thread Recourse Records
thanks for the reply. However, it still doesn't work. let me just write out an idea of what im trying to get done. This is without the method on the wiki. Let's start from the original issue and work thru it from there So... ::This is what's included on each page to get the GreyBox pop up box to

Re: [Proto-Scripty] Re: element.observ on classname+id *

2010-02-23 Thread green
Hi T.J. I like your idea of the efficient version of bindage function. I have a similar case but this time i got to use new Field.observer. There is a list of options which people can select to enter some number. I have hooked a new Field.observer with each input element to validate the number

[Proto-Scripty] about event.findElement

2010-02-23 Thread rocksoccer
Hi, I am new to js prototype. This may be a very easy question. In lightbox 2 (http://www.huddletogether.com/projects/lightbox2) code, I find the following code I cannot understand. Please help to explain it. var target = event.findElement('a[rel^=lightbox]') ||

[Proto-Scripty] Re: about event.findElement

2010-02-23 Thread T.J. Crowder
Hi, It is easy to understand findElement('a'), but what does it mean by the square brackets, as well as ^ just before equal? Is this a little bit of regular expression? They're CSS attribute selectors, in particular the ^= is from CSS3: http://www.w3.org/TR/css3-selectors/#attribute-selectors

Re: [Proto-Scripty] about event.findElement

2010-02-23 Thread green
Hi that's the CSS3 selection rule. You might google css selection rule for some references. For your specific case: [] defines the rule to match the element attribute; ^ before = means NOT. So that expression will pick up all area element which rel attribute is not lightbox On Wed, Feb 24, 2010

[Proto-Scripty] Re: evalScripts problem

2010-02-23 Thread T.J. Crowder
Hi Dan, Ah, okay, that actually has nothing to do with evalScripts or loading scripts dynamically. :-) You'll have to talk to the Greybox folks. (I've never heard of it.) My *guess* is that Greybox is looking for anchor tags with that kind of REL attribute at page load time and attaching