Jack Ireland

+ Follow
since May 08, 2006
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jack Ireland

Actually the code: window.location.href is what I originally had, but I took the "window" part off to try and get it to work in DOM1. After taking it off it still worked with DOM2 and DOM3 so I deemed it unnecessary. Anyway my goal is to get the program to work in all DOM's and Netscape 4.7 uses DOM1 (I think).

Any other ideas on how to fix the program?

I am trying to do something simple in JavaScript. When I hit the submit button on a page I want it to take me to another page and add a query string. Here the code:

location.href = "results1.htm?results=" + correct;

My code works fine with IE and Netscape 7, but doesn't work with Netscape 4.7. I think Netscape 4.7 uses the DOM1. Any ideas on how to fix this?
Wow! I really appreciate all the help. I think part of the problem was that fact I had a space between the two paths. Now when I type javac I get the list of output that you would expect. Also when I type path can see the directory. I hate to push it, but there are still some issues.

If I get to the directory by doing the CD C:\Program Files\Java\jdk1.5.0_06\bin I can compile a Hello World program and run it with no problem. However, if I don't do the Change Directory thing it tells me "error: cannot read: hello.java" If I try to run it, it tells me "Exception in thread..."

Why would it be able to "see" the javac, but not the hello.java, which is in the same bin directory as the javac?
18 years ago
Thanks to your help I am getting closer, but still not there. I have now:

1) Downloaded the NetBeans IDE + JDK 5.0 Update 6

2) Have this path set C:\Sun\AppServer\bin; C:\Program Files\Java\jdk1.5.0_06\bin

3) When I open the Command Prompt I can only get it to work by manually setting the path with Change Directory command "CD C:\Program Files\Java\jdk1.5.0_06\bin"

There is obviously something wrong with step #2, but I have no idea what.
18 years ago
I have done programming in java before, but took a long break. For some reason I always have trouble getting started with Java. Here is where I am:

1) I have downloaded J2EE 1.4 SDK
2) I went to control panel and under the path name it said "C:\Sun\AppServer\bin"
3) I added "c:\Program Files\Java\j2re1.4.1_02\bin"
4) My path now says "C:\Sun\AppServer\bin; c:\Program Files\Java\j2re1.4.1_02\bin"
5) I went to the comand prompt and entered in javac -verbose
6) It told me javac is not recognized

Any ideas on how to get started here?
18 years ago