hnd
8 Dec 2007, 1:52 AM
hi
jsscript function element.focus() doesn't work :((, when i try to set the focus control to the form field such like input or selection component (form elements)?.
The following form inside ext core
<head>
....
...
Ext.EventManager.onDocumentReady(Main.init, Main, false);
</head>
<body>
<div id ="container">
<div id="center" class="x-layout-inactive-content">
<div class="">
<form name="fform" method="post" action="">
<input type="text" name="text1" id="text1" value="">
<input type="submit" name="submit" value="Submit">
</form>
<script language="javascript">
document.getElementById("text1").focus();
</script>
</div>
</div>
</div>
</body>
DETAIL used EXTJS:
version:1.1.1 (rev 874)
adapter: ext-base.js
browser: IE6 and FF2
sorry for repost this message? ()
:-/
thank's
jsscript function element.focus() doesn't work :((, when i try to set the focus control to the form field such like input or selection component (form elements)?.
The following form inside ext core
<head>
....
...
Ext.EventManager.onDocumentReady(Main.init, Main, false);
</head>
<body>
<div id ="container">
<div id="center" class="x-layout-inactive-content">
<div class="">
<form name="fform" method="post" action="">
<input type="text" name="text1" id="text1" value="">
<input type="submit" name="submit" value="Submit">
</form>
<script language="javascript">
document.getElementById("text1").focus();
</script>
</div>
</div>
</div>
</body>
DETAIL used EXTJS:
version:1.1.1 (rev 874)
adapter: ext-base.js
browser: IE6 and FF2
sorry for repost this message? ()
:-/
thank's