Color Picker / Posts /

Color Picker Ajax Support

11
I love this small compact and simple color picker.

I am trying to implement it on a page where a user action brings up hidden div that is populated via an ajax call. One of the field in the resulting form that is created is a color field that I want to enhance with a color picker but nothing happens after I load the form (i.e. the field remains as before). I have the ability to run a javascript function after the ajax form is loaded to re-execute the page load code that will create the color picker but I don't know what to call.

Thanks so much for any help with this!

- Mike
Miguel de la Pena  5 years ago   viewed: 8715    

1 Answer

2
Thanks Mike for your requirement.We made an update on July 3, 2012 that will handle this. You just need to include a call
MC.ColorPicker.reload();
in the callback of your AJAX. You can also refer to the post: How can I call the colorpicker with javascript.

Note: If you are using the Custom Color Picker, and want to build the color picker dynamically, you need to call:
MC.CustomColorPicker.reload();
milo   5 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: