Re: [Rails-spinoffs] [OT] Of the good use of var

2006-07-04 Thread Nicolas Terray
On 7/4/06, Alexander Presber <[EMAIL PROTECTED]> wrote: For the scoping issue you might want to read this: http://www.iamcal.com/publish/articles/js/scoping/ Cheers, Alex Many, many thanks 8) Nicolas ___ Rails-spinoffs mailing list Rails-spinoffs@l

Re: [Rails-spinoffs] [OT] Of the good use of var

2006-07-04 Thread Nicolas Terray
after all. It seems that I'm using bad keywords for google because I'm not able to find a useful tutorial on this specific point. Nevertheless you've answered the question ! cheers, Alex Thanks, Nicolas Terray ___ Rails-spino

Re: [Rails-spinoffs] [OT] Of the good use of var

2006-07-04 Thread Nicolas Terray
On 7/4/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I don't knowMaybe you should learn how to program in javascript in general.. http://javascriptkit.com/javatutors/index.shtml lol. Thanks for the suggestion. However I have built successfully some application with huge use of javascript/

Re: [Rails-spinoffs] [OT] Of the good use of var

2006-07-04 Thread Nicolas Terray
8< What is the scope of the inner v ? For global variables should I use the inner var ? should I use v directly ? should I use window[] syntax ? Thanks, Nicolas Terray ___ Rails-spinoffs mailing list Rails-spinoffs

[Rails-spinoffs] [OT] Of the good use of var

2006-07-04 Thread Nicolas Terray
ork) in some version of IE6. I thought that this keyword was not mandatory but now I doubt. Any help or pointers on the subject will be more than welcome. Thanks, Nicolas Terray ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http:/

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

2006-06-19 Thread Nicolas Terray
I've used /IE7/ in the past to work with transparency. However it is not the prototype way. http://dean.edwards.name/IE7/ On 6/19/06, Sam <[EMAIL PROTECTED]> wrote: Is there a prototype / extension which will assist in cross-browser support of PNG images? http://www.alistapart.com/articles/pn

Re: [Rails-spinoffs] enumerables problem?

2006-05-24 Thread Nicolas Terray
On 5/24/06, Marco M. Jaeger <[EMAIL PROTECTED]> wrote: I was wondering whether anybody could please tell me why this is causing an error in IE (works in Firefox): $A(container.getElementsByTagName('*')).each( function(el) { Element.cleanWhitespace(el); }.bind(this)); What would be an

Re: [Rails-spinoffs] using Singleton with Prototype

2006-05-22 Thread Nicolas Terray
x27; ' + o2.a); ---8<-- Anyway it is not a real singleton since it is possible to call the constructor outside from instance() Furthermore, by hacking Foo, I do not know if I break something by adding _instance and instance() :-\ Yours, Nicolas Terray _

Re: [Rails-spinoffs] [ANN] My Tooltips contribution

2006-05-04 Thread Nicolas Terray
On 5/4/06, jeff emminger <[EMAIL PROTECTED]> wrote: nice work - one suggestion would be to constrain the tooltip to the viewport's dimensions, e.g. so it doesn't cause scrollbars or appear off the edge of the screen And to be able to customize the effect (type, duration) would be fine also :)

Re: [Rails-spinoffs] Set Speed of Combinational Effects

2006-04-10 Thread Nicolas Terray
On 4/10/06, Daniel Elmore <[EMAIL PROTECTED]> wrote: > Could someone please tell me why this wouldn't be working??? > > new Effect.Squish('APhoto', {duration:3.0} ); > > Because your extra parameter are not taken into account. If you look at the effect.js code, you will see that Effect.Squish does

Re: [Rails-spinoffs] function onComplete how to overload?

