Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script not working in Netscape 6

Status
Not open for further replies.

thewebgeek

Technical User
Jan 8, 2001
22
0
0
US
you click on "Submit" and it doesn't do anything.

<script language-javascript> <!--
function enter()
{
user = document.frm.user.value;
pass = document.frm.pwd.value;
window.location
= &quot;ftp://&quot;+user+&quot;:&quot;+pass+&quot;@phoenixsoftware.com/pub/&quot;;
}
//--> </script>

page is at
 
is it giving you an error? check the javascript prompt:

Tasks-->Tools-->Javascript Prompt jared@aauser.com
 
It says &quot;Enter is not defined&quot;. It must be the Submit button on my form. What do I set it equalt to?
 
make sure you are calling the function enter with a lowercase 'e' and not an uppercase 'E' jared@aauser.com
 
Here is the submit button code.

<input type=&quot;button&quot; onclick=&quot;enter()&quot; value=&quot;submit&quot; name=&quot;Button&quot;>

Any idea?
 
This is the error I get with the Netscape 6 javascript console.

Error: object is not a function
 
wow... that's a strange one...

do you have any global variables named enter?

adam@aauser.com
 
here is my code again. enter() is defined as a function

<script language-&quot;javascript&quot;>
<!--
function enter()
{
user = document.frm.user.value;
pass = document.frm.pwd.value;
window.location = &quot;ftp://&quot;+user+&quot;:&quot;+pass+&quot;@phoenixsoftware.com/pub/&quot;;
}
//-->
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top