struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Altmeier, Christian" <c.altme...@heisel.de>
Subject AW: How to set focus to html:text?
Date Mon, 27 Aug 2007 12:11:41 GMT
Omg ^^

document,getElementById('userId').focus()
        |
        v
document.getElementById('userId').focus();

<html:text property="userId" /> + styleId="userId"
-> <html:text property="userId" styleId="userId" />

Greetings


-----Ursprüngliche Nachricht-----
Von: news [mailto:news@sea.gmane.org] Im Auftrag von Cenk
Gesendet: Montag, 27. August 2007 13:52
An: user@struts.apache.org
Betreff: How to set focus to html:text?

Hi,

The previous posting was about HTML only, but this one is struts, and if anybody can help
me, i would be so grateful.

thanks

...

<body onload="document,getElementById('userId').focus()">
<html:errors/>

     <html:form action="/Login">
        <table border="0">
           <tr>
              <td>Login:</td>
              <td><html:text property="userId" /></td>
          </tr>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org

Autohaus Heisel GmbH - Handwerkstraße 2 - 66663 Merzig 
Sitz Merzig - Amtsgericht Saarbrücken HRB 63899
Geschäftsführer: Gerd Heisel

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message