2006-04-06 Thread Nicolas Terray
On 4/6/06, Grzesiek Slusarek <[EMAIL PROTECTED]> wrote: > > What is the need ? Where does param1 come from ? > > Well that was only definition of the funcion, where it come from? > I want to put param1 in the Ajax.Request object: > var myAjax = new Ajax.Request( > url, >

Re: [Rails-spinoffs] function onComplete how to overload?

2006-04-06 Thread Nicolas Terray
On 4/6/06, Grzesiek Slusarek <[EMAIL PROTECTED]> wrote: > Hi all. I my apps I need to use Ajax.Request Object. One of the object > options is onComplete fuction which looks like this: > funcion onComplete (originalResponse) > { > ..some operations > } > I need pass to function one more parameter,

[Rails-spinoffs] Re: evalScript && onComplete

2006-03-31 Thread Nicolas Terray
On 3/31/06, Nicolas Terray <[EMAIL PROTECTED]> wrote: > I have an Ajax.Updater with evalScript = true and I would like to > execute some javascript *after* the scripts in the answer have been > eval'ed. > How can I do that ? > I don't know if my question was clear

[Rails-spinoffs] evalScript && onComplete

2006-03-31 Thread Nicolas Terray
Howdy all, I have an Ajax.Updater with evalScript = true and I would like to execute some javascript *after* the scripts in the answer have been eval'ed. How can I do that ? I've tried with onComplete, but onComplete seems to be fired before the inner scripts. Thanks, Nicolas ___

Re: [Rails-spinoffs] problems with ".this"

2006-03-24 Thread Nicolas Terray
this.array.each((function(element){ alert(element); alert(this.variable); }).bind(this)); Hope this helps, Nicolas ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.o

Re: [Rails-spinoffs] Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Nicolas Terray
On 3/17/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: > It's a FF bug, man, upgrade. > I'm using Fx 1.0.7 (FC3), I'm using prototype and therefore $(), and I havn't those errors. Do you have a short snippet of code which produce this exception ? ___ Rails-spi

Re: [Rails-spinoffs] sub-selection with $

2006-03-15 Thread Nicolas Terray
should use class instead. > > > > Then with prototype : > > var my_elements = document.getElementsByClassName('li0'); > > > > Hope this helps, > > Nicolas Terray > > > > On 3/15/06, oo00oo <[EMAIL PROTECTED]> wrote: > > > >

Re: [Rails-spinoffs] sub-selection with $

2006-03-15 Thread Nicolas Terray
Hi oo00oo (!) "name" is not a standard attribute for li elements. You should use class instead. Then with prototype : var my_elements = document.getElementsByClassName('li0'); Hope this helps, Nicolas Terray On 3/15/06, oo00oo <[EMAIL PROTECTED]> wrote: > He

Re: [Rails-spinoffs] [Prototype] Ajax.Request include form fields?

2006-03-09 Thread Nicolas Terray
On 3/9/06, Ben Anderson <[EMAIL PROTECTED]> wrote: > Hi, > Is it possible to submit my form (or part of my form) with an ajax > request? I had been using dojo to do this, but having just read up on > the prototype library, I think I'd rather use prototype. The one > thing I don't see (maybe I'm j

Re: [Rails-spinoffs] maintaining application state/urls

2006-03-08 Thread Nicolas Terray
On 3/8/06, Tom Riley <[EMAIL PROTECTED]> wrote: > > > On 8 Mar 2006, at 13:24, Maninder, Singh wrote: > > > Check out Really Simple History: > > http://codinginparadise.org/projects/dhtml_history/README.html > > > > Yes, that's the one i was thinking of. > > > Now also adopted by google. > > I'm cu

Re: [Rails-spinoffs] Override CSS hover

2006-03-07 Thread Nicolas Terray
On 3/7/06, Andreas Wahlin <[EMAIL PROTECTED]> wrote: > Is there some way to simply override CSS rules specified in a CSS file? > Scenario being that scriptaculous effects would be nicer to have on > things like :hover, but wishing to keep CSS "effects" for people > without javascript. > Specifik in

Re: [Rails-spinoffs] Ajax.InPlaceEditor - disabling the yellow highlight?

2006-03-06 Thread Nicolas Terray
On 3/3/06, John Beppu <[EMAIL PROTECTED]> wrote: > I tried that and it seemed to work, but Firefox's Javascript console > was spewing a lot of warnings about #NaNNanNan not being a valid color > every time I rolled over an in-place editor. > I think that the highlightcolor must be a real, full hex

Re: [Rails-spinoffs] [PATCH] Effect.Accordion (not from the wiki)

2006-03-03 Thread Nicolas Terray
I love real live examples, do you have one ? :) On 3/3/06, Robin Haswell <[EMAIL PROTECTED]> wrote: > Oops, should provide an example: > > > > Heading> > > Content geoes here > Etc.. > >

Re: [Rails-spinoffs] Re: How to use the sortable_element tagname option?

2006-03-03 Thread Nicolas Terray
On 3/3/06, Sean Mountcastle <[EMAIL PROTECTED]> wrote: > > Could you try to replace :tagname by :tag ? > > Thanks Nicolas, that seems to have fixed the tr vs 'tr' issue. The > version of dragdrop.js I have (from Rails 1.0) has the following > comment which threw me off: > tag: 'li',

Re: [Rails-spinoffs] How to use the sortable_element tagname option?

2006-03-03 Thread Nicolas Terray
On 3/3/06, Sean Mountcastle <[EMAIL PROTECTED]> wrote: > I'm having some difficulty adding drag-and-drop sorting to my > application. I'm hoping that someone can help me figure out what I'm > doing wrong: > > #view > > ... > > > > ... > <%= sortable_element('item-list-body', >

Re: [Rails-spinoffs] sortable tree?

2006-03-01 Thread Nicolas Terray
On 3/1/06, Nicolas Terray <[EMAIL PROTECTED]> wrote: > With an unmodified version(1.5.3) of scriptaculous (i.e. without the > link provided before) I've just made this : > --8< [snip] > --8< > Is this the behaviour you want ? > Of course

Re: [Rails-spinoffs] sortable tree?

2006-03-01 Thread Nicolas Terray
On 3/1/06, Frank Schummertz <[EMAIL PROTECTED]> wrote: > It even works too good - my categories/subcategories do not change their > levels. I have a two-level tree only at the moment (ok, its not really a > tree, but this might change in the future). Can I avoid this behaviour? > With an unmodifie

Re: [Rails-spinoffs] sortable tree?

2006-03-01 Thread Nicolas Terray
On 3/1/06, Frank Schummertz <[EMAIL PROTECTED]> wrote: > And it seems that I have to change prototype.js and scriptaculous files > too which I would like to avoid if possible. > > Is there chance to get this incorporated in both libs as standard > functionality? > There was a little debate on this

Re: [Rails-spinoffs] sortable tree?

2006-03-01 Thread Nicolas Terray
Hello, and welcome ! Please have a look at this : http://www.oriontransfer.co.nz/Sortable%20List%20v2.zip Does it feeds your needs ? On 3/1/06, Frank Schummertz <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi *, > > I am new to this list, so please excuse me if

Re: [Rails-spinoffs] EventPublisher (contribution)

2006-03-01 Thread Nicolas Terray
Thank you a lot for explanations ! 8) On 2/28/06, Ryan Gahl <[EMAIL PROTECTED]> wrote: > > I got a lot of great help yesterday on my calendar questions. Makes me want > to post another contribution :-) > > This one is called EventPublisher. This was packaged also in Marco Jaeger's > recent post wi

