We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware,  Documentation,  Website Suggestions › Using focus on outup HTML files
Page Index Toggle Pages: 1
Using focus on outup HTML files (Read 507 times)
Using focus on outup HTML files
Sep 15th, 2006, 3:52pm
 
I have noticed that output HTML from processing have no focus properties on the applet (so that keyboard input works without the need to click on the applet).

As I come from a markup language programming background I tried to use a trick I created (aka Ignat) to control focus on frames or iframes:
http://www.webdeveloper.com/forum/showthread.php?p=587363#post587363


<body OnLoad="document.nameform.user.focus();">
<form name="nameform">
<input type=hidden name=user size=10>
</form>


This script sets focus on the page once it loads. Now setting focus on the Applet, that's the trick. I noticed the "name" tag inside the <applet> is not identified by the OnLoad function in the <body>. I been looking at forums and it seems this is widely debated, with no simple solutions apparent.

A panacea for this would enable work being presented over the web, or instalations supported by html environments, to function immediatly when loading (i.e. no mouse input to focus on the applet).
Re: Using focus on outup HTML files
Reply #1 - Oct 17th, 2006, 6:46pm
 
Quote:
I been looking at forums and it seems this is widely debated, with no simple solutions apparent.


Please let us know if you find a good solution. We would like the applet to focus, but we're always careful about adding something that is not compatible with the majority of browsers and operating systems.
Page Index Toggle Pages: 1