Hi
I have passed HTML content to JQuery Confirm box, but the html tags are not parsing.
It just displays HTML code.
Need Help
.module code
...........
$my_result = '
hello.....
';
$msg_string = theme('theme_name',$my_result);
$jspath = drupal_get_path('module', 'my_module');
drupal_add_js($jspath.'/js/my_confirm_box_value.js');
// define variables you'd like to pass to the DOM
$js_vars = array(
'js_vars' => array(
'message' => $msg_string,
),
);
drupal_add_js($js_vars, 'setting');
...........
------------------------------
my_confirm_box_value.js
............
$(document).ready(function() {
var obj_edit_next = $("#edit-next");
if(obj_edit_next) {
var ans;
ans=window.confirm(Drupal.settings.js_vars.message);
if (ans==true)
{
alert('Yes');
}
else
{
alert('No');
}
}
});