Newsgroup: it.comp.lang.javascript
Titolo: X ATI POWER HELP II!!..



Ciao , ecco le due pagine con i dati che non riesco a richiamare

1   PAGINA :


 

 

<HTML>

<HEAD>

<TITLE></TITLE>

<script language="JavaScript">

 function del1() {

  if(parent.framedx.p1_qta!=0) {

   newCosto = parent.framedx.p1_cos/parent.framedx.p1_qta

   parent.framedx.p1_qta-=1

   if(parent.framedx.p1_qta!=0) {

    parent.framedx.p1_cos-=newCosto

    parent.framedx.setTotale()

   }

   else {

    parent.framedx.p1_cod=""

    parent.framedx.p1_nom=""

    parent.framedx.p1_cos=0

    parent.framedx.setTotale()

   }

   location.reload()

  }

 }

 function del2() {

  if(parent.framedx.p2_qta!=0) {

   newCosto = parent.framedx.p2_cos/parent.framedx.p2_qta

   parent.framedx.p2_qta-=1

   if(parent.framedx.p2_qta!=0) {

    parent.framedx.p2_cos-=newCosto

    parent.framedx.setTotale()

   }

   else {

    parent.framedx.p2_cod=""

    parent.framedx.p2_nom=""

    parent.framedx.p2_cos=0

    parent.framedx.setTotale()

   }

   location.reload()

  }

 }

 function del3() {

  if(parent.framedx.p3_qta!=0) {

   newCosto = parent.framedx.p3_cos/parent.framedx.p3_qta

   parent.framedx.p3_qta-=1

   if(parent.framedx.p3_qta!=0) {

    parent.framedx.p3_cos-=newCosto

    parent.framedx.setTotale()

   }

   else {

    parent.framedx.p3_cod=""

    parent.framedx.p3_nom=""

    parent.framedx.p3_cos=0

    parent.framedx.setTotale()

   }

   location.reload()

  }

 }

 function del4() {

  if(parent.framedx.p4_qta!=0) {

   newCosto = parent.framedx.p4_cos/parent.framedx.p4_qta

   parent.framedx.p4_qta-=1

   if(parent.framedx.p4_qta!=0) {

    parent.framedx.p4_cos-=newCosto

    parent.framedx.setTotale()

   }

   else {

    parent.framedx.p4_cod=""

    parent.framedx.p4_nom=""

    parent.framedx.p4_cos=0

    parent.framedx.setTotale()

   }

   location.reload()

  }

 }

 

</script>

</HEAD>

<BODY text="#003300" link="#003300" vlink="#003300" alink="#003300"
bgcolor="#F0C8C8">

<br>

<DIV align="center">

  <CENTER>

  <form name="cartForm">

<TABLE border="2" width="94%" cellspacing="0" cellpadding="10" bordercolor="#003300"
height="280" bgcolor="#FFFFCC">

  <TR>

    <TD width="494" valign="middle" align="center"
height="35" colspan="5">

      <P align="right"><FONT color="#CC0000"
face="Arial" size="4">Contenuto del carrello&nbsp;

      <IMG border="0" src="cart.gif" align="absmiddle"></FONT></P>

    </TD>

  </TR>

  <TR>

    <TD width="72" valign="middle" align="center"
height="35">

      <FONT color="#003300" face="Arial"
size="2">Rimuovi</FONT>

    </TD>

    <TD width="87" valign="middle" align="center"
height="35">

      <FONT color="#003300" face="Arial"
size="2">Codice</FONT>

    </TD>

    <TD width="170" valign="middle" align="center"
height="35">

      <FONT color="#003300" face="Arial"
size="2">Nome</FONT>

    </TD>

    <TD width="56" valign="middle" align="center"
height="35">

      <FONT color="#003300" face="Arial"
size="2">Q.t?</FONT>

    </TD>

    <TD width="220" valign="middle" align="center"
height="35">

      <FONT color="#003300" face="Arial"
size="2">Costo</FONT>

    </TD>

  </TR>

  <TR>

    <TD width="72" valign="top" align="center" height="35">

      <FONT face="Arial" size="2"><A
