/    Sign up×
Community /Pin to ProfileBookmark

error code 0 object required

Hello

I have a problem with my script

I keep getting errors when i preveiw in FrontPage
the error is

line 14
char 1
Error object required
code 0

when i upload the page to my website i get error on page displayed at the very bottom.

The code is below, any help appreciated ?

<SCRIPT language=JavaScript type=text/javascript>
<!– Begin
function Login(form) {
var user = form.user.value;
var pass = form.pass.value;
var server = form.server.value;
if (user && pass && server) {
var site = “http://” + user + “:” + pass + “@” + server + “/cpanel”
window.location = site;
}
else {
alert(“Please enter your username, password, and FTP server’s address minus the [url]http://www.[/url]“);
}
}
// End –>
</SCRIPT>
<TABLE border=0 cellPadding=2 width=150 height=”228″>
<FORM name=login>
</form>
<td height=”29″>
<div align=”center”><font face=”Arial” size=”2″>Customer Log In
</font> </div>
<TR>
<TD align=middle height=”14″>
<div align=”center”><font class=”Verdana-11px95AEBDn” face=”Arial” size=”2″>User
name</font></div>
</TD>
</TR>
<TR>
<TD align=middle height=”19″>
<div align=”center”>
<INPUT name=user size=10 maxlength=”8″>
</div>
</TD>
</TR>
<TR>
<TD align=middle>
<div align=”center”><font class=”Verdana-11px95AEBDn” face=”Arial” size=”2″>Pass
Word</font></div>
</TD>
</TR>
<TR>
<TD align=middle>
<div align=”center”>
<input name=pass size=10 type=pass>
</div>
</TD>
<TR>
<TD align=middle>
<div align=”center”><font class=”Verdana-11px95AEBDn” size=”2″ face=”Arial”>Domain.com</font></div>
</TD>
</TR>
<TR>
<TD align=middle height=”10″>
<div align=”center”>
<INPUT name=server size=10 maxlength=”35″>
</div>
</TD>
</TR>
<TR>
<TD align=middle colSpan=2 height=”20″>
<div align=”center”>
<INPUT class=customform1 onclick=Login(this.form) type=button value=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;>
</div>
</TD>
</TR>
<div align=”center”></div>
</TABLE>
<font face=”Arial” size=”1″>click logo above</font></td>

Best wishes
Ivaninch

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@Ice3TApr 01.2003 — shouldn't this: [b]<INPUT class=customform1 onclick=Login(this.form) type=button value=>[/b]

be between theses:

[b]<FORM name=login>

</form>[/b]
Copy linkTweet thisAlerts:
@Ice3TApr 01.2003 — Move this:</form>

just above this: </TABLE>
×

Success!

Help @ivaninch spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...