Article View: borland.public.jbuilder.java.language
Article #18755Re: start another applet from an applet
From: Conrad Hoesle-Kienzlen
Date: Thu, 23 Apr 1998 00:00
Date: Thu, 23 Apr 1998 00:00
65 lines
3286 bytes
3286 bytes
Marco, this cannot be done with standard methods. In general, you can *assume* that the browser starts the applets in the sequence it finds them in the HTML, but it's not guaranteed. Without special tricks that won't work with most browsers (like JSObject, maybe) you are not able to influence anything the browser has to do. The only thing that springs to mind is a timeout in the frame which contains the applet that should come second. You can load an interim page with a timeout in that frame which then gives way to the "real" page, or you can put a button in that page that says "Now load the page with that applet" or so, but that's about all you can do. Once more: starting a second applet from a first one is not possible. Why do you want to do it? What do you want to acheive with that second applet? What you *could* do is displaying a frame which itself can have everything that an applet has, buttons, fields, labels, even menus (which an applet can't have), if fact, such a frame is almost indistinguishable from an applet. Only it will be destroyed if the applet is destroyed. ...Conrad marco orsaia wrote: > Conrad, > > in the same web page, two different applets can be started through APPLET > tag in HTML. If do that, two applets start almost at the same time. If I > want to start first applet then another applet in the same web page, maybe > different frames, say first applet start the second applet by pushing some > button in the first applet, what should I do? > > Anyway, thank you very much. You are of great help to me. > > Xiao > > Conrad Hoesle-Kienzlen wrote in message <353A51CB.831A73D0@csi.com>... > >Marco, > >you will not be able to start another applet from your first one. But you > can > >have the browser start another applet in another frame on the same page, > not > >another web page. The two applets can exchange information, even if they > are in > >different frames. You can see an example (albeit not with frames) at > >http://ourworld.compuserve.com/homepages/conrad_hoesle/java.htm > >I experimented with frames and found the information-excange unreliable, > >especially if the frame with an applet was loaded with some other content > and > >later reloaded with the content that contains the applet. In general one > can > >expect it to work if the applet that remains contacts the one that was > paged > >out and reloaded, but not the other way round. > >If you are interested in the source code of my example, mail me and I'll > send > >it to you. > >...Conrad > > -- Conrad Hoesle-Kienzlen CHK IT-Consulting <http://ourworld.compuserve.com/homepages/conrad_hoesle>
Technical Details
Message-ID:
<353F9536.A770C88F@csi.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6h8f6m$bvb5@forums.borland.com> <353A51CB.831A73D0@csi.com> <6hnhn7$qv96@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,45af7db6f9331b1d X-Google-Attributes: gidf74b3,public From: Conrad Hoesle-Kienzlen <Conrad_Hoesle@csi.com> Subject: Re: start another applet from an applet Date: 1998/04/23 Message-ID: <353F9536.A770C88F@csi.com> X-Deja-AN: 347064972 Content-Transfer-Encoding: 7bit References: <6h8f6m$bvb5@forums.borland.com> <353A51CB.831A73D0@csi.com> <6hnhn7$qv96@forums.borland.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: CHK IT-Consulting Newsgroups: borland.public.jbuilder.java.language