href="
javascript:del1(
)"><IMG border="0" src="nocart.gif" align="absmiddle"></A></FONT>

    </TD>

    <TD width="87" valign="top" align="center" height="35">

      <FONT color="#003300" size="2" face="Arial"><INPUT
type="text"  name="cod1" size="7"></FONT>

    </TD>

    <TD width="170" valign="top" align="center" height="35">

      <FONT color="#003300" size="2" face="Arial"><INPUT
type="text"  name="nom1" size="20"></FONT>

    </TD>

    <TD width="56" valign="top" align="center" height="35">

      <FONT color="#003300" size="2" face="Arial"><INPUT
type="text"  name="qta1" size="2"></FONT>

    </TD>

    <TD width="220" valign="top" align="center" height="35">

      <FONT size="2" face="Arial" color="#003300"><INPUT
type="text"  name="cos1" size="8">

      </FONT>

    </TD>

  </TR>

  <TR>

    <TD width="72" valign="top" align="center" height="35">

      <FONT face="Arial" size="2"><A
href="
javascript:del2(
)"><IMG border="0" src="nocart.gif" align="absmiddle"></A></FONT>

    </TD>

    <TD width="87" valign="top" align="center" height="35">

      <FONT color="#003300" size="2" face="Arial"><INPUT
type="text"  name="cod2" size="7"></FONT>

    </TD>

    <TD width="170" valign="top" align="center" height="35">

      <FONT color="#003300" size="2" face="Arial"><INPUT
type="text"  name="nom2" size="20"></FONT>

    </TD>

    <TD width="56" valign="top" align="center" height="35">

      <FONT color="#003300" size="2" face="Arial"><INPUT
type="text"  name="qta2" size="2"></FONT>

    </TD>

    <TD width="220" valign="top" align="center" height="35">

      <FONT size="2" face="Arial" color="#003300"><INPUT
type="text"  name="cos2" size="8">

      </FONT>

    </TD>

  </TR>

  <TR>

    <TD width="72" valign="top" align="center" height="35">

      <FONT face="Arial" size="2"><A
href="
javascript:del3(
)"><IMG border="0" src="nocart.gif"></A></FONT>

    </TD>

    <TD width="87" valign="top" align="center" height="35">

      <FONT color="#003300" size="2" face="Arial"><INPUT
type="text"  name="cod3" size="7"></FONT>

    </TD>

    <TD width="170" valign="top" align="center" height="35">

      <FONT color="#003300" size="2" face="Arial"><INPUT
type="text"  name="nom3" size="20"></FONT>

    </TD>

    <TD width="56" valign="top" align="center" height="35">

      <FONT color="#003300" size="2" face="Arial"><INPUT
type="text"  name="qta3" size="2"></FONT>

    </TD>

    <TD width="220" valign="top" align="center" height="35">

      <FONT size="2" face="Arial" color="#003300"><INPUT
type="text"  name="cos3" size="8">

      </FONT>

    </TD>

  </TR>

  <TR>

    <TD width="72" valign="top" align="center" height="35">

      <FONT face="Arial" size="2"><A
href="
javascript:del4(
)"><IMG border="0" src="nocart.gif"></A></FONT>

    </TD>

    <TD width="87" valign="top" align="center" height="35">

      <FONT color="#003300" size="2" face="Arial"><INPUT
type="text"  name="cod4" size="7"></FONT>

    </TD>

    <TD width="170" valign="top" align="center" height="35">

      <FONT color="#003300" size="2" face="Arial"><INPUT
type="text"  name="nom4" size="20"></FONT>

    </TD>

    <TD width="56" valign="top" align="center" height="35">

      <FONT color="#003300" size="2" face="Arial"><INPUT
type="text"  name="qta4" size="2"></FONT>

    </TD>

    <TD width="220" valign="top" align="center" height="35">

      <FONT size="2" face="Arial" color="#003300"><INPUT
type="text"  name="cos4" size="8">

      </FONT>

    </TD>

  </TR>

  <TR>

    <TD width="72" valign="middle" align="center"
height="35">

      &nbsp;

    </TD>

    <TD width="87" valign="middle" align="center"
height="35">

        &nbsp;

    </TD>

    <TD width="170" valign="middle" align="center"
height="35">

        <P align="right"><B><FONT
