[Rails-spinoffs] Re: SAU/Prototype performance

2007-01-08 Thread Thomas Fuchs
Here are the results from my Quad G5: Safari: - Browser: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/ 418.9.1 (KHTML, like Gecko) Safari/419.3 Timing 1 iterations of Prototype, Prototype.oneDiv, Prototype.oneDiv2, String.replace, String.replaceMap,

[Rails-spinoffs] Javascript/CSS question

2007-01-08 Thread Fabian Lange
Hi, I know that my question doesnt aim 100% at this group, but at least here are people that care for cross browser behaviour. Is there a guaranteed behaviour for elements having multiple classes? div class=red bluehello world/div when div.red { background-color:red;} div.blue

[Rails-spinoffs] Re: Javascript/CSS question

2007-01-08 Thread Thomas Maas
Fabian, The last style definition always wins from the the one that came before it, unless it is less specific. Like so: div class=messagecorrect /div div class=message erroroops/div div.message { color: black; background-color: green; } div.message.error { background-color: red;

[Rails-spinoffs] Re: Javascript/CSS question

2007-01-08 Thread Thomas Fuchs
See Cascading order: http://www.w3.org/TR/REC-CSS2/cascade.html#cascade Finally, sort by order specified: if two rules have the same weight, origin and specificity, the latter specified wins. Rules in imported style sheets are considered to be before any rules in the style sheet itself.

[Rails-spinoffs] Re: [OT] CSS question (was Javascript/CSS question)

2007-01-08 Thread Marius Feraru
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fabian Lange wrote: I know that my question doesnt aim 100% at this group, but at least here are people that care for cross browser behaviour. Spoofing subject doesn't help (quite the opposite). :-/ Is there a guaranteed behaviour for elements

[Rails-spinoffs] no autocompletion on FireFox

2007-01-08 Thread dweinand
Hello, i'm using the following code in my rails app. works like a charm on IE. but on FF no autocomplete popup is displayed. can somebody help? rails code: p %= text_field_with_auto_complete :person, :nachname, {}, { :select = 'name', :after_update_element =

[Rails-spinoffs] Trapping navigation errors from IFRAME's src

2007-01-08 Thread Phlip
Rails spinoffers: When I hit the following in IE, it puts up an error message Cannot find file ...bad%20url... Make sure the path is correct etc. When I hit it in Firefox I get no error. (Ironic because Firebug is installed...): iframe src='bad url' onerror='alert(yo);' / What I _want_ to

[Rails-spinoffs] Re: Borders

2007-01-08 Thread Walter Lee Davis
Maybe use the Prototype AddClass RemoveClass stuff? Walter On Jan 8, 2007, at 11:11 AM, The Manhatten Project wrote: Anyone know of, or have a custom effect for showing/hiding borders on a DIV? I cannot see one in the Effects lib? --~--~-~--~~~---~--~~

[Rails-spinoffs] Re: Javascript/CSS question

2007-01-08 Thread Fabian Lange
Hi, thanks for all the answers. I found that Spec, but was unsure if its implemented cross browser the same way. Also the dynamic adding of css classes seemed for me not 100%. As it could also be : take current style, apply what has come additionally.. But it seems everything works here as I

[Rails-spinoffs] Re: Borders

2007-01-08 Thread The Manhatten Project
Hmmm, my idea is that I could potentially create a new effect (if one does not already exist) which when onMouseOver creates a border around a span/div. I could like that onMouseOut it removes said border. I have done it normally by creating normal functions for the two mouse events but I was

[Rails-spinoffs] Prototype Calendar

2007-01-08 Thread Stripe-man
Anyone car to recommend as Prototype event caledar? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Spinoffs group. To post to this group, send email to rubyonrails-spinoffs@googlegroups.com To

[Rails-spinoffs] Re: Prototype Calendar

2007-01-08 Thread Stripe-man
I Should Mention that I am Looking to intergrate it into my CMS that Im working on... any ideas would be appreciated.. Terry ;) On 1/8/07, Stripe-man [EMAIL PROTECTED] wrote: Anyone car to recommend as Prototype event caledar? -- I have learned that you should'nt compare yourself to

[Rails-spinoffs] Re: Borders

2007-01-08 Thread Ken Snyder
The Manhatten Project wrote: Hmmm, my idea is that I could potentially create a new effect (if one does not already exist) which when onMouseOver creates a border around a span/div. I could like that onMouseOut it removes said border. I have done it normally by creating normal functions for

[Rails-spinoffs] Re: Borders

2007-01-08 Thread Christophe Porteneuve
The Manhatten Project a écrit : Hmmm, my idea is that I could potentially create a new effect (if one does not already exist) which when onMouseOver creates a border around a span/div. I could like that onMouseOut it removes said border. I If you don't need IE =6 support (OK, this is

[Rails-spinoffs] Re: Borders

2007-01-08 Thread The Manhatten Project
Hi Ken/Christophe, I actually did this in the end .. Event.observe('mydiv', 'mouseover', function(e){ Element.setStyle('mydiv', { border: '1px solid red;' } ); }); Event.observe('mydiv', 'mouseout', function(e){ Element.setStyle('mydiv', { border: '0px solid red;' } ); }); I am sure

[Rails-spinoffs] Re: Borders

2007-01-08 Thread The Manhatten Project
The Manhatten Project wrote: The Manhatten Project wrote: Hi Ken/Christophe, I actually did this in the end .. Event.observe('mydiv', 'mouseover',function(e){ Element.setStyle('mydiv', { border: '1px solid red;' } ); }); Event.observe('mydiv', 'mouseout', function(e){

[Rails-spinoffs] IE7 and scriptaculous drag/drop not working right

2007-01-08 Thread Christopher Plawchan
Have there been issues w/ posting to this group, I think this is my 12th try... oh well, lets try one more time... I have a list of draggable items that can be dropped into 1 of 7droppable receiving elements. This works perfect in Firefox 2 and Opera 9.10. In IE 7 it works correctly the first

[Rails-spinoffs] Re: Borders

2007-01-08 Thread RobG
The Manhatten Project wrote: Hi Ken/Christophe, I actually did this in the end .. Event.observe('mydiv', 'mouseover', function(e){ Element.setStyle('mydiv', { border: '1px solid red;' } ); }); Event.observe('mydiv', 'mouseout', function(e){ Element.setStyle('mydiv', { border: '0px

[Rails-spinoffs] New Article: Attributes Classes: Custom DOM Attributes for Fun and Profit

2007-01-08 Thread pete
I just published a new article, and I always appreciate feedback from this community. http://digg.com/programming/Attributes_Classes_Custom_DOM_Attributes_for_Fun_and_Profit XHTML gives us the ability to extend our markup with customized, semantically meaningful attributes. While the battle