Color Picker / Posts /

I would like to hide an element when the color picker pallette has loaded?

4

Hi, there is a delay as it draws the palette icon and I want to put a 'loader' gif there to show the visitor that something is happening. I can't find in your code where I would add the code to 'hide' the loader. i.e. the part in your code that executes when the pallette icon is fully drawn and displayed.

I wondered if you could point me in the right direction?

Thanks for a great bit of code. Your hard work is much appreciated.

Cheers

John :-)

John  9 years ago   viewed: 8158    

5 Answers

1

Regretfully the color picker does not have the loaded event handler.

[Admin: Now the color picker has the loaded event handler.]

Milo   9 years ago
1

Hi Milo, a big thank you for getting back to me. Not to worry. Do you have the 'un-minified' version of the code available on your site at all? I'll have a look at implementing something. Thanks again for your help. :-)

John   9 years ago
1

We've just updated the color picker  with the following improvements:

  1. The color picker will be initiated onDomReady instead of onload, so that the color picker will be available at a earlier phase without waiting for all page elements to be completely loaded.
  2. We added onColorPickerLoaded event handler as you required. But after the above onDomReady update, it seems not necessary any more. 

Please download and use the latest code

Milo   9 years ago
0
My word Milo!!! That was quick!! Excellent work!! Will download now.

Many thanks :-)


John   9 years ago
0

Just tested it out and it's now working a treat! Thanks once again :-)

John   9 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: