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.
IndexProgramming Questions & HelpIntegration › Applet inside scrollable html page: Problem
Page Index Toggle Pages: 1
Applet inside scrollable html page: Problem (Read 2501 times)
Applet inside scrollable html page: Problem
Apr 29th, 2010, 8:44am
 
Hi all!  Smiley
I exported my sketch as an applet and integrated it into my own website.
The applet is inside a scrollable div and it scrolls, but...


1. When the div gets scrolled, the applet does not dissapear when it should.

2. You can't scroll the div when the mouse is on the applet.

3. When you scroll the div the applet starts to blink.


Any help would be greatly appreciated! It really would!

Thanks in advance, Smiley

Vincent.  Smiley
Re: Applet inside scrollable html page: Problem
Reply #1 - Apr 29th, 2010, 9:56am
 
1. I don't understand.
2. That's logical, the applet gets the mouse event in this case. Same "issue" with Flash, etc.
3. Not in my case (old computer, Java 1.6.0_18 on WinXP, Firefox 3.6) with your applet, but it might happen, indeed.

The issues come from Java and your browser, I don't think we can do much...
Re: Applet inside scrollable html page: Problem
Reply #2 - Apr 29th, 2010, 10:30am
 
Ok, i first want to thank you a lot for your help!
I really appreciate it, PhiLho!

I'll explain 1. a bit more throughly:

1. When the div gets scrolled, the applet does not dissapear when it should:

When you scroll down my html page,
the text that has been scrolled upwards
dissapears under the top of the scrolling bar.

This is normal scrolling behaviour,
(content that has been scrolled upwards
should dissapear when it reaches the top
of the scrolling bar)

but when you scroll down the html page,
the java applet (that has then been scrolled
upwards) does not dissapear when it reaches the top of the scrolling bar,
same thing at the bottom of the scrolling bar,
no content should be seen above or underneath
the scrolling bar. (but the java applet does not dissapear
above or underneath the scrolling bar)
Re: Applet inside scrollable html page: Problem
Reply #3 - Apr 29th, 2010, 1:32pm
 
OK, I didn't understand because in Firefox 3.6, I don't see this behavior. The div content, including the applet, is correctly managed when scrolling, the applet (partially) disappear on top when scrolling down.

Do you see the issue with Internet Explorer (an usual suspect...)? Another browser?
Re: Applet inside scrollable html page: Problem
Reply #4 - Apr 29th, 2010, 9:29pm
 
Thanks again for your reply, PhiLho!
What I now understand about problem 1,
(see the first post of this thread) is the following:

The applet is correctly managed (1.) (as in partially disappearing on top when scrolling down) when scrolling with:

  • Firefox 3.5.
  • Firefox 3.6.
  • Firefox 2.0.
  • Internet Explorer 7.0 (with a tiny bit of overflow)


The applet is not correctly managed (1.) (as in not partially disappearing on top when scrolling down) when scrolling with:

  • Safari 4.0.5.


I'll update the list today, as I will be able to acces computers with other browsers.
Re: Applet inside scrollable html page: Problem
Reply #5 - May 3rd, 2010, 5:09pm
 
I was going to look into this, but I couldn't get Java to work in Windows Safari.
Page Index Toggle Pages: 1