Re: [Rails-spinoffs] New to Ajax

2006-02-24 Thread Nicolas Terray
On 2/24/06, charl souma <[EMAIL PROTECTED]> wrote: > > Droppables.add(dropme, {accept: 'dragme' onDrop: function(element)}); > > > Hello and welcome ! Don't you forget a comma in your parameters ? ___ Rails-spinoffs mailing list Rails-spinoffs@lists.

Re: [Rails-spinoffs] Announcing new project...

2006-02-24 Thread Nicolas Terray
Hi, I think that the xml schema is not clear ---8<- myPicture_small.jpg myPicture.jpg ---8<- we don't know where the thumbnail must go. Ho yes, I've guessed that it is the first, but I don't really like this kind of conventions. I will pref

Re: [Rails-spinoffs] 'this.initialize' is null or not an object

2006-02-22 Thread Nicolas Terray
With new Effect.Parallel instead of Effect.Parallel I have no errors in Fx 1.5 On 2/22/06, Joe Hudson <[EMAIL PROTECTED]> wrote: > > > Hi, working on the accordion widget and it's actually working nice (doesn't > seem to be jumpy) now but I am receiving a javascript error in IE 6. Does > anybody

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

2006-02-18 Thread Nicolas Terray
On 2/17/06, Sammi Williams <[EMAIL PROTECTED]> wrote: > The only actual file you need to update is dragdrop.js > > It 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

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 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 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

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] cancelling droppable if draggable dropped on different droppable

2006-02-16 Thread Nicolas Terray
On 2/16/06, Rob Clayburn <[EMAIL PROTECTED]> wrote: > Rob Clayburn wrote: > > > > > > Or alternatively how can I ensure that a droppable is only activated > > if my dragable is dropped out side of my image manager window? > > > > Many thanks > > Rob > > > > > To answer my own question I made ea

Re: [Rails-spinoffs] Re: Retrieve a property defined in a css

2006-02-16 Thread Nicolas Terray
On 2/16/06, SPENDLOVE, Matt, FM <[EMAIL PROTECTED]> wrote: > You can use Element.getStyle() in later versions of prototype.js > . > > Best > > Matt > Thanks for your fast answer. However, Element.getStyle does not feed my needs, because I ha

[Rails-spinoffs] Re: Retrieve a property defined in a css

