Color Picker / Posts /

How to use the support for Ajax

6
how to use your support for ajax?the MC.ColorPicker.reload()?it give me an error when put in the ajax load,  $("#chooseColorPalette").load(folderpath 'index/layers/' id,MC.ColorPicker.reload());
Anj  10 years ago   viewed: 8934    

4 Answers

1

I think you need to:

$("#chooseColorPalette").load(folderpath+'index/layers/'+id, function(){ MC.ColorPicker.reload(); } );

Natalia   10 years ago
1
i've tried it, but it give me this error:"Uncaught TypeError: Cannot read property 'reload' of undefined "....what should i do", im new to jquery and ajax...it will help me alot if it could be solved..
Anj   10 years ago
1
It might be that MC.ColorPicker has not been populated yet? I am not quite sure.
Note: MC.ColorPicker.reload() is only supported by mcColorPicker.js. 
         MC.CustomColorPicker does not support the reload function.
Natalia   10 years ago
0
im using the customColorpicker..so that's why it did not work..is there any way to make it work?any suggestion?because it will help me a lot, and may be it will help others also..i
Anj   10 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: