Log in

View Full Version : Color picker on statstool



Bok
06-11-2008, 10:17 AM
I have no idea why this is not working.

Well, not quite no idea, but no clue on how to fix it. So if anyone has good javascript skills and would like to take a look, please do..

I'm using http://www.dhtmlgoodies.com/index.html?whichScript=js_color_picker_v2

It certainly used to work and nothing has changed that I'm aware of.

Using the basic example works http://stats.free-dc.org/javascripts/color_picker/js_color_picker_v2.html

Firebug shows an error with chooseColor() in that

color_picker_form_field has no properties
color_picker_form_field.value = this.getAttribute{'rgbColor'}

Still looking :)

I have some ideas..

Bok

Bok
06-11-2008, 10:39 AM
DP fixed it for me!

woot. taught me something new about javascript at the same time..

Thanks DP !

Bok

BlackMountainCow
06-11-2008, 10:45 AM
You know, that's one of these points where code n00bs like myself just sit, watch and are grateful that there are people like you who know how to deal with these sort of problems. Donating $ is one thing. Torturing one's brain for a solution to a problem that didn't exist before - whole different story! :thumbs:

gopher_yarrowzoo
06-11-2008, 05:08 PM
Hmm wonder what DP did... I'll go look see, I just checked with the statstool now and the slider don't work yet they work in the example (go figure)
did notice a few css errors in the error console when I looked easy fixes I'll look it over and post ya the fixes someplace..

Bok
06-11-2008, 05:15 PM
You've got access to change the css too :) It's just in the /styles directory.. Guess you can see how much code there actually is here now :) And all that without all the perl scripts that manipulate the backend...

DP just pointed out to me that it should have been forms[1] instead of forms[0] as I had another form further up in the script already..

Bok

gopher_yarrowzoo
06-13-2008, 06:30 PM
The color picker now fully works (or it should may take a reload for it to work - thinking cache issues)..
"tabs" :) slider :) that slides (only if you click n drag - have ideas on that but I think it's too complex to try and emulate a windows slider)

Bok
06-13-2008, 06:35 PM
AWesome work by Gopher !!!

gopher_yarrowzoo
06-13-2008, 06:39 PM
AWesome work by Gopher !!!

:cheers::cheers: I'll have a cold one for you too mate :)
it was a "relative" issue.. :lmao: