Solved

Keeping an applet open while browsing different pages.

Posted on 2004-08-24
5
125 Views
Last Modified: 2010-04-09
How can I do this?  I want an applet to load once, and then have a user be able to surf to different locations on my web page.  I don't want to put this applet on each page.  Would I us Frames to do this?  Is there an easier way?  Thanks experts.

kes
0
Comment
Question by:kesea
5 Comments
 
LVL 36

Expert Comment

by:Zyloch
Comment Utility
Hi

Yes, you would use either frames or iframes. Do you need help with that?

Regards,
Zyloch
0
 
LVL 5

Accepted Solution

by:
cristy56 earned 500 total points
Comment Utility
Example code for u using frameset :

<FRAMESET COLS="50%, 50%">

<FRAMESET ROWS="50%,50%">
                       <FRAME SRC="cell.html" SCROLLING="yes">
                       <FRAME SRC="cell.html" NORESIZE>
</FRAMESET>

<FRAMESET ROWS="33%,33%33%">
                       <FRAMESRC="cell.html">
                       <FRAMESRC="cell.html">
                       <FRAMESRC="cell.html">
</FRAMESET>

</FRAMESET>


----------------------------
Cristy
0
 
LVL 5

Expert Comment

by:cristy56
Comment Utility
And example for using iframe

<html>
<head>
<title>Floating frames example</title>
</head>
<body>
<h1>This is a floating frame example</h1>
<hr>
<iframe SRC="http://www.foo.com/frame1.html" NAME="float1" WIDTH="100" HEIGHT="100" ALIGN="right" NORESIZE>
You will not see this text if your browser supports IFRAME. If you CAN see this, you are in a bad way.
</iframe>
<hr>
</body>
</html>

But I guess  in your case, using frameset is more appropriate.

Regards,
Cristy
0
 
LVL 6

Expert Comment

by:masirof
Comment Utility
Please note that Netscape doesnt support iframes.
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
Comment Utility
>>> Please note that Netscape doesnt support iframes.

Excuse me!?????!

The ancient relics like Netscrap 4 and a lot of other early browsers did not support iframe.  Netscrap 6 has supported iframe since version 6.0 beta 1 in Apr 2000 ... first full release was Nov 2000; though it was very buggy until the 6.1 release of Aug 2001.

As for the questin itself.  Iframe is a better alternative than frame, because it gives you mor flexibility.  However there is also an option of putting it in a seperate window.  Whether or not that is appropriated depends on what the applet is doing and whethter it needs resources from the main page.

A seperate windo gives you more positioning options, but it you auto-launch it, it could be blocked by popup blockers.

Cd&
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now