delphi3
asked on
AniS Code implementation so as to skip download.
Hi All,
I have Win2k with NT and IE.
When ever I go to the site that has weather map pages in a loop that are shown in sequence, there is a very significant wait while the java AniS loads the program from some other site and Java game advertising. After a very long while, the pages of weather maps will start their download.
I want to shorten the wait for the download time.
Help is apprecitated,
Delphi3
I have Win2k with NT and IE.
When ever I go to the site that has weather map pages in a loop that are shown in sequence, there is a very significant wait while the java AniS loads the program from some other site and Java game advertising. After a very long while, the pages of weather maps will start their download.
I want to shorten the wait for the download time.
Help is apprecitated,
Delphi3
ASKER
hi dennis_maeder,
Thanks for stopping by.
First, when going straight there by your "URL", I do as you suggested. Getting the "latest" view works like a speedy dream.
Then when I click on the page option on the left to show the "loop" : a sequence of 10 images then I need this AniS thing. I wrote NWS and asked why? Their response was "that is the way it is......".
I can get AniS java program from http://www.ssec.wisc.edu/visit/AniS/
But it does not "advance load" into the IE page and into the NWS page and it wants to load its own version...... Grrrr
D3
Thanks for stopping by.
First, when going straight there by your "URL", I do as you suggested. Getting the "latest" view works like a speedy dream.
Then when I click on the page option on the left to show the "loop" : a sequence of 10 images then I need this AniS thing. I wrote NWS and asked why? Their response was "that is the way it is......".
I can get AniS java program from http://www.ssec.wisc.edu/visit/AniS/
But it does not "advance load" into the IE page and into the NWS page and it wants to load its own version...... Grrrr
D3
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I had no idea you were javaphobic!
NWS radar comes in two flavors - with/without Java/Javascript
Navigate to
http://radar.weather.gov/
click standard version tab
http://radar.weather.gov/index_lite.htm
OR
click enhanced version tab
http://radar.weather.gov/index.htm
pick your area off the map, and away you go.
lite version isn't as pretty - but it's much quicker to load.
:D
NWS radar comes in two flavors - with/without Java/Javascript
Navigate to
http://radar.weather.gov/
click standard version tab
http://radar.weather.gov/index_lite.htm
OR
click enhanced version tab
http://radar.weather.gov/index.htm
pick your area off the map, and away you go.
lite version isn't as pretty - but it's much quicker to load.
:D
ASKER
Hi dennis_maeder
For me, my Q is based on my need to know. Then to read this about myself by you making a snap judgment : "I had no idea you were javaphobic!" FYI, there is no such a word javaphobic. It is 2 words. Please! Do not put labels on me or anyone else here at EE, even in jest!! Your help in this manner is not welcome.
I have a dialup connection and in the main, it is very slow, so I can appreciate anything that speeds up the process of downloading a selected NWS map(s). With my setup I am not expending additional funds to purchase a faster service. My using Java and Delphi programming is, at this time a recreation only.
I now have in my Java development folder these:
j2re1.4.2_04
j2re1.4.2_05
jdk1.5.0_05
jre1.5.0_05
And this added to the folder as of today using the suggestion by siliconbrit :
jre1.5.0_06.
The AniS program now loads in front of the download of the maps from my HD
before I get the maps.
This is written here to give notice that I do actively connect with java.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.net.URL;
import java.net.MalformedURLExcep tion;
/* <html>
*<head>
*<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
* <title>BookMarksIn_05</tit le>
*</head>
* <body>
*<applet code="Bookmarks_05.class" width="150" height="400"></applet>
* </body>
* </html>
*/
public class Bookmarks_05 extends JApplet
implements ActionListener {
String bmklistURL[] = new String[6];
JButton Button1 = new JButton("Delphi Help At EE");
JButton Button2 = new JButton("Google Java Help");
JButton Button3 = new JButton(" Java Help At EE ");
JButton Button4 = new JButton(" Jennifer Garner ");
JButton Button5 = new JButton(" NWSCleLastImg");
JButton Button6 = new JButton("NWSCleTenImgs");
JPanel p1 = new JPanel();
public void init() {
bmklistURL[0] =
"https://www.experts-exchange.com/Programming/Programming_Languages/Delphi/";
bmklistURL[1] =
"http://groups.google.com/groups?hl=en&group=comp.lang.java.help";
bmklistURL[2] =
"https://www.experts-exchange.com/Programming/Programming_Languages/Java/";
bmklistURL[3] = "http://localhost/delphi3/jgarner_alias_150x200.jpg";
bmklistURL[4] = "http://weather.noaa.gov/radar/latest/DS.p19r0/si.kcle.shtml";
bmklistURL[5] = "http://weather.noaa.gov/radar/loop/DS.p19r0/si.kcle.shtml";
p1.setBackground(Color.gre en);
p1.add(Button1);
p1.add(Button2);
p1.add(Button3);
p1.add(Button4);
p1.add(Button5);
p1.add(Button6);
Button1.addActionListener( this);
Button2.addActionListener( this);
Button3.addActionListener( this);
Button4.addActionListener( this);
Button5.addActionListener( this);
Button6.addActionListener( this);
getContentPane().add(p1, BorderLayout.CENTER);
}
public void paint(Graphics g){
super.paint(g);
for (int i = 0; i < bmklistURL.length+1 ; i++) {
Color rndm= new
Color((int)(Math.random()* 255),(int) (Math.rand om()*255), (int)(Math .random()* 255));
g.setColor(rndm);
g.fillOval(50-(5*i),360- (i*25),20,20);
rndm= new
Color((int)(Math.random()* 255),(int) (Math.rand om()*255), (int)(Math .random()* 255));
g.setColor(rndm);
g.fillOval(65,360 - (i*25),20,20);
rndm= new
Color((int)(Math.random()* 255),(int) (Math.rand om()*255), (int)(Math .random()* 255));
g.setColor(rndm);
g.fillOval(80+(5*i),360- (i*25),20,20);
}
}
public void actionPerformed(ActionEven t evt) {
Object source = evt.getSource();
URL theURL = null;
try{
if (evt.getSource() == Button1) {
theURL = new URL(bmklistURL[0]);
}
if (evt.getSource() == Button2) {
theURL = new URL(bmklistURL[1]);
}
if (evt.getSource() == Button3) {
theURL = new URL(bmklistURL[2]);
}
if (evt.getSource() == Button4) {
theURL = new URL(bmklistURL[3]);
}
if (evt.getSource() == Button5) {
theURL = new URL(bmklistURL[4]);
}
if (evt.getSource() == Button6) {
theURL = new URL(bmklistURL[5]);
}
}
catch ( MalformedURLException e) {
System.out.println("Bad URL: " + theURL);
}
getAppletContext().showDoc ument(theU RL);
}
}
The points and grade go to siliconbrit.
Thanks.
D3
For me, my Q is based on my need to know. Then to read this about myself by you making a snap judgment : "I had no idea you were javaphobic!" FYI, there is no such a word javaphobic. It is 2 words. Please! Do not put labels on me or anyone else here at EE, even in jest!! Your help in this manner is not welcome.
I have a dialup connection and in the main, it is very slow, so I can appreciate anything that speeds up the process of downloading a selected NWS map(s). With my setup I am not expending additional funds to purchase a faster service. My using Java and Delphi programming is, at this time a recreation only.
I now have in my Java development folder these:
j2re1.4.2_04
j2re1.4.2_05
jdk1.5.0_05
jre1.5.0_05
And this added to the folder as of today using the suggestion by siliconbrit :
jre1.5.0_06.
The AniS program now loads in front of the download of the maps from my HD
before I get the maps.
This is written here to give notice that I do actively connect with java.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.net.URL;
import java.net.MalformedURLExcep
/* <html>
*<head>
*<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
* <title>BookMarksIn_05</tit
*</head>
* <body>
*<applet code="Bookmarks_05.class" width="150" height="400"></applet>
* </body>
* </html>
*/
public class Bookmarks_05 extends JApplet
implements ActionListener {
String bmklistURL[] = new String[6];
JButton Button1 = new JButton("Delphi Help At EE");
JButton Button2 = new JButton("Google Java Help");
JButton Button3 = new JButton(" Java Help At EE ");
JButton Button4 = new JButton(" Jennifer Garner ");
JButton Button5 = new JButton(" NWSCleLastImg");
JButton Button6 = new JButton("NWSCleTenImgs");
JPanel p1 = new JPanel();
public void init() {
bmklistURL[0] =
"https://www.experts-exchange.com/Programming/Programming_Languages/Delphi/";
bmklistURL[1] =
"http://groups.google.com/groups?hl=en&group=comp.lang.java.help";
bmklistURL[2] =
"https://www.experts-exchange.com/Programming/Programming_Languages/Java/";
bmklistURL[3] = "http://localhost/delphi3/jgarner_alias_150x200.jpg";
bmklistURL[4] = "http://weather.noaa.gov/radar/latest/DS.p19r0/si.kcle.shtml";
bmklistURL[5] = "http://weather.noaa.gov/radar/loop/DS.p19r0/si.kcle.shtml";
p1.setBackground(Color.gre
p1.add(Button1);
p1.add(Button2);
p1.add(Button3);
p1.add(Button4);
p1.add(Button5);
p1.add(Button6);
Button1.addActionListener(
Button2.addActionListener(
Button3.addActionListener(
Button4.addActionListener(
Button5.addActionListener(
Button6.addActionListener(
getContentPane().add(p1, BorderLayout.CENTER);
}
public void paint(Graphics g){
super.paint(g);
for (int i = 0; i < bmklistURL.length+1 ; i++) {
Color rndm= new
Color((int)(Math.random()*
g.setColor(rndm);
g.fillOval(50-(5*i),360- (i*25),20,20);
rndm= new
Color((int)(Math.random()*
g.setColor(rndm);
g.fillOval(65,360 - (i*25),20,20);
rndm= new
Color((int)(Math.random()*
g.setColor(rndm);
g.fillOval(80+(5*i),360- (i*25),20,20);
}
}
public void actionPerformed(ActionEven
Object source = evt.getSource();
URL theURL = null;
try{
if (evt.getSource() == Button1) {
theURL = new URL(bmklistURL[0]);
}
if (evt.getSource() == Button2) {
theURL = new URL(bmklistURL[1]);
}
if (evt.getSource() == Button3) {
theURL = new URL(bmklistURL[2]);
}
if (evt.getSource() == Button4) {
theURL = new URL(bmklistURL[3]);
}
if (evt.getSource() == Button5) {
theURL = new URL(bmklistURL[4]);
}
if (evt.getSource() == Button6) {
theURL = new URL(bmklistURL[5]);
}
}
catch ( MalformedURLException e) {
System.out.println("Bad URL: " + theURL);
}
getAppletContext().showDoc
}
}
The points and grade go to siliconbrit.
Thanks.
D3
Why not go straight to the source. Skip the ads.
These babies come from the National Weather Service anyway.
e.g.
http://radar.weather.gov/radar/latest/DS.p19r0/si.klwx.shtml
enter your zip code
click the appropriate loop link.
D