javascript - Bootbox HTML Render -


what proper method render html bootbox callback function?

the problem i'm running i'm trying make html email on callback , none of html tags rendering properly.

callback: function () {    var text = "greetings,<br /><br />" + 

thanks in advance.

try use blaze.renderwithdata or blaze.render load template containing html inside bootbox. here example

bootbox.dialog({         message: "<div id='dialoganchor'></div>",//i not sure if found.                                                   //you can set anchor div in parent document         title: "such nice modal!",         animate: true,         buttons: {             danger: {                 label: 'cancel',                 classname: "btn-default",                 callback: function() {                  }             },             success: {                 label:'done',                 classname: "btn-success",                 callback: function() {                     blaze.renderwithdata(template.yourhtml, {email:this.content}, $("#dialoganchor")[0]);                     //or alternatively                     blaze.render(template.yourhtml, $("#dialoganchor")[0]);                 }}             }}); 

Comments

Popular posts from this blog

Upgrade php version of xampp not success -

amazon web services - S3 and apache mod_proxy with basic authentication -

powershell - This solution contains one or more assemblies targeted for the global assembly cache -