[ http://mc4j.org/jira/browse/STS-334?page=all ]
Tim Fennell updated STS-334:
----------------------------
Fix Version/s: Release 1.4.3
Ok, from reading through various blog entries it would seem that the easiest
way to fix this that doesn't significantly change how it works (i.e. cause the
focus to happen much later after the field is rendered) is to wrap the current
javascript in a call to setTimeout(). E.g.
<script type="text/javascript">setTimeout("var
z=document.getElementById('database.id'); try{z.focus();z.select();} catch(e)
{}", 1)</script>
Walter: I don't have easy access to a modern IE. Can you please let me know if
this would/does work for you?
ps. I can't believe that is in this day and age IE is still this crappy! At
least just through a JS exception instead of aborting the whole page load.
Sigh.
> 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