Entry
I have a problem with a target frame... help appreciated
Nov 13th, 2003 04:30
Pablo Rodriguez, http://200.104.50.63
I have a problem with a target frame... help appreciated
down there is the code with the problem please if anyone can help it
will be thankful
//frame page
<html>
<head>
<title>frame page</title>
</head>
<frameset rows="26,*" border="0">
<frame name="banner" target="main" scrolling="no" MARGINHEIGHT="0"
MARGINWIDTH="0" noresize target="main" src="encabezado.html"
border="0">
<frameset cols="180,*" border="0">
<frame name="contents" target="main" src="links.html"
scrolling="no" border="0">
<frame name="main" target="_self" src="principal.html" border="0">
</frameset>
</frameset>
</html>
//end frame page
//page problem
<html>
<head>
//js javascript index file
<script language="JavaScript" type="text/javascript"
src="search/search.js">
</script>
<title>prombem page</title>
</head>
<body bgcolor="#000000">
<form name=login>
<font face="Arial">
<span style="font-size: 9pt; font-weight: 700; font-style:
italic"> Usuario:</span></font>
<input type=text name=username SIZE="12" style="FONT-SIZE:
11px;">
<font face="Arial">
<span style="font-size: 9pt; font-weight: 700; font-style:
italic">Password:</span></font>
<input type=password name=password SIZE="12" style="FONT-SIZE:
11px;">
//this button works
<input type=button value="acces" onClick="Login(this.form)">
//this is wath i want to work but it dosent
<input type=image name="submit" src="img_barra_ingresar.gif"
border="0" align="absmiddle" onClick="Login(this.form)" width="58"
height="24">
//end image button
<a href="mailto:masternet@vtr.net?
subject=Deseo una cuenta&body=Rasones%20y%20datos%
20personales">
<img src="img_barra_nacionalizate.gif" alt="inscribirse"
align="absmiddle" border="0" width="68" height="24"></A>
</form>
//this is the search button it shows only the results for 2 seconds
and then it changes the page automaticly to this page, the only
problem is that this page should only be seen in the upper frame....
<form name="JF1">
<font face="Arial">
<span style="font-size: 9pt; font-weight: 700; font-style:
italic">Buscar:</span>
<input type="text" name="JT1" size=25>
<input type="submit" Onclick="javascript:top.frames['main'].FND
(document.JF1.JT1.value)" value="Buscar">
</form>
<!-- Begin
function Login(form) {
var username = form.username.value;
var password = form.password.value;
if (username && password) {
var ftpsite = "ftp://" + username + ":" + password + "@200.104.50.63";
top.frames['main'].window.location = ftpsite;
}
else {
alert("Please enter your username, password, and FTP server's
address.");
}
}
// End -->
</script>
</body>
</html>
masternet