[Rails-spinoffs] Silly little bug... should be an easy one...

2006-07-25 Thread G r U M P
Hi everyone... thanks in advance for the help... // THE CODE aObjectNames = new Array; for(i=0;i<35;i++){ aObjectNames[i] = 'press_icon'+i; } for(i=0;i new Effect.Opacity(aObjectNames[i],{duration: 0,transition: Effect.Transitions.linear,from: 1.0, to: 0.0}); } // THE PROBLEM The arra

[Rails-spinoffs] Extending Class.create() for casting objects

2006-07-25 Thread Em Te
I've been experimenting with extending Class.create() to do object casting as well as its usual object creation. The idea is to use syntax similar to performing object casts in C++. For example: int i = (int)3.141; Tree t = (Tree)obj; Casting can also be used to do type verification, which Jav

Re: [Rails-spinoffs] Passing Variables to Insert.Top

2006-07-25 Thread Tristan Kelley
I guess old habbits do die hard. Thanks for pointing me in the right direction Fabian - that's just what I needed.On 7/25/06, Fabian Lange < [EMAIL PROTECTED]> wrote: Hi, Your way of doing this is not the web.2 way ;) You request the whole content on beforehand, even when you don't

RE: [Rails-spinoffs] Passing Variables to Insert.Top

2006-07-25 Thread Fabian Lange
Hi, Your way of doing this is not the web.2 way ;) You request the whole content on beforehand, even when you don’t need it. Also you risk that single quotes inside news and article break the code. If you do it like that then the only thing you could do is to put the include stuff in the

[Rails-spinoffs] Builder.node label for attribute

2006-07-25 Thread Andreas Wahlin
I've googled a bit, but haven't come up with anything. It seems the Builder.node chokes on the for attribute when building label tags. Probably because of the keyword for when looping through the arguments. Is this a known problem? I wrote my own patch that seems to solve it (substituting lab

[Rails-spinoffs] Passing Variables to Insert.Top

2006-07-25 Thread Tristan Kelley
Hi all,I have an index page with a link to a JS file with many Insert.Top functions in it. I'd like to have just one function if at all possible. Here's an example of what I currently have:On the index.php page: ect...JS File:    function newsNew() {    element = new Insertion.Top('left_column', '

[Rails-spinoffs] question on Sortables callback

2006-07-25 Thread Geo
Hi,I'm using Script.aculo.us (but not using Rails) Sortable component.  The component has an onUpdate() callback method.  The (not-so-good) documentation at http://wiki.script.aculo.us/scriptaculous/show/Sortable.create states that the callback method receives that actual draggable container objec

Re: [Rails-spinoffs] Element Create

2006-07-25 Thread Tom Gregory
Claudio,I don't know about the Builder class (I don't use it), but your solution may not work when creating an input element with a "name" attribute in IE due to an obscure IE bug.See http://msdn.microsoft.com/library/default.asp?url="">and a solution here http://alt-tag.com/blog/archives/2006/02/i

Re: [Rails-spinoffs] Element Create

2006-07-25 Thread Tom Gregory
Claudio,I don't know about the Builder class (I don't use it), but your solution may not work when creating an input element with a "name" attribute in IE due to an obscure IE bug.See http://msdn.microsoft.com/library/default.asp?url="">and a solution here http://alt-tag.com/blog/archives/2006/02/i

[Rails-spinoffs] Autocomplete results won't show up

2006-07-25 Thread Alexander Rebholz
Hello,I am trying to get to work the scriptaculous autocomplete function.It seems to work so far. If I use the firefox extension "View Source Chart" which allows you to see the source of the pages after the ajax request, everything looks fine. The results are there in an unordered list. The problem