469,304 Members | 2,303 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,304 developers. It's quick & easy.

Cross post: How to get applet to fill client

I think I might need to use Javascript to "write" the apple parameters
before it starts, that's why I'm posting here, but the Q is:
How do I get the client window size in today's browsers?
I'm not concerned with previous version; This isn't a commercial app,
just my own personal entertainment.
I want to resize a java applet according to the browser window and
fill it.
Thx,
Sean
se******@NO-SPAM-DAMMIT.hotmail.com
Jul 23 '05 #1
8 2049
On 16 May 2004 13:38:34 -0700, Sean wrote:
I want to resize a java applet according to the browser window and
fill it.


Like this?
<http://www.physci.org/test/scrap/147Resize/>

I have hidden the js really well though..
You will _never_ find it! ;-)

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #2
Ivo

"Andrew Thompson" wrote
On 16 May 2004 13:38:34 -0700, Sean wrote:
I want to resize a java applet according to the browser window and
fill it.


Like this?
<http://www.physci.org/test/scrap/147Resize/>

I have hidden the js really well though..
You will _never_ find it! ;-)


Well neither does my browser. On that url I get a monochrome grey document
with a useless scrollbar and in the statusbar the message 'load: class
Calculet not found' although I was able to download the .jar file directly
from the root directory of your site. There is no javascript on the page as
document.scripts.length ==0. That is in itself impressive.
Ivo
Jul 23 '05 #3

How do you do that?
That's neat! I looked at the source; yeah, couldn't find Javascript. Is
the apple somehow 'pushing' javascript out?

Let me know!! Otherwise, you're just teasing me ;)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #4
Looks like my reply didn't 'stick'.
How did you do that? I'm impressed? I looked at the source via wget - no
Javascript.
Does the applet somehow "push" javascript out to the browser?
Please let me know - otherwise you are just teasing me!!
Thanks!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #5
On Mon, 17 May 2004 00:39:22 +0200, Ivo wrote:
"Andrew Thompson" wrote
On 16 May 2004 13:38:34 -0700, Sean wrote:
I want to resize a java applet according to the browser window and
fill it.
Like this?
<http://www.physci.org/test/scrap/147Resize/>

.... Well neither does my browser. On that url I get a monochrome grey document
with a useless scrollbar and in the statusbar the message 'load: class
Calculet not found'


Yeh? It is a text document that does not
have my usual 'redirect if minimum java not
installed applet' inside it.

What happens here?
<http://www.physci.org/codes/jretest.jsp?v=14>
Do you get moved to a 'Please install Java' page?

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #6
On 16 May 2004 23:16:55 GMT, Sean McNamee wrote:
How do you do that?
That's neat! I looked at the source; yeah, couldn't find Javascript.
;-) ..there is none.
Is the apple somehow 'pushing' javascript out?


No, this is how I do it..

In the applet tag, note..

width='100%'
height='100%'>

Note the use of '%', and further that each
value is inside quotes. Pixels (the default)
do not need quotes, whereas % do.

Then, this bit of the syles..
body, html, applet {
padding: 0px;
margin: 0px;
}

'Knocks the space out of the page',
and allows the applet to stretch entire
width and height of visible height of
window.

HTH

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
Jul 23 '05 #7


Allow me to introduce myself: I am a dumbass!
See applet parameters... :(

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #8
Ivo
"Andrew Thompson" wrote
<http://www.physci.org/codes/jretest.jsp?v=14>
Do you get moved to a 'Please install Java' page?


On that url I read "This browser supports the Java Version 1.4 required!",
and when it finishes loading, goes to another page telling me my browser
lacks the required plugs. Would n't it be less confusing to say something
like "Please wait, checking java support" on that first page?
Ivo
Jul 23 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by James Hong | last post: by
reply views Thread by alfredo | last post: by
3 posts views Thread by Daniel Pope | last post: by
1 post views Thread by Wayne's World | last post: by
5 posts views Thread by Rowland | last post: by
13 posts views Thread by trpost | last post: by
1 post views Thread by dishal | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.