Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 98270 invoked from network); 14 Dec 2010 18:14:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Dec 2010 18:14:13 -0000 Received: (qmail 17002 invoked by uid 500); 14 Dec 2010 18:14:13 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 16959 invoked by uid 500); 14 Dec 2010 18:14:13 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 16951 invoked by uid 99); 14 Dec 2010 18:14:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Dec 2010 18:14:13 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [195.222.206.181] (HELO mail.starfinanz.de) (195.222.206.181) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Dec 2010 18:14:08 +0000 Received: from sfxchg3.starfinanz.de (sfxchg3.starfinanz.de [172.20.10.126]) by mail.starfinanz.de (Postfix) with ESMTP id 98A2A68154 for ; Tue, 14 Dec 2010 19:13:30 +0100 (CET) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CB9BBA.A8056D64" Subject: AW: AW: AW: request focus in my pivot applet on page load Date: Tue, 14 Dec 2010 19:13:48 +0100 Message-ID: <7E55586C3DAB3345A31428CE628FFE150184F991@sfxchg1.starfinanz.de> In-Reply-To: <509610A5-C6FD-43EA-977F-6AC6F42365CC@verizon.net> References: <7E55586C3DAB3345A31428CE628FFE150184F973@sfxchg1.starfinanz.de> <0E781F55-AF10-4376-BF8C-C38DE5C1441A@verizon.net> <7E55586C3DAB3345A31428CE628FFE150184F978@sfxchg1.starfinanz.de> <848E6463-F975-4A01-BF4F-29C2B9AA0601@verizon.net> <7E55586C3DAB3345A31428CE628FFE150184F979@sfxchg1.starfinanz.de> <509610A5-C6FD-43EA-977F-6AC6F42365CC@verizon.net> From: "Felix Eckhardt" To: This is a multi-part message in MIME format. ------_=_NextPart_001_01CB9BBA.A8056D64 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hey Greg, =20 it's not a JDK issue. I've tested this with a simple Applet and a pivot example. =20 Applet Version (immediate focus works): http://betrunken.de/media/appletFocusDemo/appletPlainDemo.html =20 Pivot Version (immediate focus doesn't work): http://betrunken.de/media/appletFocusDemo/pivotPlainDemo.html =20 Try to start typing after reload. It works only for the applet version. =20 You can download the source from: http://betrunken.de/media/appletFocusDemo/demoApplet.jar =20 Any clue? Thanks again for your help! =20 =20 Von: Greg Brown [mailto:gk_brown@verizon.net]=20 Gesendet: Dienstag, 14. Dezember 2010 16:11 An: user@pivot.apache.org Betreff: Re: AW: AW: request focus in my pivot applet on page load =20 I don't have such an example. :-) But this is more of a JDK issue than something specific to Pivot. Maybe you can find an answer on oracle.com? =20 On Dec 14, 2010, at 10:02 AM, Felix Eckhardt wrote: Thanks for you quick help! I've tried it on: =20 Chrome 8.0.522.215 Firefox 3.6.13 =20 I would really appreciate, if you could send me a running html + pivot applet, which gain's the focus automaticly on page load. =20 Felix =20 Von: Greg Brown [mailto:gk_brown@verizon.net]=20 Gesendet: Dienstag, 14. Dezember 2010 15:52 An: user@pivot.apache.org Betreff: Re: AW: request focus in my pivot applet on page load =20 What web browser are you using? =20 On Dec 14, 2010, at 9:34 AM, Felix Eckhardt wrote: I've already done that. Here is my code: =20 =20 I also tried to set the focus with a delay using a javascript timer. But nothing works. The cursor is blinking inside the TextInput, but I can't start typing without clicking on the applet. =20 =20 Von: Greg Brown [mailto:gk_brown@verizon.net]=20 Gesendet: Dienstag, 14. Dezember 2010 15:16 An: user@pivot.apache.org Betreff: Re: request focus in my pivot applet on page load =20 You may also need to request focus to the applet itself in the HTML page, using JavaScript. I haven't tried it myself, but it should work. Let me know how it goes. =20 On Dec 14, 2010, at 8:55 AM, Felix Eckhardt wrote: How do I request focus for my applet after a page load, which is inside a html page. The applet should be the first item which receives the focus after a page reload. =20 I tried requestFocus() on my components inside my applet (even with a timer delayed), but I always have to click on the applet with my mouse to gain focus and be able to start typing in a TextInput. =20 What I am doing wrong? Thank you for your help! =20 Greetings Felix =20 =20 =20 ------_=_NextPart_001_01CB9BBA.A8056D64 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hey Greg,

 