color="#003300" face="Arial" size="2">Totale</FONT></B>

    </TD>

    <TD width="56" valign="middle" align="center"
height="35">

      <FONT color="#003300" size="2" face="Arial"><INPUT
type="text"  name="qtaT" size="2">

      </FONT>

    </TD>

    <TD width="220" valign="middle" align="center"
height="35">

      <FONT size="2" face="Arial" color="#003300"><INPUT
type="text"  name="cosT" size="8">

      </FONT>

    </TD>

  </TR>

  <TR>

    <TD width="494" valign="top" align="center" height="35"
colspan="5">

      <P align="center"><FONT size="2"
face="Arial" color="#003300">IVA

      </FONT>

      <FONT size="2" face="Arial" color="#003300"><INPUT
type="text"  name="iva" size="8"></FONT>&nbsp;&nbsp;&nbsp;

      <FONT size="2" face="Arial" color="#003300">Spedizione
<INPUT type="text"  name="spe" size="8">&nbsp;&nbsp;

      &nbsp;<B>Totale

      complessivo </B><INPUT type="text" 
name="sub" size="10"></FONT></p>

    </TD>

  </TR>

</TABLE>

</form>

  </CENTER>

</DIV>

</BODY>

<script language="JavaScript">

 top.framedx.vista = "cart"

 document.cartForm.cod1.value = parent.framedx.p1_cod

 document.cartForm.nom1.value = parent.framedx.p1_nom

 document.cartForm.qta1.value = parent.framedx.p1_qta

 document.cartForm.cos1.value = parent.framedx.p1_cos

 document.cartForm.cod2.value = parent.framedx.p2_cod

 document.cartForm.nom2.value = parent.framedx.p2_nom

 document.cartForm.qta2.value = parent.framedx.p2_qta

 document.cartForm.cos2.value = parent.framedx.p2_cos

 document.cartForm.cod3.value = parent.framedx.p3_cod

 document.cartForm.nom3.value = parent.framedx.p3_nom

 document.cartForm.qta3.value = parent.framedx.p3_qta

 document.cartForm.cos3.value = parent.framedx.p3_cos

 document.cartForm.cod4.value = parent.framedx.p4_cod

 document.cartForm.nom4.value = parent.framedx.p4_nom

 document.cartForm.qta4.value = parent.framedx.p4_qta

 document.cartForm.cos4.value = parent.framedx.p4_cos

 document.cartForm.qtaT.value = parent.framedx.qtaTotale

 document.cartForm.cosT.value = parent.framedx.cosTotale

 document.cartForm.iva.value = parent.framedx.iva

 document.cartForm.spe.value = parent.framedx.speseSped

 document.cartForm.sub.value = parent.framedx.subTotale

</script>

</HTML>

 

2  PAGINA :


 

<html>

 <head>

  <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">

  <meta name="generator" content="Adobe GoLive 4">

  <title></title>

  <script language="JavaScript"><!--

function goCart() { parent.framedx.showCart() }

 function setOrder() { location.href = "datiac.htm" }

// -->

  </script>

 </head>

 <body text="#003300" link="#003300" vlink="#003300" alink="#003300"
bgcolor="#f0c8c8">

  <br>

  <center>

   <p>

   <form name="cartForm">

   <table border="2" cellspacing="0" cellpadding="10"
bordercolor="#003300" height="386" bgcolor="#ffff7d" width="94%">

    <tr height="22">

     <td width="533" valign="middle" align="center"
height="22">

      <div align="right">

       <font color="#cc0000" face="Arial"
size="4">Conferma ordine&nbsp; <img border="0" src="conf.gif" align="absmiddle"></font></div>

     </td>

    </tr>

    <tr height="191">

     <td width="533" valign="middle" align="center"
height="191">

      <div align="right">

       <font color="#003300" size="2"
face="Arial">Codice <input type="text" name="cod1" size="7">&nbsp;
Nome <input type="text" name="nom1" size="15">&nbsp; Q.t&agrave;
<input type="text" name="qta1" size="2">&nbsp; Costo <input type="text"
name="cos1" size="6"> </font></div>

      <div align="right">

       <p><font color="#003300"
