Wow. I figured this out, and figure I should share it: the first
method was correct, excpet I was missing the '#' mark before the
$F('cp1_Hex'). Go figure.

// Background color preview
Event.addBehavior({
        'body#colorpicker': function() {
                Event.observe(document, 'mousemove', function(event) {
                        console.log($F('cp1_Hex'));
                        $('colorpicker').setStyle( { backgroundColor:
'#'+$F('cp1_Hex') } );
                });
        }

});




Amiri
--~--~---------~--~----~------------~-------~--~----~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to