Re: Please...Applet frame resize problem

From: Kevin (somewhere_at_overtherainbow.com)
Date: 12/12/03


Date: Fri, 12 Dec 2003 05:46:45 GMT

No malicious hacker here. I am creating...or I should say, have created an
interactive demonstration of our product. The product is some hardware that
plugs into a PDA and this demo allows a person to come onto our website and
play with this interactive demo to allow a person to experience the
functionality of our product. With touch screen PDA's that are in full color
it makes for cool interactivity and animation in this demo. There are no
traditional java buttons or layouts, I am simply tracking the users mouse
movements and mouse down events over the main image to animate my demo.

The reason I would like the applet to pop-up into its own window is because
the main image of PDA is almost 700 pixels high. Assuming a lot of people
will be running 1024x768 screen resolution, means that my applet gets
clipped off at the bottom because of all the web browser crap in the header
i.e.. address bar, tool bar ect.. So if I could just get it to pop up in
it's own window I would be a happy camper.

The code I posted is just an example that exhibits the same problems as my
interactive applet. The frame thing almost works in my applet but currently
the user would have to resize the frame himself, which is not really
desirable.

Should I be using HTML, or Jscript to do this. I am not very strong in these
languages.

"Andrew Thompson" <andrew64@bigNOSPAMpond.com> wrote in message
news:lxbCb.49116$aT.25442@news-server.bigpond.net.au...
> "Kevin" <somewhere@overtherainbow.com> wrote in message
> news:q2bCb.58323$bC.24601@clgrps13...
> ....
> > All I'm trying to do is open a window that displays my applet and lets
me
> > display images and draw a few things.
>
> OK. This is clearer. Let's take a few steps back. Why?
>
> You say you want to display your applet
> in a frame, but it seems you only need to
> display a _string_ within the frame.
>
> There are various ways to achieve that,
> but first I would ask WHY you want to
> pop-up a window (which will be branded
> with words like 'Java Applet Window' or
> such) outside a perfectly good browser
> window. Applets are designed to do what
> they do _inside_ a browser window..
>
> Having something 'pop-up' is also considered
> a web-design sin, as most users do not know
> how to deal with pop-ups (and don't like them).
> [ Of course.. - I have used them myself (pot,
> kettle, black..!) ]
>
> OK. Let us ignore the 'improperness' of
> the pop-up and look at how to do it.
>
> My experience with 'pop-ups' was when I
> used an Applet that contained a button to
> launch applications* (it is ridiculously simple)
>
> * The applications were PToE, Calculet and
> PocketPlanet, none of which attempted to
> go outside the applet sandbox.
>
> However, the Applet had little more to
> do with the application once it was launched
> (and certainly is not contained within it)
>
> One thing you seem to be missing is that
> your initial applet can only be located in _one_
> place. It _starts_ in the browser window,
> launches an external window, then tries to
> put _itself_ in the new window.
> (talk about pulling yourself up by the
> bootstraps!)
>
> Will not work. It might _conceivably_ work
> if you created a second applet, or a second
> instance of the first, but the one launching the
> ext window is stuck in the browser that hosts it.
>
> Of course, you could make the original applet
> 0x0 in size, launch the ext win, and do all your
> components etc. in that - the user would be
> unaware the applet ever existed (barring the
> very obvious message at the bottom of the
> ext window)
>
> Another thing to note is that the ext window
> is quite insubstantial, if the user surfs to another
> page, it will vanish off screen..
>
> So, I will not ramble on further, but instead
> ask _why_ you want to do this the way you
> describe, or better still, tell us what you want
> the user to experience as they surf into the
> page.
>
> I should point out though, the chances of
> you (or anyone else) using these techniques
> to defraud or fool web-surfers, are slightly
> less than that of a snow-ball in Hades.
>
> If that is your intent, stop wasting your time.
>
> --
> Andrew Thompson
> * http://www.PhySci.org/ PhySci software suite
> * http://www.1point1C.org/ 1.1C - Superluminal!
> * http://www.AThompson.info/andrew/ personal site
>
>