size="2" face="Arial">Codice <input type="text" name="cod2" size="7">&nbsp;
Nome <input type="text" name="nom2" size="15">&nbsp; Q.t&agrave;
<input type="text" name="qta2" size="2">&nbsp; Costo <input type="text"
name="cos2" size="6"> </font></p>

      </div>

      <div align="right">

       <p><font color="#003300"
size="2" face="Arial">Codice <input type="text" name="cod3" size="7">&nbsp;
Nome <input type="text" name="nom3" size="15">&nbsp; Q.t&agrave;
<input type="text" name="qta3" size="2">&nbsp; Costo <input type="text"
name="cos3" size="6"> </font></p>

      </div>

      <div align="right">

       <p><font color="#003300"
size="2" face="Arial">Codice <input type="text" name="cod4" size="7">&nbsp;
Nome <input type="text" name="nom4" size="15">&nbsp; Q.t&agrave;
<input type="text" name="qta4" size="2">&nbsp; Costo <input type="text"
name="cos4" size="6"> </font></p>

      </div>

      <div align="right">

       <p><font color="#003300"
face="Arial" size="2"><b>Totali:</b></font><font color="#003300"
size="2" face="Arial"><b>&nbsp;</b> Q.t&agrave; <input
type="text" name="qtaT" size="2">&nbsp; Costo <input type="text"
name="cosT" size="6"> </font></div>

     </td>

    </tr>

    <tr height="49">

     <td width="533" valign="top" align="center"
height="49">

      <div align="right">

       <font color="#003300" face="Arial"
size="2">IVA <input type="text" name="iva" size="3"></font><font
face="Arial" size="2">&nbsp;&nbsp;&nbsp; </font><font
color="#003300" face="Arial" size="2">Spedizione <input type="text"
name="spe" size="6">&nbsp;&nbsp; &nbsp;<b>Totale complessivo
</b><input type="text" name="sub" size="8"> </font></div>

     </td>

    </tr>

    <tr height="36">

     <td width="533" valign="top" align="center"
height="36">

      <center>

       <a href="
javascript:goCart(
)"><font
color="#003300" face="Arial" size="3"><b><img border="0" src="back.gif"
align="absmiddle" width="32" height="27">Torna al carrello</b></font></a><b><font
color="#003300" face="Arial" size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; <a href="
javascript:setOrder(
)">Conferma l'ordine
<img border="0" src="vai.gif" align="absmiddle" width="32" height="27"></a></font></b></center>

     </td>

    </tr>

   </table>

   </form>

  </center>

 </body>

 <script language="JavaScript">

 top.framedx.vista = "free"

 document.cartForm.cod1.value = parent.framedx.p1_cod

 document.cartForm.nom1.value = parent.framedx.p1_nom

 document.cartForm.qta1.value = parent.framedx.p1_qta

 document.cartForm.cos1.value = parent.framedx.p1_cos

 document.cartForm.cod2.value = parent.framedx.p2_cod

 document.cartForm.nom2.value = parent.framedx.p2_nom

 document.cartForm.qta2.value = parent.framedx.p2_qta

 document.cartForm.cos2.value = parent.framedx.p2_cos

 document.cartForm.cod3.value = parent.framedx.p3_cod

 document.cartForm.nom3.value = parent.framedx.p3_nom

 document.cartForm.qta3.value = parent.framedx.p3_qta

 document.cartForm.cos3.value = parent.framedx.p3_cos

 document.cartForm.cod4.value = parent.framedx.p4_cod

 document.cartForm.nom4.value = parent.framedx.p4_nom

 document.cartForm.qta4.value = parent.framedx.p4_qta

 document.cartForm.cos4.value = parent.framedx.p4_cos

 document.cartForm.qtaT.value = parent.framedx.qtaTotale

 document.cartForm.cosT.value = parent.framedx.cosTotale

 document.cartForm.iva.value = parent.framedx.iva

 document.cartForm.spe.value = parent.framedx.speseSped

 document.cartForm.sub.value = parent.framedx.subTotale

</script>

</html>

Ecco che ti ho triportato le due pagine ....

Di nuovo anticipatamente un grazie enorme per il tuo aiuto che mi stai
dando..

Sei hai bisogno di qualcosa per quanto riguarda i macintosh fammi un
fischio...

Lavoro in un apple center.....

ciao..

 

 

 


