Jump to content


Photo

Capiturar Campo De Um Form Dentro De Um Iframe Q Ta Dentro De Um Form?


  • Faça o login para participar
7 replies to this topic

#1 Nando

Nando

    Eta eta eta, brasileiro quer.. futibol, mulher e rock'n roll

  • Usuários
  • 916 posts
  • Sexo:Masculino
  • Localidade:Sapucaia do Sul - RS
  • Interesses:Não sou interesseiro.

Posted 30/03/2006, 11:42

Opa pessoal eu tenho um formulário q tem um iframe e dentro do iframe tem uma página q tem um campo como faço para o campo q ta dentro do iframe seja reconhecido como se fosse do formulário??
Vlw e Abraços!
Qualquer dia será só 1 linha de assinatura! x) Aí vou deixar essa aki mesmo já pra garantir.
Fireworks: llllllllllllllllllllllllllllll (Jah mexo a tempo mas ando meio parado)
Dreamweaver: llllllllllllllllllllllllllllll (Braço direito enquanto programo)
Js: llllllllllllllllllllllllllllll (Recem iniciando)
PHP: llllllllllllllllllllllllllllll (Dinamic Punch!!)

#2 edmais

edmais

    Just do it!

  • Usuários
  • 797 posts
  • Sexo:Não informado
  • Localidade:BH - MG

Posted 30/03/2006, 11:58

alert(nome_do_iframe.document.getElementById("id_do_campo").value);

Eduardo Batista

#3 Nando

Nando

    Eta eta eta, brasileiro quer.. futibol, mulher e rock'n roll

  • Usuários
  • 916 posts
  • Sexo:Masculino
  • Localidade:Sapucaia do Sul - RS
  • Interesses:Não sou interesseiro.

Posted 01/04/2006, 09:10

É dentro da página em que vai o form que tem o iframe né?

Isso num <script Language=Javascript></script< dentro da Head?

Tipo

<html>
<head><title>Fom</title>
<script language=javascript>

alert(foto1.document.getElementById("foto[4]").value);
alert(foto2.document.getElementById("foto[5]").value);

</script>


Isso? Vlw's!!
Qualquer dia será só 1 linha de assinatura! x) Aí vou deixar essa aki mesmo já pra garantir.
Fireworks: llllllllllllllllllllllllllllll (Jah mexo a tempo mas ando meio parado)
Dreamweaver: llllllllllllllllllllllllllllll (Braço direito enquanto programo)
Js: llllllllllllllllllllllllllllll (Recem iniciando)
PHP: llllllllllllllllllllllllllllll (Dinamic Punch!!)

#4 Alex Hiroshi

Alex Hiroshi

    Super Veterano

  • Ex-Admins
  • 4923 posts
  • Sexo:Masculino
  • Localidade:São Paulo - SP

Posted 01/04/2006, 19:11

Dentro do head não! Não do jeito que está o script, vai dar erro.

Deixe ele só depois do iframe. .
Fórum WMO - Equipe de Desenvolvimento / Banco de Dados - Ex-Administrador

#5 Nando

Nando

    Eta eta eta, brasileiro quer.. futibol, mulher e rock'n roll

  • Usuários
  • 916 posts
  • Sexo:Masculino
  • Localidade:Sapucaia do Sul - RS
  • Interesses:Não sou interesseiro.

Posted 01/04/2006, 20:56

Bem eu vou postar aqui a página completa do que eu tenho e ver se é isso qe vai funcionar, e peço perdão mas tem um pouco de php então não deem bola pra os código em PHP, eu quero só conseguir capturar os campos que estão dentro do iframe e já que em PHP não responderam então vamos ao que interessa:

<?
include "verifica_caminho.php";
?><? 
$id= $_GET["id"];


$resultado = mysql_query("SELECT * FROM imoveis WHERE id='" .$id. "'");
	$linha = mysql_fetch_array($resultado);

$nome2 = $linha["nome"];
$nome_diretorio = $linha["nome"];
$venda = $linha["venda"];
$descricao = $linha["descricao"];
$rua = $linha["rua"];
$numero = $linha["numero"];
$bairro = $linha["bairro"];
$cidade = $linha["cidade"];
$cep = $linha["cep"];
$ddd = $linha["ddd"];
$telefone = $linha["telefone"];
$valor_de = $linha["valor_de"];
$valor_a = $linha["valor_a"];

$foto1_descricao = $linha["foto1_descricao"];
$foto2_descricao = $linha["foto2_descricao"];
$foto3_descricao = $linha["foto3_descricao"];
$foto4_descricao = $linha["foto4_descricao"];
$foto5_descricao = $linha["foto5_descricao"];
$foto6_descricao = $linha["foto6_descricao"];
$foto7_descricao = $linha["foto7_descricao"];
$foto8_descricao = $linha["foto8_descricao"];

$msn = $linha["msn"];

//CONTRIBUIÇÃO ECLESTIASTES\\------------------------------------------------------------------
$arrReplace['a'] = array('Á', 'á', 'À', 'à', 'Ã', 'ã', 'Â', 'â');
$arrReplace['e'] = array('É', 'é', 'È', 'è', 'Ê', 'ê');
$arrReplace['i'] = array('Í', 'í', 'Ì', 'ì', 'Í', 'í', 'Î', 'î');
$arrReplace['o'] = array('Ó', 'ó', 'Ò', 'ò', 'Õ', 'õ', 'Ô', 'ô');
$arrReplace['u'] = array('Ú', 'ú', 'Ù', 'ù', 'Û', 'û');
$arrReplace['_'] = array(' ');

$chrs = array('a', 'e', 'i', 'o', 'u', '_');

while (list($key, $chr) = each($chrs)) {

	$nome_diretorio = str_replace($arrReplace[$chr], $chr, $nome_diretorio);

}

$foto = "fotos/".$nome_diretorio."/".$linha["foto_principal"]; 
$foto1 = "fotos/".$nome_diretorio."/".$linha["foto1"];
$foto2 = "fotos/".$nome_diretorio."/".$linha["foto2"]; 
$foto3 = "fotos/".$nome_diretorio."/".$linha["foto3"]; 
$foto4 = "fotos/".$nome_diretorio."/".$linha["foto4"]; 
$foto5 = "fotos/".$nome_diretorio."/".$linha["foto5"]; 
$foto6 = "fotos/".$nome_diretorio."/".$linha["foto6"]; 
$foto7 = "fotos/".$nome_diretorio."/".$linha["foto7"]; 
$foto8 = "fotos/".$nome_diretorio."/".$linha["foto8"]; 

$img_naodisponivel = "fotos/thumbnaodisponivel.jpg";

if ($linha["foto1"]=="") {
	$foto1= $img_naodisponivel;

} if ($linha["foto2"]=="") {
	$foto2= $img_naodisponivel;

} if ($linha["foto3"]=="") {
	$foto3= $img_naodisponivel;

} if ($linha["foto4"]=="") {
	$foto4 = $img_naodisponivel;

} if ($linha["foto5"]==""){
	$foto5= $img_naodisponivel;
	
} if($linha["foto6"]=="") {
	$foto6 = $img_naodisponivel;
	
} if($linha["foto7"]=="") {
	$foto7 = $img_naodisponivel;

} if($linha["foto8"]=="") {
	$foto8 = $img_naodisponivel;
}

?>
<html>
<head>


