473,398 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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 2140
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
0
by: alfredo | last post by:
Hello everybody I need an advice from some guru out there. I have imagined the following scenario: I have a servlet on my server. It starts and waits for incoming requests from clients on...
3
by: Daniel Pope | last post by:
Hello Everybody, I'm preparing for doing a daunting task: to access Out look Microsoft Outlook Express(regardles the operating system and Outlook version) from a Java applet (after the client...
1
by: Wayne's World | last post by:
hi everyone, i have a big problem, writing a image from my applet to my apache webserver. i tried three way's of writing that file. every way was described in forums to solve this problem, but...
5
by: Rowland | last post by:
Hi, I know this question has prob. been asked a million times, but I couldn't find it in the FAQ, so here goes : I'm trying to write a Java applet to call a dll that resides on the web server...
8
by: DKM | last post by:
Here are the source code files to a Java applet that utilizes LiveConnect to communicate with Javascript, and the HTML file. The thing works both in IE 6.0 and FireFox 1.4. but with some...
13
by: trpost | last post by:
I am looking to make a small web app that will return the status of a website from the client browser. I tried this with AJAX and it worked great locally, but did not work for remote users...
1
by: dishal | last post by:
Can anyone help me please? How do I convert these codes to launch from a JFrame instead of a Java Applet? A simple program where the user can sketch curves and shapes in a variety of...
1
by: kummu4help | last post by:
hi, i want to draw rectangle based on mousedrag event. if user dragging the mouse, then the rectangle on the applet should increase or decrease basing on current mouse coordinates. i have the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.