I Use jQuery Sticky Notes Plugin http://www.jquery-sticky-notes.com/
I Connect it with database using asp.net web service and ajax to create note and edit and delete, then i get notes from database using json array.
the problem is: i cant populate this plugin with notes from database
it use option array
jQuery(document).ready(function() {
var options = {
notes:[{"id":1,
"text":"Test Internet Explorer",
"pos_x": 50,
"pos_y": 50,
"width": 200,
"height": 200,
}]
,resizable: true
,controls: true
,editCallback: edited
,createCallback: created
,deleteCallback: deleted
,moveCallback: moved
,resizeCallback: resized
};
jQuery("#notes").stickyNotes(options);
});
note contain note properties if one note now:-
how can i populete this plugin with notes from database using this array of options
try the code below and populate
Notearray as per comments in the code, starting from line 3 (You need to place aForloop or something). and then assign the array tooption.notesas in the second last line.