[Proto-Scripty] Re: limit droppables

2010-03-29 Thread ColinFine
On Mar 28, 2:21 pm, HotShot hs...@gmx.net wrote: I would like to know if there is a way to limit a drop area to a certain number of items. When this limit is reached the drop area should no longer accept any draggables. Already dropped draggables should be removable from the drop area so

Re: [Proto-Scripty] Re: draggable problems

2010-03-29 Thread bill
On 3/28/2010 11:30 PM, Martin wrote: u could use the hande option http://wiki.github.com/madrobby/scriptaculous/draggable or you can modify dragdrop.js . i had an UL with scrollbars so i added UL here and fixed what you describe in 1) line 300+ initDrag: function(event) {

[Proto-Scripty] $$() for a specific root.

2010-03-29 Thread Richard Quadling
Hi, I can use ... $$('#tbl_Charges .dtl_Tyre, #tbl_Charges .dtl_Repair, #tbl_Charges .dtl_Service, #tbl_Charges .dtl_Blank').each(function(el){...}); I now want to do a further $$ on el in for each... el.$$('.rCharge, .rValue, .rDesc').each(function(el2){...}); but I don't know how to use $$

Re: [Proto-Scripty] $$() for a specific root.

2010-03-29 Thread Guillaume Lepicard
hi, use the select method of elements : $$('#tbl_Charges .dtl_Tyre, #tbl_Charges .dtl_Repair, #tbl_Charges .dtl_Service, #tbl_Charges .dtl_Blank').each(function(el){ el.select('.rCharge, .rValue, .rDesc').each(...) }); On Mon, Mar 29, 2010 at 5:23 PM, Richard Quadling

[Proto-Scripty] hash:zero

2010-03-29 Thread chrysanthe m
Hello I am sure this is documented somewhere, I have googled and looked at the api however it is still unclear. How can I zero our all the keys/values of a prototype hash without iterating over it? Sorry if it is documented, I couldn't find an api faq. tia. -- You received this message

[Proto-Scripty] returning a value from a function calling a page with Ajax

2010-03-29 Thread Scott
I am trying to build a function that will return a value based on user input on a page loaded into a div using Ajax.Updater. So for example: function userChooser() { new Ajax.Updater('divID', 'userChooser.asp'); } alert(userChooser()); Inside userChooser.asp I would display a list that the

Re: [Proto-Scripty] hash:zero

2010-03-29 Thread Walter Lee Davis
So if you had a hash of N length and you wanted to end up with a hash with no members? You could try setting its length to 0. Not sure if that works, but it would be the first thing I would try. Walter On Mar 29, 2010, at 2:26 PM, chrysanthe m wrote: Hello I am sure this is documented

Re: [Proto-Scripty] -[Accordion]-...

2010-03-29 Thread Hariz Soleminio
Thanks for the Reply Sir Walter, Im looking checking for the moo.fx accordion for prototype accordion. However, the documentation is not so good. I can't see any good tutorial in google too.. anyway thanks, From: Walter Lee Davis wa...@wdstudio.com To:

Re: [Proto-Scripty] -[Accordion]-...

2010-03-29 Thread Walter Lee Davis
No problem. But seriously it's a very simple problem to solve yourself, and then you learn something. I just did this copying and pasting from my example code here. One minor tweak away from the basic method I proposed when using Scriptaculous, and that just gets you the ability to set

[Proto-Scripty] Re: returning a value from a function calling a page with Ajax

2010-03-29 Thread T.J. Crowder
Hi, You can't make it wait, no. The way to do this is to have your `userChooser` function accept a callback function reference that the user choosing code will call when the user makes a choice. The `userChooser` function would then return immediately, but later the event of the user making a