it’s not a JDK issue. I’ve tested this with a simple = Applet and a pivot example.

 

Applet Version (immediate focus works):

h= ttp://betrunken.de/media/appletFocusDemo/appletPlainDemo.html

 

Pivot Version (immediate focus doesn’t = work):

ht= tp://betrunken.de/media/appletFocusDemo/pivotPlainDemo.html

 

Try to start typing after reload. It works only for the applet = version.

 

You can download the source from:

http://= betrunken.de/media/appletFocusDemo/demoApplet.jar

 

Any clue? Thanks again for your help!

 

 

Von:<= /b> = Greg Brown [mailto:gk_brown@verizon.net]
Gesendet: Dienstag, = 14. Dezember 2010 16:11
An: = user@pivot.apache.org
Betreff: Re: AW: AW: request focus in my = pivot applet on page load

 

I don't have = such an example.  :-)  But this is more of a JDK issue than = something specific to Pivot. Maybe you can find an answer on oracle.com?

 

On = Dec 14, 2010, at 10:02 AM, Felix Eckhardt wrote:



Thanks for you quick help! I’ve tried it  = on:

 

Chrome 8.0.522.215

Firefox 3.6.13

 

I would really appreciate, if you could send me a running html + = pivot applet, which gain’s the focus automaticly on page = load.

 

Felix

 

Von:<= /b> Greg Brown = [mailto:gk_brown@verizon.net] 
Gesendet: Dienstag, 14. Dezember 2010 = 15:52
An: user@pivot.apache.org
Bet= reff: Re: AW: = request focus in my pivot applet on page = load

 

What web browser are you = using?

 

On Dec 14, 2010, at 9:34 AM, Felix Eckhardt = wrote:




I’ve already done that. Here is my = code:

 

<body onload=3D"onload();">

      <script type=3D"text/javascript">

      onload =3D function()     = {

         &= nbsp;  document.getElementById('applet').focus();

<= p class=3DMsoNormal>      = }

</script>

      <applet code=3D"org.apache.pivot.wtk.BrowserApplicationContext$= HostApplet"

           <= span class=3Dapple-converted-space> id=3D"applet"

           <= span class=3Dapple-converted-space> codebase=3D"http://localhost:8080/demo/t= est/lib" width=3D"360"

<= /div>

           <= span class=3Dapple-converted-space> height=3D"380">

         &= nbsp;  <param name=3D"archive"

           &= nbsp;      value=3D"demoPivot.jar,pivot-core-1.5.1.jar,pivot-we= b-1.5.1.jar,pivot-wtk-1.5.1.jar,pivot-wtk-terra-1.5.1.jar" />

<= div>

         &= nbsp;  <param name=3D"application_class_name"

           &= nbsp;      value=3D"com.example.applet.demo.DemoPivot" />

<= div>

         &= nbsp;  <param name=3D"java_arguments" value=3D"-Dorg.apache.pivot.wtk.debugfocus=3Dtrue"<= /span>/>

      </applet>

</body>

 

I also tried to set the focus with a delay using a javascript timer. = But nothing works. The cursor is blinking inside the TextInput, but I = can’t start typing without clicking on the = applet.

 

 

Von:<= /b> Greg Brown = [mailto:gk_brown@verizon.net] 
Gesendet: Dienstag, 14. Dezember 2010 = 15:16
An: user@pivot.apache.org
Bet= reff: Re: request = focus in my pivot applet on page = load

 

You may also need to request focus to the applet = itself in the HTML page, using JavaScript. I haven't tried it myself, = but it should work. Let me know how it = goes.

 

On Dec 14, 2010, at 8:55 AM, Felix Eckhardt = wrote:





How do I request focus = for my applet after a page load, which is inside a html page. The applet = should be the first item which receives the focus after a page = reload.

 <= /p>

I tried requestFocus() = on my components inside my applet (even with a timer delayed), but I = always have to click on the applet with my mouse to gain focus and be = able to start typing in a = TextInput.

 <= /p>

What I am doing wrong? = Thank you for your = help!

 <= /p>

Greetings

Felix

 

 

 

------_=_NextPart_001_01CB9BBA.A8056D64--