Code Snippet
- $(function () {
- $('#iDialog').dialog({
- autoOpen: false,
- width: 800,
- height: 400,
- resizable: false,
- modal: true,
- buttons: [{ text: "Ok", click: function () { $(this).dialog("close"); } }]
- });
- });
- $(document).ready(function () {
- $('#show-modal-industry').click(function () {
- $('#iDialog').load(industryUrl, function () {
- $('#iDialog').dialog('open');
- });
- return false;
- });
- });
- $(function () {
- $('#aDialog').dialog({
- autoOpen: false,
- width: 800,
- height: 400,
- resizable: false,
- modal: true,
- buttons: [{ text: "Ok", click: function () {
- alert('Hello World'); $(this).dialog("close"); } }]
- });
- });
- $(document).ready(function () {
- $('#show-modal-association').click(function () {
- $('#aDialog').load(associationUrl, function () {
- $('#aDialog').dialog('open');
- });
- return false;
- });
- });
Code Snippet
- <div id="iDialog" title="Industry">
- </div>
- <div id="aDialog" title="Association">
- </div>
- <script type="text/javascript">
- var industryUrl = '@Url.Action("GetIndustryInfo", "Home")';
- var associationUrl = '@Url.Action("GetAssociationInfo", "Home")';
- </script>
No comments:
Post a Comment