Hi all,
First time poster so please excuse any protocol issues. I have spent the better part of 2 days working on this and I've nearly lost my mind.
I have two issues with the Dialog widget. I'm using jquery 2.0.3 and jquery UI 1.10.3, as well as jquery mobile 1.3.1 and various other custom scripts.
1) I can't get any custom buttons to show in any browser
2) The default 'X' close button does not work in FF or Chrome, works in IE 9 & 10.
I am using this in an html file that has two 'data-role=page' divs in it. The 2nd div is my dialog page and I call it with:
- $.mobile.changePage('#dialogPage');
My dialog page is as follows:
- <div data-role="page" id="dialogPage" class="type-home">
- <header>
- <script type="text/javascript">
- $(function () {
- $("#dialogPage").dialog({
- resizable: false,
- modal: true,
- buttons: {
- "Ok": function () {
- $(this).dialog("close");
- }
- }
- });
- });
- </script>
- <div data-role="header">
- <h2 id="txTitle"></h2>
- </div>
- </header>
- <div data-role="content">
- <h3 id="txMessage"></h3>
- </div>
- </div>
Please help!