[Rails-spinoffs] urgent help with effects.

2006-06-25 Thread Louis Walch
A.. Ok can someone please help me out. Prolly easy for someone else. Here is the page in question: http://www.louiswalch.com/beta/slide.php Can you please tell me why when I tell it to show ONE of the divs, it shows them ALL?! I just want a simple nav where when you click the button, it hid

[Rails-spinoffs] safe to compact?

2006-04-07 Thread Louis Walch
i took the prototype and all the scriptaculous .js files and combined them into one, then i ran it through the compressor at http://www.creativyst.com/Prod/3/ it was able to compress it down about 77%. what i am wondering is, is this safe to use? i am just looking to chop down the 152kb of all the

RE: [Rails-spinoffs] help with each

2006-03-16 Thread Louis Walch
oh dude. must have been a bug in the old version. i upgraded to the latest version and it works fine :) thanks for all the help! > Don't know... try digging into the code to see what that method is > returning though. I would if I had that version of proto. > > The information transmitted in t

RE: [Rails-spinoffs] help with each

2006-03-16 Thread Louis Walch
is there an easy way to echo whats inside it without looping content? > But he already tried straight > > $A(document.getElementsByClassName("blah")).each(blah..); > > I don't use the pre_2 (or whatever) version (only the str8 1.4 release), > otherwise I would check what getElementsByClassName is

Re: [Rails-spinoffs] help with each

2006-03-16 Thread Louis Walch
no dice dude editViewItems.each is not a function > Try: > var editViewItems = ... > instead of > var items = ... > > Just to make sure there's no variable conflict. > > -Matt > > On Mar 16, 2006, at 2:08 PM, Louis Walch wrote: > >> i have proto

Re: [Rails-spinoffs] help with each

2006-03-16 Thread Louis Walch
i have prototype 1.4.0 pre_2 and the only other lib i have is scriptaculous > For what it's worth, I may have been wrong when I said it returns a > node list. I was thinking of getElementsByTagName > > getElementsByClassName comes with prototype (and other libs) and > would probably return an Ar

RE: [Rails-spinoffs] help with each

2006-03-16 Thread Louis Walch
yea its loaded... i will just put it back into the for loop, i was just currious to start using each. > ...and you're sure that prototype is loaded? > > Otherwise, I guess just do a for loop. > > The information transmitted in this electronic mail is intended only for > the > person or entity to w

Re: [Rails-spinoffs] help with each

2006-03-16 Thread Louis Walch
gt; it into an array: > > var nodeList = document.getElementsByClassName('editView'); > var items = $A(nodeList); > > -Matt > > > On Mar 16, 2006, at 1:04 PM, Louis Walch wrote: > >> can you please tell me why this is not working? i got the example >> for ho

Re: [Rails-spinoffs] help with each

2006-03-16 Thread Louis Walch
'editView'); > var items = $A(nodeList); > > -Matt > > > On Mar 16, 2006, at 1:04 PM, Louis Walch wrote: > >> can you please tell me why this is not working? i got the example >> for how >> to use each online and copied it to a t (except i added th

[Rails-spinoffs] help with each

2006-03-16 Thread Louis Walch
can you please tell me why this is not working? i got the example for how to use each online and copied it to a t (except i added the if). its telling me items.each does not exist. var items = document.getElementsByClassName('editView'); if (items.length > 0){ items.each(function (result)

RE: [Rails-spinoffs] Calendar widget

2006-03-02 Thread Louis Walch
Ok cool. The library sounds interesting, hope it goes well, and wish i knew enough to help out :) I will upload the file you sent and give it a shot. > Not any of my stuff, no. I'm currently only working on my company's > products (which are sold privately into Hospitals). > > Myself, Marco J

RE: [Rails-spinoffs] Calendar widget

2006-03-02 Thread Louis Walch
Is there a working demo of this online? > Well, this is the modified version of Joe's calendar. It works... (Joe, > I hope you don't mind my reposting the code here)... > > > > But I'm actually working on a different one that I'm deriving from the > DHTMLGoodies one that we discussed that day, an

[Rails-spinoffs] get child by class name

2006-02-24 Thread Louis Walch
wondering if you have a suggestion for the best way to get child by class name. example would be to target a TR and return a TD with classname of icon in order to use innerHTML thanks! --louis ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonr

[Rails-spinoffs] suggestion $c()

2006-02-23 Thread Louis Walch
i think it would be a good idea to map a shortcut to getElementsByClassName like the much loved $(). i think $c() seems applicable. ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-sp

Re: [Rails-spinoffs] question about getElementsByClassName

2006-02-23 Thread Louis Walch
duh, ok. sorry and thanks for the help! > On 2/23/06, Louis Walch <[EMAIL PROTECTED]> wrote: >> whoops, sorry >> >> >> function displayPreviewIcon(){ >> inputs = getInputsByAttribute('fldtype','filelocati

Re: [Rails-spinoffs] question about getElementsByClassName

2006-02-23 Thread Louis Walch
kgroundColor = '#ff00ff'; } } which is called onLoad > On 2/23/06, Louis Walch <[EMAIL PROTECTED]> wrote: >> the file is being included, it is in the top of my common.js >> >> i am getting the error before it does anything. could it be that my >>

Re: [Rails-spinoffs] question about getElementsByClassName

2006-02-23 Thread Louis Walch
return elements; } > On 2/23/06, Louis Walch <[EMAIL PROTECTED]> wrote: >> i made a function which was a near duplicate of getElementsByClassName >> and >> saved it as getInputsByAttribute and saved it in an external js file. >> >> but now i am gett

