IE text input problem with dialogs
Hi, I have a problem with some text inputs, inside a dialog, being displayed incorrectly in IE. I'm using jQuery 1.3.2 and jQuery UI 1.7.2.
I have a very simple form inside a dialog. I'm using a table for the layout and some labels and inputs.
With webkit or mozilla everything works fine, but with IE6 and 7 (I haven't tested it with IE8) I get some shrunken inputs (check the attachment).
Has anyone faced this problem? Am I doing something that I shouldn't be doing?
Here's the code:
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>Test page</title>
- <script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
- <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
- <link type="text/css" href="css/ui-lightness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
- </head>
- <body>
- <div id="trigger-dialog" title="New trigger">
- <form id="trigger-form" action="">
- <table>
- <tbody>
- <tr>
- <td><label for="triggerID">Name:</label><em>*</em></td>
- <td><input type="text" name="triggerID" id="triggerID" maxlength="50" size="50" class="ui-widget-content ui-corner-all ui-state-default" /></td>
- </tr>
- <tr>
- <td><label for="triggerFQL">Query (FQL):</label><em>*</em></td>
- <td><textarea name="triggerFQL" id="triggerFQL" rows="7" cols="47" class="ui-widget-content ui-corner-all ui-state-default"></textarea></td>
- </tr>
- <tr>
- <td><label for="qtPipeline">QT Pipeline:</label><em>*</em></td>
- <td><input type="text" name="qtPipeline" id="qtPipeline" maxlength="50" size="50" class="ui-widget-content ui-corner-all ui-state-default" /></td>
- </tr>
- <tr>
- <td><label for="datepicker">Expiration date:</label></td>
- <td><input type="text" name="datepicker" id="datepicker" class="ui-widget-content ui-corner-all ui-state-default" /></td>
- </tr>
- </tbody>
- </table>
- </form>
- </div>
- <script type="text/javascript">
- $(function () {
- $("#datepicker").datepicker({ dateFormat: "mm/dd/yy" });
- $('#trigger-dialog').dialog({
- autoOpen: true, modal: true, width: 600, show: 'scale', hide: 'scale',
- title: 'New trigger',
- close: function(event, ui) {
- console.log('close');
- },
- buttons: {
- "OK": function() {
- console.log('ok');
- },
- "Cancel": function() {
- console.log('cancel');
- $(this).dialog('close');
- }
- }
- });
- });
- </script>
- </body>
- </html>
Cheers!