[ http://mc4j.org/jira/browse/STS-334?page=comments#action_10620 ]
Walter Rumsby commented on STS-334:
-----------------------------------
Hi There,
Running some very basic tests this appears to work OK in IE7. Is the value of
the timeout period significant, or is simply wrapping this in the setTimeout
good enough?
1 millisecond + the execution time of the setTimeout method seems like a really
short period of time for their to be a significant impact. Things work OK with
my test page, but with the existing page on which I notice problems these only
occur one in every 5 or so attempts to load the page. Perhaps there will still
be problems with a bigger page.
Yahoo!'s YUI JavaScript library provides an event management API that allows
you to write something like:
YAHOO.util.Event.addListener(window, 'load', function() {
// do some stuff
}
};
The "// do some stuff" part won't be run until the window has been rendered.
Obviously you don't want to add a requirement for YUI here, but there might be
some ideas in their implementation which could be useful.
If you can get back to me with an answer on the significance / impact of the
milliseconds value and if you want me to test with bigger pages (I only noticed
this problem on the largest HTML page of my application) I'm more than happy to
help.
> 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