Ver Mensaje Individual
  #5 (permalink)  
Antiguo 31/05/2012, 02:44
last_soldi
 
Fecha de Ingreso: abril-2011
Mensajes: 7
Antigüedad: 13 años
Puntos: 0
Respuesta: No me funciona .js

Buenas de nuevo.

Perdonar por no explicarme bien.

Veamos yo tengo esta calculadora:

Código:
<form name=Calculadora>

<input name="importe_anterior" type="hidden">
<input name="plazo_anterior" type="hidden">
<input name="tipo_anterior"  type="hidden">
<input name="cuota_anterior" type="hidden">
<input name="medida_anterior" type="hidden">
<input name="tipoVF_anterior" type="hidden">
<input name=medida type="hidden" value=1>
<input name=tipoVF value=1 type="hidden">

<center>
<table style="font-size:1.4em;" width="282">
<tr>
<td style="width:146px;"><font size="3">Importe a financiar:</font></td>
<td><input name=importe value="180000" onBlur="verificar_numero(this,Calculadora)" size="8" tabindex="1" ></td>
<td style="background-color:#eee; padding:0 10px;"><font size="3">€</font></td>
</tr>
<tr>
<td><font size="3">Plazo de amortización:</font></td>
<td><input name=plazo value="30" onBlur="verificar_numero(this,Calculadora)" size="8" tabindex="2"></td>
<td style="background-color:#eee; padding:0 10px;"><font size="3">años</font></td>
</tr>
<tr>
<td><font size="3">Tipo de interés:</font></td>
<td><input name=tipo value="5,00" onBlur="verificar_numero(this,Calculadora)" size="8" tabindex="3"></td>
<td style="background-color:#eee; padding:0 10px;"><font size="3">%</font></td>
</tr>
<tr>
<td><font size="3">Cuota mensual a pagar:</font></td>
<td><input name=cuota onBlur="verificar_numero(this,Calculadora)" size="8" tabindex="4"></td>
<td style="background-color:#eee; padding:0 10px;"><font size="3">€</font></td>
</tr>
</table>

<p style="margin-top:30px;">
<input name="ccuota" type=button class="button" value="Calcular Cuota" onClick="calculacuota()" style="width:116; text-align: center; cursor:pointer; background-color: #ccc; height:24" tabindex="8">
<input name="reset2" type=reset class="button" value="Borrar Datos" style="width:107; text-align: center; cursor:pointer; background-color: #ccc; height:25" tabindex="9">
</p>
</center>

		</form>
Que para que funcione tira del archivo "simulador.js" que está en su mismo directorio. Cargando esto en un archivo html con:
Código:
<head>	<script language="javascript" type="text/javascript" src="simulador.js"></script>
</head>
Todo funciona perfecto, pero quiero meter esta calculadora en un archivo PHP y no consigo hacerlo funcionar...

Espero haberlo aclarado ! Gracias !