<title>Documento sem t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css.css" rel="stylesheet" type="text/css">
<style>
.transp {
filter: alpha ( opacity= 10 );
}
</style>
</head>
<body>
<script language="JavaScript">
alert(foto1.document.getElementById("foto[4]").value);
</script>
<form action="?secao=imoveis&pag=editar_ok&id=<? echo $linha["id"]; ?>" method="post" enctype="multipart/form-data" name="form1">
  <table width="500" class="tabelapontilhada" border="0" align="center" cellpadding="3" cellspacing="0">
	<tr valign="middle"> 
	  <td width="86" valign="top" bgcolor="#EBEBEB">Nome:</td>
	  <td bgcolor="#EBEBEB"> 
		<input name="nome" type="text" id="nome" value="<? echo $nome2; ?>"> 
	  </td>
	  <td colspan="2" bgcolor="#EBEBEB"> 
		<div align="right"> 
		</div>
		<div align="left"> 
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr> 
			  <td>Tipo: 
			  </td>
			  <td><div align="right"> 
				  <select name="venda" id="select3">
					<option <? if ( $linha["tipo"]=="Apartamento 2 Dorm") { echo "selected"; }?> value="Apartamento 2 Dorm">Apartamento 
					2 
					Dorm</option>
					<option <? if ( $linha["tipo"]=="Apartamento 3 Dorm") { echo "selected"; }?> value="Apartamento 3 Dorm">Apartamento 
					3 
					Dorm</option>
					<option <? if ( $linha["tipo"]=="Apartamento de Cobertura") { echo "selected"; }?> value="Apartamento de Cobertura">Apartamento 
					de 
					Cobertura</option>
					<option <? if ( $linha["tipo"]=="Casa de Alvenaria") { echo "selected"; }?> value="Casa de Alvenaria">Casa 
					de 
					Alvenaria</option>
					<option <? if ( $linha["tipo"]=="Casa de Madeira") { echo "selected"; }?> value="Casa de Madeira">Casa 
					de 
					Madeira</option>
					<option <? if ( $linha["tipo"]=="Casa Mista") { echo "selected"; }?> value="Casa Mista">Casa 
					Mista</option>
					<option <? if ( $linha["tipo"]=="Chácara/Sítio") { echo "selected"; }?> value="Ch&aacute;cara/S&iacute;tio">Ch&aacute;cara/S&iacute;tio</option>
					<option <? if ( $linha["tipo"]=="Loja Térrea") { echo "selected"; }?> value="Loja T&eacute;rrea">Loja 
					T&eacute;rrea</option>
					<option <? if ( $linha["tipo"]=="Pavilhão/Prédio") { echo "selected"; }?> value="Pavilh&atilde;o/Pr&eacute;dio">Pavilh&atilde;o/Pr&eacute;dio</option>
					<option <? if ( $linha["tipo"]=="Sala Comercial em Edifício") { echo "selected"; }?> value="Sala Comercial em Edif&iacute;cio">Sala 
					Comercial 
					em 
					Edif&iacute;cio</option>
					<option <? if ( $linha["tipo"]=="Terreno") { echo "selected"; }?> value="Terreno">Terreno</option>
					<option <? if ( $linha["tipo"]=="Outros") { echo "selected"; }?> value="Outros">Outros</option>
				  </select>
				</div></td>
			</tr>
		  </table>
		</div></td>
	</tr>
	<tr valign="top"> 
	  <td valign="top" bgcolor="#FFFFFF">Descri&ccedil;&atilde;o:</td>
	  <td colspan="3" valign="top" bgcolor="#FFFFFF"> 
		<textarea name="descricao" cols="35" rows="5" id="descricao"><? echo $descricao; ?></textarea></td>
	</tr>
	<tr valign="top"> 
	  <td rowspan="2" valign="top" bgcolor="#EBEBEB">Localiza&ccedil;&atilde;o:</td>
	  <td valign="top" bgcolor="#EBEBEB"> 
		Rua: 
	  </td>
	  <td valign="top" bgcolor="#EBEBEB">N&ordm;:</td>
	  <td valign="top" bgcolor="#EBEBEB">Bairro: 
	  </td>
	</tr>
	<tr valign="top"> 
	  <td valign="top" bgcolor="#EBEBEB"><input name="rua" type="text" id="rua" value="<? echo $rua; ?>" size="25"></td>
	  <td valign="top" bgcolor="#EBEBEB"><input name="numero" type="text" id="numero" value="<? echo $numero; ?>" size="10"> 
	  </td>
	  <td valign="top" bgcolor="#EBEBEB"><input name="bairro" type="text" id="bairro" value="<? echo $bairro; ?>" size="16"></td>
	</tr>
	<tr valign="top"> 
	  <td rowspan="2" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
	  <td bgcolor="#FFFFFF">Cidade: 
	  </td>
	  <td colspan="2" bgcolor="#FFFFFF">Cep: 
	  </td>
	</tr>
	<tr valign="top"> 
	  <td bgcolor="#FFFFFF"> 
		<select name="cidade" id="cidade">
		  <option <? if($linha["cidade"]=="Sapucaia do Sul") { echo "selected"; }?> value="Sapucaia do Sul" selected>Sapucaia 
		  do 
		  Sul</option>
		  <option <? if($linha["cidade"]=="São Leopoldo") { echo "selected"; }?>  value="S&atilde;o Leopoldo">S&atilde;o 
		  Leopoldo</option>
		  <option <? if($linha["cidade"]=="Esteio") { echo "selected"; }?>  value="Esteio">Esteio</option>
		  <option <? if($linha["cidade"]=="Canoas") { echo "selected"; }?>  value="Canoas">Canoas</option>
		  <option <? if($linha["cidade"]=="Novo Hamburgo") { echo "selected"; }?>  value="Novo Hamburgo">Novo 
		  Hamburgo</option>
		</select></td>
	  <td colspan="2" bgcolor="#FFFFFF"><input name="cep" type="text" id="cep" value="<? echo $cep; ?>"></td>
	</tr>
	<tr valign="middle"> 
	  <td valign="top" bgcolor="#EBEBEB">Telefone 
		(DDD-N&ordm;):</td>
	  <td colspan="3" bgcolor="#EBEBEB"> 
		<input name="ddd" type="text" id="ddd" value="<? echo $ddd; ?>" size="5">
		- 
		<input name="telefone" type="text" id="telefone" value="<? echo $telefone; ?>"> 
	  </td>
	</tr>
	<tr valign="top"> 
	  <td valign="top" bgcolor="#FFFFFF">Valores:</td>
	  <td colspan="3" valign="top" bgcolor="#FFFFFF">De 
		<input name="valor_de" type="text" id="valor_de" value="<? echo $valor_de; ?>" size="12"> 
		&agrave; 
		<input name="valor_a" type="text" id="valor_a" value="<? echo $valor_a; ?>" size="12"> 
	  </td>
	</tr>
	<tr valign="middle"> 
	  <td valign="top" bgcolor="#EBEBEB">V&iacute;deo 
		Demostrativo:</td>
	  <td colspan="3" bgcolor="#EBEBEB"> 
		<input name="upload[1]" type="file" id="upload[1]">
		(Em 
		manuten&ccedil;&atilde;o)</td>
	</tr>
	<tr valign="middle"> 
	  <td valign="top">Mapa:</td>
	  <td colspan="3"> 
		<input name="upload[2]" type="file" id="upload[2]">
		(Em 
		manuten&ccedil;&atilde;o)</td>
	</tr>
	<tr valign="middle"> 
	  <td valign="top" bgcolor="#EBEBEB">Foto 
		Principal:</td>
	  <td colspan="3" bgcolor="#EBEBEB"> 
		<div align="right"> 
		  <? if ($linha["foto_principal"]!==""){ echo "<iframe hspace='0' vspace='0'  width='100%' frameborder='0'  id='foto_pincipal' name='foto_principal' scrolling='no' marginheight='0' height='100%' marginwidth='0' src='foto1.php?id=$id&ph=0' allowtransparency='true'></iframe>"; } else{
		  echo "<input name='upload[3]' type='file' id='upload[3]' size='20'>";}
		   ?>
		</div></td>
	</tr>
	<tr valign="middle"> 
	  <td colspan="4" valign="top"> 
		<p>&nbsp;</p></td>
	</tr>
	<tr valign="middle"> 
	  <td valign="top"><strong>Galeria 
		de 
		fotos: 
		</strong></td>
	  <td> 
		<div align="center"><strong>Descri&ccedil;&atilde;o 
		  da 
		  Foto:</strong></div></td>
	  <td colspan="2"> 
		<div align="right"><strong>Foto:</strong></div></td>
	</tr>
	<tr valign="top"> 
	  <td valign="top" bgcolor="#EBEBEB">Foto 
		1 
		&gt;</td>
	  <td width="180" bgcolor="#EBEBEB"> 
		<input name="foto1_descricao" type="text" id="foto1_descricao" value="<? echo $foto1_descricao; ?>" size="30"></td>
	  <td colspan="2" bgcolor="#EBEBEB"> 
		<div align='right'> 
		  <? if($linha["foto1"]!=""){
	  echo "<iframe hspace='0' vspace='0'  width='100%' frameborder='0'  id='foto1' name='foto1' scrolling='no' marginheight='0' marginwidth='0' src='foto1.php?id=$id&ph=1' allowtransparency='true'></iframe>"; 
	  } else {
	  echo "<input name='upload[4]' type='file' id='upload[4]' size='20'>"; } ?>
		</div></td>
	</tr>
	<tr valign="top"> 
	  <td colspan="4" valign="top">&nbsp;</td>
	</tr>
	<tr valign="top"> 
	  <td valign="top" bgcolor="#EBEBEB">Foto 
		2 
		&gt;</td>
	  <td bgcolor="#EBEBEB"> 
		<input name="foto2_descricao" type="text" id="foto2_descricao" value="<? echo $foto2_descricao; ?>" size="30"></td>
	  <td colspan="2" bgcolor="#EBEBEB"> 
		<div align="right"> 
		  <? if ($linha["foto2"]!==""){ echo "<iframe hspace='0' vspace='0'  width='100%' frameborder='0'  id='foto2' name='foto2' scrolling='no' marginheight='0' marginwidth='0' src='foto1.php?id=$id&ph=2' allowtransparency='true'></iframe>"; } else {
		  echo "<input name='upload[5]' type='file' id='upload[5]' size='20'>"; }
		  ?>
		</div></td>
	</tr>
	<tr valign="top"> 
	  <td colspan="4" valign="top">&nbsp;</td>
	</tr>
	<tr valign="top"> 
	  <td valign="top" bgcolor="#EBEBEB">Foto 
		3 
		&gt;</td>
	  <td bgcolor="#EBEBEB"> 
		<input name="foto3_descricao" type="text" id="foto3_descricao" value="<? echo $foto3_descricao; ?>" size="30"></td>
	  <td colspan="2" bgcolor="#EBEBEB"> 
		<div align="right"> 
		  <? if ($linha["foto3"]!==""){ echo "<iframe hspace='0' vspace='0'  width='100%' frameborder='0'  id='foto3' name='foto3' scrolling='no' marginheight='0' marginwidth='0' src='foto1.php?id=$id&ph=3' allowtransparency='true'></iframe>"; } else {
		  echo "<input name='upload[6]' type='file' id='upload[6]' size='20'>"; }
		  ?>
		  <a ref="java script:;" onClick="document.getElementById('foto_maior').src='foto_principal.php?img=<? echo $foto3; ?>'"> 
		  </a></div></td>
	</tr>
	<tr valign="top"> 
	  <td colspan="4" valign="top">&nbsp;</td>
	</tr>
	<tr valign="top"> 
	  <td height="28" valign="top" bgcolor="#EBEBEB">Foto 
		4 
		&gt;</td>
	  <td bgcolor="#EBEBEB"> 
		<input name="foto4_descricao" type="text" id="foto4_descricao" value="<? echo $foto4_descricao; ?>" size="30"></td>
	  <td colspan="2" bgcolor="#EBEBEB"> 
		<div align="right"> 
		  <? if ($linha["foto4"]!==""){ echo "<iframe hspace='0' vspace='0'  width='100%' frameborder='0'  id='foto4' name='foto4' scrolling='no' marginheight='0' marginwidth='0' src='foto1.php?id=$id&ph=4' allowtransparency='true'></iframe>"; } else {
		  echo "<input name='upload[7]' type='file' id='upload[7]' size='20'>"; }?>
		</div></td>
	</tr>
	<tr valign="top"> 
	  <td colspan="4" valign="top">&nbsp;</td>
	</tr>
	<tr valign="top"> 
	  <td valign="top" bgcolor="#EBEBEB">Foto 
		5 
		&gt;</td>
	  <td bgcolor="#EBEBEB"> 
		<input name="foto5_descricao" type="text" id="foto5_descricao" value="<? echo $foto5_descricao; ?>" size="30"></td>
	  <td colspan="2" bgcolor="#EBEBEB"> 
		<div align="right"> 
		  <? if ($linha["foto5"]!==""){ echo "<iframe hspace='0' vspace='0'  width='100%' frameborder='0'  id='foto5' name='foto5' scrolling='no' marginheight='0' marginwidth='0' src='foto1.php?id=$id&ph=5' allowtransparency='true'></iframe>"; } else {
		  echo "<input name='upload[8]' type='file' id='upload[8]' size='20'>"; }?>
		</div></td>
	</tr>
	<tr valign="top"> 
	  <td colspan="4" valign="top">&nbsp;</td>
	</tr>
	<tr valign="top"> 
	  <td valign="top" bgcolor="#EBEBEB">Foto 
		6 
		&gt;</td>
	  <td bgcolor="#EBEBEB"> 
		<input name="foto6_descricao" type="text" id="foto6_descricao" value="<? echo $foto6_descricao; ?>" size="30"></td>
	  <td colspan="2" bgcolor="#EBEBEB"> 
		<div align="right"> 
		  <? if ($linha["foto6"]!==""){ echo "<iframe hspace='0' vspace='0'  width='100%' frameborder='0'  id='foto6' name='foto6' scrolling='no' marginheight='0' marginwidth='0' src='foto1.php?id=$id&ph=6' allowtransparency='true'></iframe>"; } else {
		  echo "<input name='upload[9]' type='file' id='upload[9]' size='20'>"; }?>
		</div></td>
	</tr>
	<tr valign="top"> 
	  <td colspan="4" valign="top">&nbsp;</td>
	</tr>
	<tr valign="top"> 
	  <td valign="top" bgcolor="#EBEBEB">Foto 
		7 
		&gt;</td>
	  <td bgcolor="#EBEBEB"> 
		<input name="foto7_descricao" type="text" id="foto7_descricao" value="<? echo $foto7_descricao; ?>" size="30"></td>
	  <td colspan="2" bgcolor="#EBEBEB"> 
		<div align="right"> 
		  <? if ($linha["foto7"]!==""){ echo "<iframe hspace='0' vspace='0'  width='100%' frameborder='0'  id='foto7' name='foto7' scrolling='no' marginheight='0' marginwidth='0' src='foto1.php?id=$id&ph=7' allowtransparency='true'></iframe>"; } else {
		  echo "<input name='upload[10]' type='file' id='upload[10]' size='20'>"; }?>
		</div></td>
	</tr>
	<tr valign="top"> 
	  <td colspan="4" valign="top">&nbsp;</td>
	</tr>
	<tr valign="top"> 
	  <td valign="top" bgcolor="#EBEBEB">Foto 
		8 
		&gt;</td>
	  <td bgcolor="#EBEBEB"> 
		<input name="foto8_descricao" type="text" id="foto8_descricao" value="<? echo $foto8_descricao; ?>" size="30"></td>
	  <td colspan="2" bgcolor="#EBEBEB"> 
		<div align='right'> 
		  <? if ($linha["foto8"]!==""){ echo "<iframe hspace='0' vspace='0'  width='100%' frameborder='0'  id='foto8' name='foto8' scrolling='no' marginheight='0' marginwidth='0' src='foto1.php?id=$id&ph=8' allowtransparency='true'></iframe>"; } else {
		  echo "<input name='upload[11]' type='file' id='upload[11]' size='20'>"; 
		  } ?>
		</div></div> 
	  </td>
	</tr>
	<tr valign="middle"> 
	  <td valign="top">&nbsp;</td>
	  <td colspan="3">&nbsp;</td>
	</tr>
	<tr valign="middle"> 
	  <td valign="top" bgcolor="#EBEBEB">Atendimento:</td>
	  <td colspan="3" bgcolor="#EBEBEB"> 
		MSN: 
		<input name="msn" type="text" id="msn" value="<? echo $msn; ?>"></td>
	</tr>
	<tr valign="middle"> 
	  <td>Import&acirc;ncia:</td>
	  <td colspan="3"><select name="importancia" id="importancia">
		  <option <? if($linha["importancia"]==1) { echo "selected"; } ?> value="1">1</option>
		  <option <? if($linha["importancia"]==2) { echo "selected"; } ?>  value="2">2</option>
		  <option <? if($linha["importancia"]==3) { echo "selected"; } ?>  value="3">3</option>
		  <option <? if($linha["importancia"]==4) { echo "selected"; } ?>  value="4">4</option>
		  <option <? if($linha["importancia"]==5) { echo "selected"; } ?>  value="5">5</option>
		</select></td>
	</tr>
	<tr valign="top"> 
	  <td valign="top" bgcolor="#EBEBEB">&nbsp;</td>
	  <td colspan="3" bgcolor="#EBEBEB"> 
		<div align="right"> 
		
		<script language=javascript>

