$(document).ready(function (){ $(".ajax").click(function() { var url = this.href; var dialog = $("#dialog"); if ($("#dialog").length == 0) { dialog = $("' . '
'.'").appendTo("body"); } // load remote content dialog.load( url, {}, function(responseText, textStatus, XMLHttpRequest) { dialog.dialog({ modal : true, width : 540, height : 400 }); } ); //prevent the browser to follow the link return false; }); }); function showContent(div){ if($("div#"+div).attr("class")=="blackboard_hide"){ $("div#"+div).attr("class","blackboard_show"); $("div#"+div).attr("style",""); }else{ $("div#"+div).attr("class","blackboard_hide"); $("div#"+div).attr("style",""); } } function save() { work_id = $("#work_id").val(); forum_id = $("#forum_id").val(); rs_id = $("#rs_id").val(); $.ajax({ contentType: "application/x-www-form-urlencoded", beforeSend: function(objeto) { $("div#confirmation").html("