Hello,
If I create the content manually as follows it handles the cancelButton being pressed:
<div id='deleteUserWindow' >
<div id="deleteUserWindowHeader">
<!-- title of span is set dynamically -->
<span id="captureContainer" style="float: left">Delete User Confirmation</span>
</div>
<div id="deleteUserWindowContent" style="overflow: hidden">
</br></br>Are you sure you want to delete user:</br></br>
<input style="margin-top: 10px;" type="submit" name="Submit" value="Submit" id="submitButton" />
<input type="button" value="Cancel" id="cancelButton" />
</div>
</div>
But if I try to prepend the content and then show the window the cancel button isn’t recognized as being pressed:
var str = " Are you sure you want to delete User: " + $("#userName-" + currentId).html() + ' ?</br></br>';
var content = str + $('#deleteUserWindow').jqxWindow('content');
$('#deleteUserWindow').jqxWindow('setContent', content);
// move window and open!!
$('#deleteUserWindow').jqxWindow('open');