alert(foto1.document.getElementById("foto[4]").value);
alert(foto2.document.getElementById("foto[5]").value);

</script>
		  <input type="submit" name="Submit" value="Enviar">
		</div></td>
	</tr>
  </table>
  </form>
</body>
</html>

Assim dará certo? Vlw pessoal!
Qualquer dia será só 1 linha de assinatura! x) Aí vou deixar essa aki mesmo já pra garantir.
Fireworks: llllllllllllllllllllllllllllll (Jah mexo a tempo mas ando meio parado)
Dreamweaver: llllllllllllllllllllllllllllll (Braço direito enquanto programo)
Js: llllllllllllllllllllllllllllll (Recem iniciando)
PHP: llllllllllllllllllllllllllllll (Dinamic Punch!!)

#6 Alex Hiroshi

Alex Hiroshi

    Super Veterano

  • Ex-Admins
  • 4923 posts
  • Sexo:Masculino
  • Localidade:São Paulo - SP

Posted 01/04/2006, 23:38

Dificilmente alguem vai olhar esse código todo =). .

Se vai dar certo ou não, só testando.
Você chegou a testar? Sim? Qual erro apareceu?
Fórum WMO - Equipe de Desenvolvimento / Banco de Dados - Ex-Administrador

#7 Nando

Nando

    Eta eta eta, brasileiro quer.. futibol, mulher e rock'n roll

  • Usuários
  • 916 posts
  • Sexo:Masculino
  • Localidade:Sapucaia do Sul - RS
  • Interesses:Não sou interesseiro.

