Idottactuam
New Member
I'm creating a chunk of code that is used for a bootstrap popover. The HTML has two buttons where one of them needs to pass an object. This function is part of the fullcalendar library. Currently this gives an error: "syntaxError: missing ] after element list" This function is called multiple times when the page loads\[code\]eventRender: function (event, element) { var pop_body = '<div class="row-fluid" style="min-width:300px; z-index:999;">'+event.start+'<hr></div><br>'+event.description+'<div class="row-fluid"><div class="pull-left"><button class="btn btn-small btn-danger" onclick="removeThisEvent('+event.id+')"><i class="icon-trash"></i> Delete</button></div><div class="pull-right"><button class="btn btn-small btn-success pull-right" onclick="editEACForm('+event+');"><i class="icon-pencil"></i> Edit</button></div></div>'; element.popover({ html:true, title: event.title, placement: 'top', content: pop_body, });}\[/code\]The tag's onclick will pass an object to that function but kicks out an error. I've looked around and discovered that it's trying to convert the event object to a string underneath. How can I create a chunk of html with onclick buttons that pass objects and then store into a popover??Thx.