Re: [Rails-spinoffs] question about getElementsByClassName

2006-02-23 Thread Louis Walch
i made a function which was a near duplicate of getElementsByClassName and saved it as getInputsByAttribute and saved it in an external js file. but now i am getting "getInputsByAttribute can not be found" is there something i need to do to make it part of prototype? > > >

Re: [Rails-spinoffs] question about getElementsByClassName

2006-02-23 Thread Louis Walch
thanks rob, i will give input_.+ a shot. i use a custom attrib named fldtype for some input items and am hoping to assign different actions to each input based on that. > > > Louis Walch wrote: >> i would like to detect classnames of input_(ANYTHING) is this p

[Rails-spinoffs] question about getElementsByClassName

2006-02-23 Thread Louis Walch
i would like to detect classnames of input_(ANYTHING) is this possible with getElementsByClassName? also, is tthere a way to get elements by attribute? or would that be too heavy on the load time? ___ Rails-spinoffs mailing list Rails-spinoffs@lists.ruby

[Rails-spinoffs] drag drop safari

2006-02-08 Thread Louis Walch
does it not work? works fine for me on all other browsers and platforms. ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

RE: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Louis Walch
bingo how come draggable.id worked without element in there? > Do you mean droppable.element.id? > >> -Original Message- >> From: [EMAIL PROTECTED] > [mailto:rails-spinoffs- >> [EMAIL PROTECTED] On Behalf Of Louis Walch >> Sent: Tuesday, February 07, 20

Re: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Louis Walch
thanks, i misunderstood. droppable.id in the function is coming through as "undefined" it does have an id > > On 7 Feb 2006, at 17:47, Louis Walch wrote: > >> umm... if i remove the function name how does it know which >> function to use? >> >>

Re: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Louis Walch
umm... if i remove the function name how does it know which function to use? > > On 7 Feb 2006, at 17:35, Louis Walch wrote: > >> thanks for the help but you were right it should work - i just had >> a typo :) >> >> next issue >> tying to get i

Re: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Louis Walch
fined" dropAction: function(draggable, droppable) { alert("DROPED:" + draggable.id +" ON " + droppable.id); } . . . Droppables.add("drop_List'",{hoverclass:"highlightField",accept:["draggable"],onDrop:dropAction}); > &

Re: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Louis Walch
ns hash passed to Ajax.Updater. >> >> tom >> >> - >> http://www.smallroomsoftware.com >> >> On 7 Feb 2006, at 15:28, Louis Walch wrote: >> >>> using Ajax.Updater to update a section of a page with a also >>> want to &g

[Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Louis Walch
using Ajax.Updater to update a section of a page with a also want to write some javascript into it (because im trying to make each of the draggable. but the are not being written. is this not possible? ___ Rails-spinoffs mailing list Rails-spinoffs@lis

RE: [Rails-spinoffs] help with syntax

2006-02-03 Thread Louis Walch
ticles/prototype.js.html > > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Louis > Walch > Sent: Friday, February 03, 2006 2:01 PM > To: rails-spinoffs@lists.rubyonrails.org > Subject: [Rails-spinoffs] help wit

[Rails-spinoffs] help with syntax

2006-02-03 Thread Louis Walch
im not a javascript programmer... so be nice. scriptaclous uses a differnt format for writing functions and code then i am used to. are there books or tutorials for helping a beginner understand how to write like this and what everything is? that said... i was readding this webpage: http://partic

RE: [Rails-spinoffs] autocomplete on safari = focus end of line

2006-02-03 Thread Louis Walch
i wish but i work in a mac friendly office, and firefox on mac is not that hot. > "easy" remedy? Don't worry about Safari ;-) > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Louis > Walch > Sent: Friday, F

[Rails-spinoffs] autocomplete on safari = focus end of line

2006-02-03 Thread Louis Walch
i have an autocomplete set up on a textarea. it works fine, but in safari, when you select a word from the dropdown, it does not focus the cursor at the end of the line. can you think of an easy remedy? thanks. ___ Rails-spinoffs mailing list Rails-spinof

[Rails-spinoffs] compress js to one file

2006-01-31 Thread Louis Walch
I would like to suggest that scriptaclous starts distrubuting with an alternative js file which contains all 6 seperate .js files into one. This will make it easier for js compression and gzipping to save on download time. Discussed at: http://www.zimbra.com/blog/archives/2006/01/zimbra_ajax_css_d

RE: [Rails-spinoffs] Re: form elements in sortable lists

2006-01-31 Thread Louis Walch
; [mailto:rails-spinoffs- >> [EMAIL PROTECTED] On Behalf Of Louis Walch >> Sent: Tuesday, January 31, 2006 8:08 AM >> To: rails-spinoffs@lists.rubyonrails.org >> Subject: [Rails-spinoffs] Re: form elements in sortable lists >> >> Has anyone else experienced problems

[Rails-spinoffs] Re: form elements in sortable lists

2006-01-31 Thread Louis Walch
Has anyone else experienced problems with this, and furthermore how to allow it to work cross browser? > i am having problems with editing items which are inside a sortable > list... > different on browsers > > PC IE - Works fine > PC FF - select boxes work, input boxes are NOT editable > MAC Saf

[Rails-spinoffs] form elements in sortable lists

2006-01-30 Thread Louis Walch
i am having problems with editing items which are inside a sortable list... different on browsers PC IE - Works fine PC FF - select boxes work, input boxes are NOT editable MAC Safari - select boxes are NOT edtable, input boxes work thanks! ___ Rails-sp

RE: [Rails-spinoffs] sortable list question

2006-01-30 Thread Louis Walch
not bother with all that, just do > 'onChange' instead, which is called every time the order changes during > the dragging. > > I ran into this same thing not too long ago. > > Greg > >> -Original Message- >> From: [EMAIL PROTECTED] > [mailto:rail

RE: [Rails-spinoffs] sortable list question

2006-01-30 Thread Louis Walch
oh right, value... god i always do that. but, its not even alerting 'hi' so its not getting to that point even. its making the list sortable, but nothing happens after i drag around. > Well, if they are hidden input fields, then I'm not sure you can use > innerHTML (all self-enclosed tags

RE: [Rails-spinoffs] sortable list question

2006-01-30 Thread Louis Walch
ids is an array of all elements with the class name of 'linkIndexNumber' which is only the hidden fields. i figured that getElementsByClassName would return them in the order they appear on the page, so i am using that to base which number they are in the list. then i am setting each of them to t

[Rails-spinoffs] sortable list question

2006-01-30 Thread Louis Walch
here is most likely an easy question how come this will not work? i am trying to change the values of a hidden input inside each sortable to the current index. thanks! Sortable.create('list_filmLnks', { onUpdate: function() {

RE: [Rails-spinoffs] Make all LI items draggable

2006-01-25 Thread Louis Walch
.. > onDrop: doTheThing > } > > > If all this is contained in a single class definition, you might get > better results using: > > onDrop: this.doTheThing.bind(this) > > in the above code. > > > > -Original Message--

RE: [Rails-spinoffs] Make all LI items draggable

2006-01-25 Thread Louis Walch
thanks for the help, but i need to be able to pass in the id so i guess i will have to put the whole funciton inside the Droppables.add. however its not letting me... Droppables.add('droptarget1',{hoverclass:'dropTargetHover',

RE: [Rails-spinoffs] Make all LI items draggable

2006-01-25 Thread Louis Walch
ok thats what i was worried about... just seems like alot of code... new Draggable('foo/one',{revert:true}); new Draggable('foo/two',{revert:true}); new Draggable('foo/three',{revert:true}); new Draggable('foo/one/a',{revert:true}); new Draggable('foo/one/b',{revert:true}); my list has ov