Syntax for multiple notes at "startup"

39 views
Skip to first unread message

JT

unread,
Apr 14, 2010, 12:27:41 PM4/14/10
to jQuery Sticky Notes
Per the example:

var options = {notes:[{"id":1,
"text":"Test Internet Explorer",
"pos_x": 50,
"pos_y": 50,
"width": 200,
"height": 200,
}]}
jQuery("#notes").stickyNotes(options);


What would be the correct syntax for having multiple notes ?

Daniel Nowak

unread,
Apr 14, 2010, 1:12:17 PM4/14/10
to jquery-st...@googlegroups.com
Hello,

the correct syntax would be:

notes:[{"id":1,
"text":"Test Internet Explorer",
"pos_x": 50,
"pos_y": 50,
"width": 200,
"height": 200,

}, {"id":2,
"text":"Test Firefox",
"pos_x": 150,


"pos_y": 50,
"width": 200,
"height": 200,
}]

Best regards

Daniel

> --
> To unsubscribe, reply using "remove me" as the subject.
>

Reply all
Reply to author
Forward
0 new messages