Javascript and Java Newb question

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Jack Duncan

Javascript and Java Newb question

Post 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.
Ray at work

Re: Javascript and Java Newb question

Post 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
Carlyle Sutphen

Re: Javascript and Java Newb question

Post 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
Post Reply