[Rails-spinoffs] slider component inside a table not working

2006-02-17 Thread Joe Hudson
Hello, I'm trying to use the slider inside a table and am having problems. I'm wondering if anybody can help or, if it just isn't possible for some reason. The following 2 entries are the exact same code (1 inside and 1 inside ). The div one works fine but the table one doesn't work (using IE 6.

Re: [Rails-spinoffs] Ajax.Updater and loading new javascriptfunctions.

2006-02-17 Thread Alex Duffield
I solved this one so Ill answer my own question incase someone goes searching the same problem... you just need to add Behaviour.apply() after registering them.var tabrules = { '#tabs li a' : function(element){ element.> WCMS_tabs(this); } }}Behaviour.register(tabrules);Behaviour.apply(); _

Re: [Rails-spinoffs] Ajax.Updater and loading new javascript functions.

2006-02-17 Thread Alex Duffield
:) thanks. the typo was just in my email.. I was using evalScripts in my code.:) __ Alex Duffield . Principal . InControl Solutions . http://www.incontrolsolutions.com  On 17-Feb-06, at 2:08 PM, Todd Ross wrote:On 2/17/06, Alex D

Re: [Rails-spinoffs] Ajax.Updater and loading new javascript functions.

2006-02-17 Thread Todd Ross
On 2/17/06, Alex Duffield <[EMAIL PROTECTED]> wrote: > I am using the evalScript:true option, and somthing simple like > alert("foobar") gets triggered in my loaded code, but if I try to define a > function and then try to call it like I know you've decided to go another route already, but for wha

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Sammi Williams
The only actual file you need to update is dragdrop.jsIt should be backwards compatible with your current version, but I haven't tested this on browsers other than Safari and Mozilla.Remember this patch will hopefully be integrated with the main code, and isn't a final version for use in production

[Rails-spinoffs] Sorting Multiple Arrays

