Page 1 of 1

Javascript and Java Newb question

Posted: Mon Jan 28, 2002 6:48 pm
by Jack Duncan
I am learning both Javascript and Java 2.0, I am beginning to understand how to write Javascript in textpad, and have even written some Java and viewed in appelet. My question is how do I get something I have created for Javascript in the textpad editor to run and test in my browser. I am using the Mirosoft browser I just don't understand the mechanics on how to make that leap. i can write the code its the exection thats the problem. any suggestion or help points to the right direction.

Re: Javascript and Java Newb question

Posted: Thu Jan 31, 2002 4:53 pm
by Ray at work
Well, wouldn't your javascript be kind of dependent on an html page? That is, if you wrote a javascript function to validate an entry in a text box or something, it's not as though the script will run properly without having a textbox to validate, which would then necessitate the need for an html page.

Ray at work

Re: Javascript and Java Newb question

Posted: Mon Feb 11, 2002 2:46 pm
by Carlyle Sutphen
Jack,

have you written any html? If you are running NT, you can set up the Personal Web Server and put your javascript into a page you can load through it.

You can actually load an html file using the file:// protocol rather than the http:// protocol but your browser will be missing some extra information passed from the web server which may cause differing behaviour from the real end environment you are developing for.

Carlyle