Oh, awesome. :)

I might be able to put what you found to good use!

Thanks!

--
João Neves



On Tue, Dec 14, 2010 at 18:16, Felix Eckhardt
<[email protected]> wrote:
> Hey João,
>
> I think it's a pivot issue. I’ve created a simple Applet and a pivot example:
>
> Applet Version (immediate focus works):
> http://betrunken.de/media/appletFocusDemo/appletPlainDemo.html
>
> Pivot Version (immediate focus doesn’t work):
> http://betrunken.de/media/appletFocusDemo/pivotPlainDemo.html
>
> Try to start typing after reload. I've tested this with Chrome and Firefox. 
> It works only for the applet version.
>
> You can download the source from:
> http://betrunken.de/media/appletFocusDemo/demoApplet.jar
>
> I appreciate any hint :)
>
> -----Ursprüngliche Nachricht-----
> Von: João Neves [mailto:[email protected]]
> Gesendet: Dienstag, 14. Dezember 2010 16:41
> An: [email protected]
> Betreff: Re: AW: AW: request focus in my pivot applet on page load
>
> Hi,
>
> Correct me if I'm wrong, but from experience some browsers will
> probably just stop you from gaining focus on an embedded object. For
> instance, Firefox doesn't let you gain focus on an embedded SWF due to
> the way external plugins are dealt with in the browser. Since Java
> applets need the Java plug-in pretty much in the same way SWF objects
> need the Flash plug-in installed, I fear you're out of luck. At least
> in the case of Firefox and Flash you can't even lose focus from the
> SWF object without clicking outside of it.
>
> Some browsers (like some versions of IE, I believe) may let you do it
> with some of the Javascript trickery Greg mentioned above, but
> cross-browser... I don't think it's doable right now. AFAIK, the guys
> at Mozilla have been trying to get focus management work better with
> Flash et al, but I don't think they have anything ready any time soon.
>
> Of course, it's been a while since I last tried to do something like
> that (and gave up), so I may not be completely right. :-)
>
> Cheers!
>
> --
> João Neves
>
>
>
> On Tue, Dec 14, 2010 at 15:28, Felix Eckhardt
> <[email protected]> wrote:
>> I've tried these example too. None of them focus an element after page load, 
>> which can be controlled immediatily with the keyboard.
>>
>> I always have to click on them to gain focus. Do you have a different 
>> behaviour with your browser?
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Sandro Martini [mailto:[email protected]]
>> Gesendet: Dienstag, 14. Dezember 2010 16:23
>> An: [email protected]
>> Betreff: Re: AW: AW: request focus in my pivot applet on page load
>>
>>
>> Hi,
>> have you tried to use the Java deploy Script to load the Applet in the page
>> (you can see a sample in our pages, under Demos, and under Tutorials) ?
>>
>> For example, do you have the same issue even with our Applets from here
>> (latest Pivot-2.0 candidate release): http://ixnay.biz/pivot-tutorials/    ?
>>
>> Bye,
>> Sandro
>>
>> --
>> View this message in context: 
>> http://apache-pivot-users.399431.n3.nabble.com/request-focus-in-my-pivot-applet-on-page-load-tp2085547p2086003.html
>> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
>>
>

Reply via email to