2006-02-16 Thread Nicolas Terray
On 2/16/06, Nicolas Terray <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a property, defined in an external stylesheet: > > .my_class { >background-color: #FF; > } > > > I want to retrieve the value of this background-color of the class my_class.

[Rails-spinoffs] Retrieve a property defined in a css

2006-02-16 Thread Nicolas Terray
Hi all, I have a property, defined in an external stylesheet: .my_class { background-color: #FF; } I want to retrieve the value of this background-color of the class my_class. How can I do that with prototype/scriptaculous ? Thanks in advance, Nicolas Terray

Re: [Rails-spinoffs] Scriptaculous and Prototype based Rich Text Editor

2006-01-02 Thread Nicolas Terray
refox/1.0.7 Regards, Nicolas Terray On 12/22/05, Pelle Braendgaard <[EMAIL PROTECTED]> wrote: > Hi Guys, > I'm currently using the Dojo Rich text editor on my site > https://wideword.net but am not 100% happy with it as I'm a prototype > kind of guy. > > So I started w

Re: [Rails-spinoffs] Performance issues with Prototype

2005-12-20 Thread Nicolas Terray
3 little optimizations can improve performance! Krzysztof, I hope that your patch will be integrated soon because it is really usefull... 8) Thanks, Nicolas Terray ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Re: [Rails-spinoffs] [ANN] Prototype Enumerable, Array and Hash Documentation

2005-12-15 Thread Nicolas Terray
On 12/15/05, Maninder, Singh <[EMAIL PROTECTED]> wrote: > That works Nicolos! Thanks. > > But, I was wondering that such support is already built in javascript. > > Why did we have to wrap it in $H for this? > I use $H() only when I want to iterate over keys or value. Example var options = {} opti

Re: [Rails-spinoffs] [ANN] Prototype Enumerable, Array and Hash Documentation

2005-12-15 Thread Nicolas Terray
On 12/15/05, Maninder, Singh <[EMAIL PROTECTED]> wrote: > Suppose I have a hash - > var h = $H({name: "john doe", email: "[EMAIL PROTECTED]", msg: "say hello to > me"}); > > h.keys(); //gives me name/email/msg > h.values() //gives me john doe/[EMAIL PROTECTED]/say hello... > > What if I want to kn

Re: [Rails-spinoffs] Uncomplete hiding on Firefox 1.5

2005-12-12 Thread Nicolas Terray
27;m pretty new to this stuff so I can't help further :/ Nicolas Terray ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Re: [Rails-spinoffs] Bug in Effect.Highlight ?

2005-12-09 Thread Nicolas Terray
--8< Does any script.aculo.us guru can say if this code is horrible or if it can be use in production ? Could it be improved ? Thanks in advance, Nicolas Terray ___ Rails-spinoffs mailing list Rails-spinof

Re: [Rails-spinoffs] Bug in Effect.Highlight ?

2005-12-09 Thread Nicolas Terray
-mouseout-mouseover the first element and you will see that this solution is not acceptable... :( Nicolas Terray ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Re: [Rails-spinoffs] Bug in Effect.Highlight ?

2005-12-09 Thread Nicolas Terray
On 12/9/05, Thomas Fuchs <[EMAIL PROTECTED]> wrote: > > Am 08.12.2005 um 08:49 schrieb Nicolas Terray: > > > > If I 'mouseover' the first select box, the second will be > > highlighted. Great. > > If I 'mouseover' and rapidly 'mouseout-

[Rails-spinoffs] Re: Bug in Effect.Highlight ?

2005-12-08 Thread Nicolas Terray
On 12/8/05, Nicolas Terray <[EMAIL PROTECTED]> wrote: > Hi All, > > I've just discover scriptaculous and it is a really good library. Even > if I have some difficulties with short syntax in javascript code :/ > > I have a strange behaviour with Effect.Highlight, and

Re: [Rails-spinoffs] What does mean $(element) ?

2005-12-08 Thread Nicolas Terray
> > http://www.sergiopereira.com/articles/prototype.js.html Do you have other great urls like that about prototype in your bookmarks ? Nicolas Terray ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrai

Re: [Rails-spinoffs] What does mean $(element) ?

2005-12-08 Thread Nicolas Terray
thought that it was a syntax for references (like & in php) or some javascript-specific stuff... :) Nicolas Terray ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

[Rails-spinoffs] What does mean $(element) ?

2005-12-08 Thread Nicolas Terray
(element); ... --8<- I had never seen this syntaxe, I doesn't know where I have to search and google doesn't like $ in request :/ Thanks in advance for any explanations or urls, Nicolas Terray ___ Rails-

[Rails-spinoffs] Bug in Effect.Highlight ?

2005-12-08 Thread Nicolas Terray
ins yellow and will not anymore return to initial state. It is a bug ? a feature ? Is there a workaround ? I'm working on Firefox 1.0.7/Fedora Core 3 and it seems to be the same on IE6/Win2003 Thanks, Nicolas Terray ___ Rails-spinoffs mailing li