RE: [Rails-spinoffs] Shorthand for "IN"

2006-08-14 Thread Ken Snyder
You can also us the member function for arrays: function myFunc(param1) { if ([2,3,4,5,6].member(param1)) { // is param1 a member of the array? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brandon Aaron Sent: Sunday, August 13, 2006 8:51 PM To: r

RE: [Rails-spinoffs] OT: Debugging iBook --- help

2006-06-23 Thread Ken Snyder
Title: Message Also I find the hack below quite nice for debugging every once in a while regardless of the browser:   if( !confirm(debugging info) ) halt;   “halt” throws a parse error only if you press cancel on the confirmation box.     From: [EMAIL PROTECTED] [mailto:[EMAIL PR

RE: [Rails-spinoffs] PNG and Alpha-Transparency

2006-06-19 Thread Ken Snyder
Sam, I understand your pain. Longstanding problems with IE like PNG support make me want to kill someone!! I also had some of the concerns you did about PNG scripts. I hacked this one together and found it very useful. It does not work on css-specified background images. Best of luck. function

RE: [Rails-spinoffs] Re: Making an Insertion.After element a Sortable

2006-06-12 Thread Ken Snyder
#x27;];<br>     Sortable.create ('left_column',{tag:'div',dropOnEmpty: true, containment: sections,constraint:false,only:'blurb'});<br>     Sortable.create('right_column',{tag:'div',dropOnEmpty: true, containment: sections,constrain

RE: [Rails-spinoffs] Re: Making an Insertion.After element a Sortable

2006-06-09 Thread Ken Snyder
Hmm, you may need Insertion.Bottom() instead of After.  The after will be out of the ‘left_column’ container.    The code below may also be problematic because the newly inserted node has the same id as the one after which you inserted.   left_column', 'left_column\">Insertion Test');

RE: [Rails-spinoffs] Re: Making an Insertion.After element a Sortable

2006-06-09 Thread Ken Snyder
Per Eric’s suggestion, the simple thing to do is to make the insertion, destroy the sortable, then create the sortable again.  The method to destroy is Sortable.destroy().   Sortable.destroy('left_column');   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tristan Kelle