var APIPostToNewWindow = false;
var rtnHTML = "";
var formResultHTML = "";
// Get the Blog Post CE Form ID
var blogPostFormID = application.ptBlog2.getPostFormID();
//application.ptBlog2.scripts.loadJQuery(force=1);
application.ptBlog2.scripts.loadADFLightbox(force=1);
Building Blog Post...
// Wrap the form HTML in the LB header/footer
rtnHTML = application.ptBlog2.forms.renderAddEditForm(
formID=blogPostFormID,
dataPageId=arguments.dataPageId,
customizedFinalHtml=formResultHTML,
callback="syncBlogPost");
return rtnHTML;
var targetModule = "";
var CD_dialogName = "";
var CD_Title = "";
application.ptBlog2.scripts.loadJQuery();
application.ptBlog2.scripts.loadADFLightbox();
if ( StructKeyExists(request.params, "title") )
request.params.title = "Delete Blog Post";
targetModule = "/ADF/apps/pt_blog/datasheet-modules/delete_element_handler_posts2.cfm";
// IF in CS6.1 or greater set into 'RealTargetModule' variable
if ( application.ADF.csVersion GTE 6.1 )
realTargetModule = targetModule;
request.params.pageID = arguments.dataPageID;
request.params.formID = arguments.formID;
request.params.postID = arguments.postID;
CD_dialogName = request.params.title;
CD_Title = CD_dialogName;
var APIPostToNewWindow = false;
var rtnHTML = "";
var formResultHTML = "";
// Get the Blog Post CE Form ID
var blogFormID = application.ptBlog2.getBlogFormID();
application.ptBlog2.scripts.loadJQuery();
application.ptBlog2.scripts.loadADFLightbox();