Solved

Change page by page?

Posted on 1998-07-06
8
153 Views
Last Modified: 2010-04-09
I've already built several applets to shown real-time data , so the graphs are updating all the time Now, I am going to put them on several HTML pages, is it possible to shown them page by page with a sequence (eg ten seconds each time).

Since to load an applet really takes time, how can I do that really page by page, and user doesn't see any delay for waiting the download the applets. (somethings like double buffer in animation). Can I implement this by using HTML or dynamic HTML?
0
Comment
Question by:hcyu
8 Comments
 
LVL 12

Expert Comment

by:Otta
ID: 1844555
Try HTML like this page:

   http://HomePage.InterAccess.Com/~wally/index.html

which reads:

<html>
<head>
<META HTTP-EQUIV="Refresh" CONTENT="13;url=http://homepage.interacce
ss.com/~wally/wallyware/pmp/">
<title>WallyWare</title>                          
</head>
Click <A HREF="http://homepage.interacce
ss.com/~wally/wallyware/pmp/"> here </A>
to access the next page.
</body>            
</html>    

to jump to the "next" page in '13' seconds.
0
 
LVL 28

Expert Comment

by:sybe
ID: 1844556
Once they are downloaded and running, applets will remain in memory (even if the page on which they are called is not in a browser window anymore) untill the browser decides it needs to free memory and destroys them.

So when a visitor will see a sequence of your pages and downloads the applets on it, and then returns to page/applet #1, the applet might still be in memory.

And then of course, there's the browser's cache, preventing the need to download the applets over and over. But it will take time to load the applet into memory.

I don't think that there is a java-way to handle this.

There is a HTML-way, but it's a bit "dirty":
Use a couple of hidden frames and load the pages with the applets in it. They'll stay in memory then.

The problem is that browsers can get very very very slow whith a number of applets in memory.

Why don't you make one big applet that will change the data displayed every 10 seconds. It should not be that difficult to integrate all your applets into one (using some java-layout and a timer to show() and hide() the different sub-applets).





0
 

Author Comment

by:hcyu
ID: 1844557
Actually, I'm making an application that the first page will show the performance of network, www server ...... by using the applet to show real-time traffic. The second page is to display the detail performance of them. The third page is a real-time noticeboard, and lots of other pages. (All are by Java)

Therefore, I need to show them page by page.
0
 
LVL 28

Expert Comment

by:sybe
ID: 1844558
Hmmm, but can't you look at your applet as a "page" (using some kind of container), and built all the functionality you want from HTML into your applet. Java has much more possibilities then HTML.




0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 1

Expert Comment

by:cutetech
ID: 1844559
I agree what sybe said. Just combine all the applets into one applet and set a timer to switch graphics/graphs. hmm... like a JAVA slide show applet. Draw the 2nd graph in the background and show it after it done. =)
0
 

Author Comment

by:hcyu
ID: 1844560
Actually, I'm building a GUI application to let peopel who don't know Java, but can do a lot of things just by including my applets into their HTML pages. Therefore, I'm thinking of the possibilites to do something showing  page by page, and the applet can show real-time traffic. Now, I just only need to implement this part.

0
 
LVL 5

Expert Comment

by:tuvi
ID: 1844561
From your main page you can open another window (second instance) of the browser and you can control the page and the timing with scripting.
0
 
LVL 1

Accepted Solution

by:
Bluemoon earned 100 total points
ID: 1844562
If you are using Netscape 4 you could make several 'layers' with in each layer an applet running showing graphs, by swiching the visibility on and off of each layer there can be swiched between graphs.

for more info about how to make layers: http://www.htmlgoodies.com/layer.html has some  info about it.

Bluemoon
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

760 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

23 Experts available now in Live!

Get 1:1 Help Now