Answered by:
Jquery Customization

Question
-
User-1305530094 posted
Dear All,
How can I set the defaultimage option for the following Jquery plugin? I want to preload a specific image when the page loads
https://github.com/andyvr/picEdit/tree/5d83f9b120016a14aa1d237d97771a1175985e2d
Saturday, September 19, 2015 10:30 PM
Answers
-
User281315223 posted
Based on their available API, you would probably set it as follows :
$('#image').picEdit({ defaultImage: 'path/to/your/image' });
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, September 20, 2015 9:04 AM -
User61956409 posted
Hi Embryologist,
As for your problem, I agree with Rion Williams. from the link you provide, it enable us to set “defaultImage” for the plugin. And I create a sample to test it, and the code works fine.
<script type="text/javascript"> $(function() { $('.picedit_box').picEdit({ imageUpdated: function(img){ }, formSubmitted: function(){ }, redirectUrl: false, defaultImage: "http://lorempixel.com/140/140/" }); }); </script>
Best Regards,
Fei Han
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 21, 2015 4:59 AM
All replies
-
User281315223 posted
Based on their available API, you would probably set it as follows :
$('#image').picEdit({ defaultImage: 'path/to/your/image' });
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, September 20, 2015 9:04 AM -
User61956409 posted
Hi Embryologist,
As for your problem, I agree with Rion Williams. from the link you provide, it enable us to set “defaultImage” for the plugin. And I create a sample to test it, and the code works fine.
<script type="text/javascript"> $(function() { $('.picedit_box').picEdit({ imageUpdated: function(img){ }, formSubmitted: function(){ }, redirectUrl: false, defaultImage: "http://lorempixel.com/140/140/" }); }); </script>
Best Regards,
Fei Han
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, September 21, 2015 4:59 AM -
User-1305530094 posted
Thanks Guys,
Appreciate it!
Monday, September 21, 2015 5:04 AM