|
I have written a small javascipt to validate a form on my webpage. It works great on Windows NT, but on my computer at home (Windows XP) the scipt does not run. I've been told that XP had some licensing issue with Sun, so javascript capability was stripped out of XP. I've been told I need to do some kind of server-side scripting to validate my form and so get around the javascript problem. What do you suggest? Thanks.
|
|
|
Javascript stripped out of XP? Huh? No. This simply is not true. I write hundreds of lines of javascript in my web applications, and the scripts run fine in XP and others. (I use the term "fine" loosely here! They run OK after I spend hours banging my head against the wall debugging my code! <g>)
It is more likely simply a browser security setting on your home computer. In IE, click Tools, then Internet Options, then the Security Tab. Are you using a standard security setting or a custom setting? Make sure that "scripting" is enabled for your selected security setting.
Then, create a new text file called test.html and copy and paste this into it:
<script language=javascript>alert("Scripting Works!")</script> |
|
Now just double-click this file. If you see the popup, scripting is enabled and working on your computer. Use alerts like this at different places in your script to find where your script is failing.
Good luck!
|
|
|
|
|
|
|
|
|
|