[ http://mc4j.org/jira/browse/STS-334?page=comments#action_10621 ] Tim Fennell commented on STS-334: ---------------------------------
Your're right that 1ms doesn't seem like that much time. I have no scientiffic backing for that other than the fact that all the examples I found related to your Google Maps example used 1ms too ... so I /assume/ that works for IE either because it gives IE enough time in some bizarre way, or because it doesn't actually get run until the render is complete in IE's case. I'm familiar with the onload technique, but I don't really like it. I'm trying to avoid the case where (and, my bank does it this way) focus gets put into the field a significant amount of time after rendering. That can lead to nasty situations like (in my bank's case), the user having input his username and tabbed to the password field before the page completes loading, only to have the JS put focus back into the username field while the user types his password in! Bleuk. If you could test with the problem page with this solution I'd really appreciate it. The other reasonable solution might be to make the JS itself configurable so that if the version that ships with Stripes has any issues, it's not a big deal to change it without a release.... > Implementation of focus attribute in <stripes:form> tags can create errors in > Internet Explorer > ----------------------------------------------------------------------------------------------- > > Key: STS-334 > URL: http://mc4j.org/jira/browse/STS-334 > Project: Stripes > Issue Type: Bug > Components: Tag Library > Affects Versions: Release 1.4.2 > Environment: Internet Explorer > Reporter: Walter Rumsby > Assigned To: Tim Fennell > Fix For: Release 1.4.3 > > > From what I can tell the focus attribute of the <stripes:form> tag generates > some JavaScript in the page like this: > <script type="text/javascript">var z=document.getElementById('database.id'); > try{z.focus();z.select();} catch(e) {}</script> > This periodically causes problems for Internet Explorer because IE doesn't > allow changing HTML elements via DOM until they are fully rendered. See > [Google maps crash IE|http://vidmar.net/weblog/archive/2005/08/22/2121.aspx] > for further discussion, as things presently stand IE can prevent the page > from rendering and redirect you to an error page. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://mc4j.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Stripes-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-development
