Using colorpicker with MOI
Posted: Fri Sep 22, 2017 12:08 pm
I am trying to combine colorpicker (http://www.digitalmagicpro.com/jPicker/) with MOI
I have added the colorpicker class and the required ID to the js file and it seems to work but this seems a clumsy approach, also the colorpicker background is initially missing which it wasn't before combining with MOI.
Test site: http://www.webeg.net/color/acatalog/What-Colour-47.html (v14.0.3)
Page code:
<fieldset class="product-prompt">
<actinic:block if="%3cactinic%3avariable%20name%3d%22UsingColorPicker%22%20%2f%3e%20%3d%3d%20true"><p><b>Choose your cloth colour here:</b><br />
<span class="actrequired">Disclaimer text goes here</span></p></actinic:block></actinic:block>
<!--<input id="Bindedd" type="text" value="e2ddcf" class="input-border colorpicker" name="O_<actinic:variable name="ProductID" />" maxlength="1000" />-->
<script type="text/javascript">
setotherinfo('<Actinic:Variable encoding="actinic" Name="OtherInfoPrompt"/>', 'NAME="O_<Actinic:Variable Name="ProductID"/>">', '40', '1000');
</script>
</fieldset>
Thank you.
I have added the colorpicker class and the required ID to the js file and it seems to work but this seems a clumsy approach, also the colorpicker background is initially missing which it wasn't before combining with MOI.
Test site: http://www.webeg.net/color/acatalog/What-Colour-47.html (v14.0.3)
Page code:
<fieldset class="product-prompt">
<actinic:block if="%3cactinic%3avariable%20name%3d%22UsingColorPicker%22%20%2f%3e%20%3d%3d%20true"><p><b>Choose your cloth colour here:</b><br />
<span class="actrequired">Disclaimer text goes here</span></p></actinic:block></actinic:block>
<!--<input id="Bindedd" type="text" value="e2ddcf" class="input-border colorpicker" name="O_<actinic:variable name="ProductID" />" maxlength="1000" />-->
<script type="text/javascript">
setotherinfo('<Actinic:Variable encoding="actinic" Name="OtherInfoPrompt"/>', 'NAME="O_<Actinic:Variable Name="ProductID"/>">', '40', '1000');
</script>
</fieldset>
Thank you.