Hai,<br><br>Yes i am struggling with enter Key problem.<br><br>I have attached my javascript and HTML<br><br><br>javasvript<br><br><script type="text/javascript"><br><br>var validateAdd = function(evt) {<br>
<br>$i("doAddNew").click();<br>}<br><br>var validate = function(evt) {<br>.....<br>......<br>.....<br><br>$i("doSave").click();<br>}<br><br><br>function onFileDialogCancel() {<br> <br>}<br><br>function onFileDialogFile(path) {<br>
$i("uploadfile").value=path;<br>$i("doSave").click();<br>}<br><br>var openfiledialog = function(){<br>document.FileOpenApplet.openDialog('onFileDialogFile', 'onFileDialogCancel');<br>};<br>
<br><br><br>KumuEventConf = {<br><br> 'click_<b>import</b>' : openfiledialog,<br> 'click_<b>AddNew</b>' : validateAdd,<br> 'click_<b>Save</b>' : validate<br> <br> <br>
}<br><br></script><br><br><br>Html<br><br><fieldset style="width:700px"><br><table width="90%" align="center"><br><tr><br><td><label id="yearmonthLabel"></label><br>
<span class="required" id="requiredyearmonthLabel"></span></td><br><td><input type="text" id="yearmonth" class="textbox"></input></td><br>
</tr><br><tr><br><td><label id="empcodeLabel"></label><br><span class="required" id="requiredempcodeLabel"></span></td><br><td><input type="text" id="empcode" class="textbox"></input></td><br>
</tr><br><tr><br><td><label id="empnameLabel"></label><br><span class="required" id="requiredempnameLabel"></span></td><br><td><input type="text" id="empname" size="40" class="textbox"></input></td><br>
</tr><br><br><tr><br><td colspan="2" align="left"><input type="button" id="<b>Save</b>" value="SaveLabel"></input></td><br><td align="right"><input type="text" id="uploadfile" style="display:none"/></td><br>
<td align="right"></td><br></tr><br></table><br></fieldset><br></center><br><input type="button" id="<b>doSave</b>" style="display:none"></input><br>
<div style="width:700px" align="right"><br><input type="button" id="<b>AddNew</b>" value="AddNewLabel"></input><br><input type="button" id="<b>import</b>" value="importLabel"/><input type="button"<b> id="doUpload</b>" style="display:none" value="Upload"/><br>
</div><br><center><br><br/><br><input type="button" id="<b>doAddNew</b>" style="display:none"></input><br><br><table class="container" bordercolor="#408080" border="1"><br>
<tr class="detailheading" align="center" id="headingsItems"><br><div id="isHeadDisplay"><br><td colspan="2"><label id="projectcode"/></td></div><br>
<td><input type="text" size="5" id="heading"></input><br></td><br></tr><br><tr id="secondheadingsItems"><br><div id="isSecHeadDisplay"><br>
<td align="center" colspan="2"><label id="dateheading"/></td><br></div><br><td align="center"><label id="timeLabel"/><input type="text" size="4" id="headingaaa" style="display:none"/></td><br>
</tr><br><br><tbody id="entryItemsItems"><br><tr id="<b>entryItems</b>"><br><div id="isFirst"><br><td width="30px"><input type="text" size="4" id="dates" class="txtspn" readonly="1"/></td><br>
<td width="30px"><span id="day"/></td><br></div><br><td width="60px"><input type="text" id="<b>worktime</b>"/></td><br></tr><br>
</tbody><br><br></table><br><br>If i press enter key while the input focus in worktime input of entryItems <b>AddNew </b>button get clicked(IE) and <b>doSave</b> button get clicked in Firefox.<br><br>Reagards,<br>
$B%H%^%9(B<br><br><br><br><br><br><br><div class="gmail_quote">2009/9/2 <a href="mailto:yone@abby.co.jp">yone@abby.co.jp</a> <span dir="ltr"><<a href="mailto:yone@abby.co.jp">yone@abby.co.jp</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, thomas.<br>
<br>
You might be hooking doing Enter key.<br>
<br>
Please show your JavaScript and HTML.<br>
<br>
---<br>
Masaaki Yonebayashi<br>
<br>
thomas $B$5$s$O=q$-$^$7$?(B:<br>
<div><div></div><div class="h5">> Hai,<br>
><br>
> In my project i have some textfields and some buttons.<br>
><br>
> While typing some value for input fields if i click [Enter $B%-!<(B] domethod of<br>
> some button is called.<br>
><br>
> I do not want this happen,domethod of button has to be called only if i<br>
> click the corresponding button.<br>
><br>
> How can i achieve this?<br>
><br>
> Regards,<br>
> $B%H%^%9(B<br>
</div></div>_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
</blockquote></div><br>