2006-02-17 Thread Jason Hummel
Hey Cats, I'm having a problem. I'm working with an object that contains a bunch of arrays: var myObject = { "data": [ {"line": [1,"aoo","far"]}, {"line": [2,"boo","ear"]}, {"line": [3,"coo","dar"]}, {"line": [4,"doo","car"]}, {"line": [5,"eoo","bar"]}, {"lin

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Sammi Williams
Oh, I just realised, the modifications to prototype.js that I made are not actually even in use!! Well I am pretty stupid then, so this should work without modifications to prototype.js ばかね。。。 Sammi PGP.sig Description: This is a digitally signed message part ___

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Sammi Williams
Lets forget about the TAB issue, it isn't really relevant on this thread. More actual feedback would be appreciated. I've replied to everything below, rather than sending individual emails. In summary, I am hoping this can become an official addition. I didn't know about $H. I don't need to

Re: [Rails-spinoffs] Ajax.Updater and loading new javascriptfunctions.

2006-02-17 Thread Alex Duffield
Cool. You wouldn't happen to know a solution to trying to register new Behaviour rules in the new .js file? I tryed var tabrules = { '#tabs li a' : function(element){ element.> alert("You clicked a tab") } }}Behaviour.register(tabrules);With no love. I would much prefer not to have to stick a b

RE: [Rails-spinoffs] Ajax.Updater and loading new javascriptfunctions.

2006-02-17 Thread Ryan Gahl
Yep, I have all my _javascript_ in separate .js “class” files too (no spaghetti markup mixed with _javascript_).   In fact, I use the below script injection method in place of the XMLHTTP object completely. It’s faster and has a smaller memory footprint, plus absolutely no need for the s

Re: [Rails-spinoffs] Ajax.Updater and loading new javascript functions.

2006-02-17 Thread Alex Duffield
Ryan, this  I like this solution, as I would much prefer my JS to be in external .js files. assigning the functions to variables also worked great so I heve a few options Thanks! (Thanks to Todd and Gregory as well!!! )  __ Alex Du

[Rails-spinoffs] Re: Ajax.Updater and loading new javascript functions.

2006-02-17 Thread Todd Ross
Alex Duffield wrote: > I would much prefer to have my javascript loaded dynamically with > each different component as needed instead of having to load up > everything when the app is originally loaded. > > I tryed including the JS code directly in the code returned by > Ajax.Updater as well as li

RE: [Rails-spinoffs] Ajax.Updater and loading new javascriptfunctions.

2006-02-17 Thread Ryan Gahl
Greg beat me to that one… sorry for the duplicate post =)   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Gregory Hill Sent: Friday, February 17, 2006 2:10 PM To: rails-spinoffs@lists.rubyonrails.org Subject: RE: [Rails-spinoffs] Ajax.Updater and loading new _jav

RE: [Rails-spinoffs] Ajax.Updater and loading new javascriptfunctions.

2006-02-17 Thread Ryan Gahl
Also… with the evalScripts method, try assigning your functions differently so they stay in memory (assign them as variables)…   myalert = function(txt) {     alert(txt); };     Then you should be able to access them…   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTEC

RE: [Rails-spinoffs] Ajax.Updater and loading new javascript functions.

2006-02-17 Thread Gregory Hill
Well, for inserting a js file after the page is rendered, you have to do it with the DOM.  But, according to notes in scriptaculous.js, this does not work in Safari.  The way you tried to do it, by putting the src in your script tag, simply won’t work (evalScripts strips out the script tags

RE: [Rails-spinoffs] Ajax.Updater and loading new javascript functions.

2006-02-17 Thread Ryan Gahl
Somewhere in your process (not sure where in your specific case)… try doing the following to inject a script element into the dom, where url is your .js path… This makes that script file get executed immediately.   var jsScript = document.createElement("script"); jsScript.setAttribute("t

[Rails-spinoffs] window.onresize event using Behaviour.js ?

2006-02-17 Thread Alex Duffield
Does any one know how to register a window.onresize event using Behaviour.jsI tryed var myrules = { 'window' : function(el){ el.> alert("Window Resized") } },}Behaviour.register(myrules); but no love.Thanks. __ Alex Duffield .

[Rails-spinoffs] Ajax.Updater and loading new javascript functions.

2006-02-17 Thread Alex Duffield
I working on rebuilding my CMS software using AJAX, and have run into a couple problems I cant seem to find the solution to. I am loading up a new component of my system using the Ajax.Updater, and it loads up the HTML fine but as the component I am loading up is fairly complicated I want to load u

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Michael Peters
Robin Haswell wrote: > Anyone who thinks spacing is better than tabs is unequivocally wrong. > No-one will ever sway me from this opinion, I am *that damn sure*. Wow, I haven't felt *that sure* about anything since I was 13... Must be nice :) -- Michael Peters Developer Plus Three, LP __

RE: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Gregory Hill
> Why does it matter how a tab is displayed in a different editor? A tab > is a tab, it denotes "indent". Furthermore, tabs are semantically > accurate, allowing different users to choose how much indentation they > want. For people with keen eyesight they can set tabs to be displayed at > one-spac

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Robin Haswell
Why does it matter how a tab is displayed in a different editor? A tab is a tab, it denotes "indent". Furthermore, tabs are semantically accurate, allowing different users to choose how much indentation they want. For people with keen eyesight they can set tabs to be displayed at one-space. Peo

[Rails-spinoffs] [Solved] : Re: sorting with D&D follows the link (browser thinks I click)

2006-02-17 Thread Alain Ravet
This problem can be solved by adding a _handle_ to restrict the part of the list element that can be used as a handle. see: http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo Alain I've just added d&d sorting to a list where each item is a link_to .. Problem: when I drop an

[Rails-spinoffs] [Solved] Re: cannot combine in_place_editor_field and a sortable list

2006-02-17 Thread Alain Ravet
This problem can be used by adding a _handle_ to restrict the part of the list element that can be used as a handle. see: http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo Alain As the title says, _sortable list_ doesn't like 'in_place_editor' very much. Problem: when

[Rails-spinoffs] Re: Forum Addition?

2006-02-17 Thread Alain Ravet
> I think we already have the best of both worlds; a forum that > posts/displays mailing list messages: > http://www.ruby-forum.com/ Don't forget gmane, that offers a newgroups facade to the list. Alain ___ Rails-spinoffs mailing list Rails-s

[Rails-spinoffs] Re: Sortable list: how to create a triggering "handle"/deactivate part of the element?

2006-02-17 Thread Alain Ravet
Thanks Stevens There's a great example of how this is done at the wiki: http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo So, in Rails View: --- part 1: <<<- HERE more stuff here that cannot b

Re: [Rails-spinoffs] Re: Forum Addition?

2006-02-17 Thread Cam McVey
Woah! I didn't know that existed! Thanks very much for the link! > I think we already have the best of both worlds; a forum that > posts/displays mailing list messages: > > http://www.ruby-forum.com/ > > Todd ___ Rails-spinoffs mailing list Rails-spin

RE: [Rails-spinoffs] Re: Forum Addition?

2006-02-17 Thread John Batchelor
I didn't know about that site. That is EXACTLY what I was looking for and talking about. Thanks! John John Batchelor wrote: > I have seriously enjoyed reading and utilizing all of the features, > additions and q/a input from the list. My question is not so much > related to > the actual co

Re: [Rails-spinoffs] Sortable list: how to create a triggering "handle"/deactivate part of the element?

2006-02-17 Thread Danger Stevens
Is there a way to either :  - limit the active/triggering "area" to a part of the element (like a luggage handle)or  - prevent a part of the element from triggering the sort mode? There's a great example of how this is done at the wiki: http://wiki.script.aculo.us/scriptaculous/show/SortableList

[Rails-spinoffs] Re: Forum Addition?

2006-02-17 Thread Todd Ross
John Batchelor wrote: > I have seriously enjoyed reading and utilizing all of the features, > additions and q/a input from the list. My question is not so much > related to > the actual code, but more along the lines of the "list" we utilize to > communicate. I was wondering if there was an "offic

RE: [Rails-spinoffs] Re: Sortable Tree Addition [PATCH]

2006-02-17 Thread Ryan Gahl
:-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Lear Sent: Friday, February 17, 2006 10:34 AM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Re: Sortable Tree Addition [PATCH] * Ryan Gahl wrote (17/02/06 16:26): > > Releasi

RE: [Rails-spinoffs] RE: Re: RE: Sortable Tree Addition [PATCH]

2006-02-17 Thread Ryan Gahl
Alright alright, let's call a truce... I appreciate where you're coming from, but I still stand on my points too. Gregory Hill wrote: > The solution to this is simple. > > You make your own js file that overrides functions from the trunk. Then > you can update the trunk and your changes are sti

RE: [Rails-spinoffs] Forum Addition?

2006-02-17 Thread John Batchelor
I got a weird page that said: Start migration to new server, please wait 4h! Tnx to all people, your forum move on new power server struct, with many new features like: email owner anti hack google pr and dmoz check for search engine optimization category html fix change swf logo (before only st

RE: [Rails-spinoffs] Forum Addition?

2006-02-17 Thread Ivo Toby
On Fri, 2006-02-17 at 09:37 -0700, Gregory Hill wrote: > > I have seriously enjoyed reading and utilizing all of the features, > > additions and q/a input from the list. My question is not so much > related > > to > > the actual code, but more along the lines of the "list" we utilize to > > communi

RE: [Rails-spinoffs] RE: Re: RE: Sortable Tree Addition [PATCH]

2006-02-17 Thread Gregory Hill
The solution to this is simple. You make your own js file that overrides functions from the trunk. Then you can update the trunk and your changes are still included in your own file. Greg ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails

RE: [Rails-spinoffs] Forum Addition?

2006-02-17 Thread Gregory Hill
> I have seriously enjoyed reading and utilizing all of the features, > additions and q/a input from the list. My question is not so much related > to > the actual code, but more along the lines of the "list" we utilize to > communicate. I was wondering if there was an "official" forum for all > th

[Rails-spinoffs] RE: Re: RE: Sortable Tree Addition [PATCH]

2006-02-17 Thread Todd Ross
Ryan Gahl wrote: > How can anything related to a such a small little script library like > prototype and scriptaculous be viewed as a maintenance nightmare? I mean > we're talking about 6, 7 files tops, none of which are any larger than a > few hundred lines. So it takes all of 30 minutes, maybe an

[Rails-spinoffs] Re: Sortable Tree Addition [PATCH]

2006-02-17 Thread Chris Lear
* Ryan Gahl wrote (17/02/06 16:26): > > Releasing code that offers new functionality at a cost of $0 to anyone > who wants to use it is doing everyone a HUGE service, no matter what way > you want to look at it. ... and I'm a beneficiary. I've incorporated Ryan Gahl's dragdrop.js enhancements my

RE: [Rails-spinoffs] Re: RE: Sortable Tree Addition [PATCH]

2006-02-17 Thread Ryan Gahl
How can anything related to a such a small little script library like prototype and scriptaculous be viewed as a maintenance nightmare? I mean we're talking about 6, 7 files tops, none of which are any larger than a few hundred lines. So it takes all of 30 minutes, maybe an hour, to incorporate the

[Rails-spinoffs] Forum Addition?

2006-02-17 Thread John Batchelor
I have seriously enjoyed reading and utilizing all of the features, additions and q/a input from the list. My question is not so much related to the actual code, but more along the lines of the "list" we utilize to communicate. I was wondering if there was an "official" forum for all these awes

[Rails-spinoffs] Re: RE: Sortable Tree Addition [PATCH]

2006-02-17 Thread Todd Ross
Ryan Gahl wrote: > Anyway, my point was, Sammi offered a great contribution and was replied > to with "...and did you just change the indentation for the fun of it"? That wasn't in relation to my tabs vs spaces critique. It was a changed line that had no functional differences. > I change the i

RE: [Rails-spinoffs] Add new lists to existing sortables container

2006-02-17 Thread Ryan Gahl
Hi Duncan,   Welcome to the list. My very first thought in this matter is that you may possibly be using AJAX where it’s not warranted. Is there a real benefit in not just creating the whole menu structure up front? Are you sending a request to the server every single time someone tried t

[Rails-spinoffs] Add new lists to existing sortables container

2006-02-17 Thread Duncan Austin
Hi All,   I'm using scriptaculous for the first time. I'm creating a CMS where the user can simply drag menu items to change the order. This is all simple enough. My problem comes with nested menus. The sortables are fine within their own menu but not across other new menus. The reason for this i

RE: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Ryan Gahl
Nope that wasn't me, although that is a fair thing to say. var len = myArray.length; for (var i = 0; i < len; i++) { ..doSomething } Is more efficient than... for (var i = 0; i < myArray.length; i++) { ..doSomething } And in fact, I have modified my copy of prototype.js, replac

RE: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Ryan Gahl
Oh ok, that explains it. I guess I never thought tabs were formatted so differently across IDEs/editors... shouldn't most editors allow changing how tabs behave (just like as you mentioned for soft tabs)? Anyway, my point was, Sammi offered a great contribution and was replied to with "...and did

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Nicolas Terray
On 2/17/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: > Not my modifications... I was just replying to your comment. I have no > desire to get my modifications in any official release. I contribute my > improvements to this list... those that want to use them can, and that's > that. > Sorry, I think th

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Thomas Fuchs
Tabs are evil, because they're formatted in different ways on different editors. Your text editor should allow for switching to soft spaces when you hit tab. The official scriptaculous/prototype/rails style is 2 spaces instead of a tab. You do use an editor that allows for this, do you...?

RE: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Ryan Gahl
Not my modifications... I was just replying to your comment. I have no desire to get my modifications in any official release. I contribute my improvements to this list... those that want to use them can, and that's that. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTE

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Nicolas Terray
On 2/17/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: > If said library is not performing the tasks you need it to in an optimal > manner, modify and modify now. The alternative is what, live with a slow > application without the features you need? > Yes, I understand. But why does your modifications h

RE: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Ryan Gahl
Sammi, I didn't look at the code, but I would say, keep sending your stuff, good stuff. As far as any official patch, who knows. The people that need/want the functionality you are offering will take it and run with it. Those that don't want a modified core file will figure out how to take your stu

Re: [Rails-spinoffs] Scriptaculous XSLT-sheet available for download

2006-02-17 Thread Mark Chadwick
Ivo, This is really cool!  Thanks! -MarkOn 2/17/06, Ivo Toby <[EMAIL PROTECTED]> wrote: Hiya!Being very impressed and pleased with scriptaculous I decided to addseveral features of it into a Web Publishing System I'm building.This WPS (as I fondly call it) makes extensive use of XML/XSLttranslati

RE: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Ryan Gahl
If said library is not performing the tasks you need it to in an optimal manner, modify and modify now. The alternative is what, live with a slow application without the features you need? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nicolas Terray Sent

RE: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Ryan Gahl
Sammi, check out some of my recent past posts in the archives RE: improving the performance of dragdrop.js... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sammi Williams Sent: Friday, February 17, 2006 4:33 AM To: rails-spinoffs@lists.rubyonrails.org

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Jerod Venema
Hey Sammi,Haven't had a chance to look at the details yet, but thanks in advance...I was looking at doing some of this crap myself, so regardless of the outcome, if your code works at all, it has saved me some time :-D. -JerodOn 2/17/06, Todd Ross <[EMAIL PROTECTED]> wrote: > Prototype is a BSD-lic

[Rails-spinoffs] Sortable list: how to create a triggering "handle"/deactivate part of the element?

2006-02-17 Thread Alain Ravet
Hi all, When using sortable lists, a click anywhere in a element will trigger the "sort_by_dragging" mode, and have the clicked element follow the mouse. The active area is the entire element. Is there a way to either : - limit the active/triggering "area" to a part of the element (like

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Todd Ross
> Prototype is a BSD-licensed package; why would they accept code Bad form to reply to yourself, but I caught this after sending it. Prototype is MIT-licensed. Todd ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyo

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Todd Ross
On 2/17/06, Maninder, Singh <[EMAIL PROTECTED]> wrote: > Remove the "+" and change it to " " (space) > http://www.oriontransfer.co.nz/Sortable List v2.zip That did the trick. Thanks. So, onto the feedback for Sammi: 48,62d47 > /* Copyright Sammi Williams 2006 Released under GPLv2 */ > Object.ke

RE: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Maninder, Singh
Remove the "+" and change it to " " (space) http://www.oriontransfer.co.nz/Sortable List v2.zip ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Todd Ross
On 2/17/06, Sammi Williams <[EMAIL PROTECTED]> wrote: > Files modified were dragdrop.js and prototype.js. Unless your modifications to prototype.js are /very/ generic and useful to a wider audience than just people who want to sort trees, then it's not likely to happen. > http://www.oriontransfer

[Rails-spinoffs] Scriptaculous XSLT-sheet available for download

2006-02-17 Thread Ivo Toby
Hiya! Being very impressed and pleased with scriptaculous I decided to add several features of it into a Web Publishing System I’m building. This WPS (as I fondly call it) makes extensive use of XML/XSLt translations. To offer some nice visual effects to customers I made a XSL-stylesheet which all

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Nicolas Terray
On 2/17/06, Sammi Williams <[EMAIL PROTECTED]> wrote: > Files modified were dragdrop.js and prototype.js. > Is it a real need ? I am not really happy with having to modify external library :( ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrai

[Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Sammi Williams
Hello, here is the initial patch for support for sortable trees. Please as many people download this code and test with your lists and feel free to add more list tests. Files modified were dragdrop.js and prototype.js. Some new options have been added. 'treeTag' specifies the tag used to c

Re: [Rails-spinoffs] cancelling droppable if draggable dropped on different droppable

2006-02-17 Thread Nicolas Terray
On 2/16/06, Rob Clayburn <[EMAIL PROTECTED]> wrote: > > >> > > > > Could you explain please ? I don't really understand this greedy option :/ > > _ > > > if a dropables greedy is set to true then any other dropable under it > will not know that a dropable has been dropped on it. > > For my case mak

RE: [Rails-spinoffs] Released: window dialog script

2006-02-17 Thread Irfan, Ghouseuddin Syed
No, I tried drag and resize using the handle in the right corner. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Maninder, SinghSent: Friday, February 17, 2006 2:15 PMTo: rails-spinoffs@lists.rubyonrails.org; [EMAIL PROTECTED]; Ryan Gah

RE: [Rails-spinoffs] Released: window dialog script

2006-02-17 Thread Maninder, Singh
I couldn't reproduce this in both IE & Firefox. What version & what browser are you testing this in?   Also, "resizing the window to minimum" - you are clicking on the "_"minimize graphic - right? -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf O

RE: [Rails-spinoffs] Released: window dialog script

2006-02-17 Thread Irfan, Ghouseuddin Syed
There are some issues though when you try resizing the window to the minimum. It throws up a _javascript_ error when you do so.   Thanks, Irfan -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Maninder, SinghSent: Friday, February 17, 2006 1:

RE: [Rails-spinoffs] Released: window dialog script

2006-02-17 Thread Maninder, Singh
I tried it in Safari - I did not get any javascript error. But, the script seemed like it is not working. However, my take on it is that because of the dialog window (unless it is first closed) we can't move the other windows, the problem is happening. The dialog window seems to be placed outsid