Posted 02/04/2006, 10:51

Eu posteio codigo inteiro pq eh melhor sobrar do q faltar neh... =P

Eh q eu tava de saida e to sem PC,posso postar soh de vez em quando e correndo quando to no meu amigo capitou?

O problema eh esse aqui:
Eu cheguei a testar soh q nao ta capiturando... =(
Qualquer dia será só 1 linha de assinatura! x) Aí vou deixar essa aki mesmo já pra garantir.
Fireworks: llllllllllllllllllllllllllllll (Jah mexo a tempo mas ando meio parado)
Dreamweaver: llllllllllllllllllllllllllllll (Braço direito enquanto programo)
Js: llllllllllllllllllllllllllllll (Recem iniciando)
PHP: llllllllllllllllllllllllllllll (Dinamic Punch!!)

#8 Klaus

Klaus

    @ ubuntu jaunty

  • Ex-Admins
  • 7924 posts
  • Sexo:Masculino
  • Localidade:127.0.0.1

Posted 03/04/2006, 12:28

Bom, o código ninguém vai olhar mesmo.

Para entrar num iframe, já foi mostrado:

nomeDoIframe.algumaPropriedade


Para pegar um campo também:

getElementById( "IDdoCAMPO" );


Basta testar.

Iframes? Blerghhhhhhhh.
Klaus Paiva
Conheça também: Taperás




0 user(s) are reading this topic

0 membro(s), 0 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq