rendered paste body<html> <head> <script type="text/javascript" src="jquery.js" /> <script type="text/javascript" src="jqmodal.js" /> <script type="text/javascript"> <!-- $(document).ready(function() { $("#dialog_box").jqm({trigger: '#create_ticket', closeClass: 'jqm-close', overlay: 0}); $('#create_ticket').click(function() { $.ajax({ type: "GET", url: 'url here', dataType: "xml", success: function(xml) { $("/responses/response", xml).each(function(i) { if ($("error", this).text() == 'false') { $("#dialog_box .jqmn-content").html($("html", $(this)).text()); } }); } }); return false; }); }); //--> </script> </head> <body> <div style="position: absolute; margin: 0 0 0 200px;"> <div id="dialog_box" style="display: none;"> <div class="jqmn-title"> <a href="#" title="close" class="jqm-close"><em>Close</em></a> </div> <div class="jqmn-content"> </div> </div> </div> <a href="#" id="create_ticket" title="Create Ticket">Create Ticket</a> </body></html>