Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/11/2015, 13:43
edgaralcalaserra
 
Fecha de Ingreso: octubre-2015
Ubicación: ciudad juarez
Mensajes: 90
Antigüedad: 8 años, 7 meses
Puntos: 1
Respuesta: variables de un formulario a otro

segundo formulario


Código HTML:
Ver original
  1. [HTML]<!doctype html>
  2. <title>Scrap</title>
  3. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  4. <meta http-equiv="imagetoolbar" content="no">
  5. <meta name="generator" content="LMSOFT Web Creator Pro, Version:6.0.0.15">
  6. <meta http-equiv="X-UA-Compatible" content="IE=9">
  7. <link href="./lmwcglobal.css?id=27821" rel="stylesheet" type="text/css">
  8. <link href="scrap.css?id=27821" rel="stylesheet" type="text/css">
  9. <script type="text/javascript" src="./jquery/jquery-1.5.1.min.js"></script>
  10. <script type="text/javascript" src="./jquery/jquery-ui-1.8.11.custom.min.js"></script>
  11. <link rel="stylesheet" href="./jquery/themes/base/jquery.ui.all.css?ver=60015" type="text/css" media="all" />
  12. <script type="text/javascript" src="./jquery/LMCenterInWindow.js?ver=60015"></script>
  13. <script type="text/javascript" src="./lmpres60015.js"></script>
  14. <script type="text/javascript" src="./menumodel001.js"></script><noscript></noscript>
  15.  
  16. </head>
  17.  
  18. <body style="margin-Left:0px;margin-Top:0px;margin-Bottom:0px;margin-Right:0px; background-color:#808080;">
  19.  
  20. <DIV class="cLinkHidden">
  21. <a href="./retrabajo.html" title="Inicio">Inicio</a><br>
  22. <a href="./salida.html" title="Salida">Salida</a><br>
  23. <a href="./ing.html" title="Ingenieria">Ingenieria</a><br>
  24. </DIV>
  25.  
  26. <div id='Page'>
  27.    <div id='GNoticias'></div>
  28.    <div id='Img1'>
  29.       <img id='Img1Inner' src='./images/scrap_Img1.png' alt="" />
  30.    </div>
  31.    <div id='Img2'>
  32.       <img id='Img2Inner' src='./images/scrap_Img2.png' alt="" />
  33.    </div>
  34.    <div id='GFondo'></div>
  35.    <div id='Menu1'></div>
  36.    <div id='Img11'>
  37.       <img id='Img11Inner' src='./images/scrap_Img11.png' alt="" />
  38.    </div>
  39.    <div id='Img12'>
  40.       <img id='Img12Inner' src='./images/scrap_Img11.png' alt="" />
  41.    </div>
  42.    <div id='Img13'>
  43.       <img id='Img13Inner' src='./images/scrap_Img11.png' alt="" />
  44.    </div>
  45.    <div id='Img14'>
  46.       <img id='Img14Inner' src='./images/scrap_Img11.png' alt="" />
  47.    </div>
  48.    <div id='GMenu'></div>
  49.    <div id='GCentrar'></div>
  50.    <div id='Img17'>
  51.       <img id='Img17Inner' src='./images/scrap_Img17.png' alt="" />
  52.    </div>
  53.    <div id='GPancarta'></div>
  54.    <div id='Img3'>
  55.       <img id='Img3Inner' src='./images/scrap_Img3.png' alt="" />
  56.    </div>
  57.    <div id='Img4'>
  58.       <img id='Img4Inner' src='./images/scrap_Img3.png' alt="" />
  59.    </div>
  60.    <div id='Img5'>
  61.       <img id='Img5Inner' src='./images/scrap_Img3.png' alt="" />
  62.    </div>
  63.    <div id='Img6'>
  64.       <img id='Img6Inner' src='./images/scrap_Img3.png' alt="" />
  65.    </div>
  66.    <div id='Img7'>
  67.       <img id='Img7Inner' src='./images/scrap_Img3.png' alt="" />
  68.    </div>
  69.    <div id='Img8'>
  70.       <img id='Img8Inner' src='./images/scrap_Img3.png' alt="" />
  71.    </div>
  72.    <div id='Img9'>
  73.       <img id='Img9Inner' src='./images/scrap_Img3.png' alt="" />
  74.    </div>
  75.    <div id='Img22'>
  76.       <img id='Img22Inner' src='./images/scrap_Img3.png' alt="" />
  77.    </div>
  78.    <div id='Img21'>
  79.       <img id='Img21Inner' src='./images/scrap_Img3.png' alt="" />
  80.    </div>
  81.    <div id='GRings'></div>
  82.    <div id='Img10'>
  83.       <img id='Img10Inner' src='./images/200px-earth_recycle.svg.png' alt="" />
  84.    </div>
  85.    <div id='Img15'>
  86.       <img id='Img15Inner' src='./images/eaton.png' alt="" />
  87.    </div>
  88.    <div id='Text1'>
  89.       <p style="line-height:0;text-align:center"><font face="Arial"><span style="font-size:28pt;line-height:42px;"><b>Juarez CDPA DTDT </b></span></font></p><p style="line-height:0;text-align:center"><font face="Arial"><span style="font-size:28pt;line-height:42px;"><b>Reporte de Scrap</b></span></font></p>
  90.    </div>
  91.    <div id='Etiqueta1'>
  92.    <h1>Seleccione Area y Material:</h1>
  93.    </div>
  94.    <div id='Etiqueta2'>
  95.    <h1>Numero de parte:</h1>
  96.    </div>
  97.    <div id='Etiqueta3'>
  98.    <h1>Cantidad:</h1>
  99.    </div>
  100.    <div id='WebObj1'>
  101.    </head>
  102.  
  103.  
  104.  
  105. <script LANGUAGE="JavaScript">
  106.  
  107. <!-- This script and many more are available free online at -->
  108. <!-- The JavaScript Source!! http://javascript.internet.com -->
  109.  
  110. <!-- Begin
  111. var embobinadoArray =  new Array("('Seleccione un codigo','',true,true)",
  112. "('cable')",
  113. "('Nomex')",
  114. "('Tubo')",
  115. "('Otros')");
  116. var corecoilArray =  new Array("('Seleccione un codigo','',true,true)",
  117. "('Lamina')",
  118. "('Bobina')",
  119. "('Otros')");
  120. var finalArray =  new Array("('Seleccione un codigo','',true,true)",
  121. "('Terminal Boar')",
  122. "('Side panel')",
  123. "('Cover')",
  124. "('From Back')",
  125. "('Bracket Omega')",
  126. "('Bracket Sismico')",
  127. "('Otros')");
  128. function populateCountry(inForm,selected) {
  129. var selectedArray = eval(selected + "Array");
  130. while (selectedArray.length < inForm.country.options.length) {
  131. inForm.country.options[(inForm.country.options.length - 1)] = null;
  132. }
  133. for (var i=0; i < selectedArray.length; i++) {
  134. eval("inForm.country.options[i]=" + "new Option" + selectedArray[i]);
  135. }
  136. if (inForm.region.options[0].value == '') {
  137. inForm.region.options[0]= null;
  138. if ( navigator.appName == 'Netscape') {
  139. if (parseInt(navigator.appVersion) < 4) {
  140. window.history.go(0);
  141. }
  142. else {      
  143. if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
  144. window.history.go(0);
  145.            }
  146.         }
  147.      }
  148.   }
  149. }
  150. function populateUSstate(inForm,selected) {  
  151. var stateArray =  new Array("('Select State','',true,true)",
  152.  
  153. "('')");
  154. if (selected == 'USA') {
  155. for (var i=0; i < stateArray.length; i++) {
  156. eval("inForm.country.options[i]=" + "new Option" + stateArray[i]);
  157. }
  158. if ( navigator.appName == 'Netscape') {
  159. if (parseInt(navigator.appVersion) < 4) {
  160. window.history.go(0)
  161. }
  162. else {     
  163. if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
  164. window.history.go(0)
  165.         }
  166.      }
  167.   }
  168. }
  169. else {
  170. }  
  171. if (selected == 'Otros') {
  172. newCountry = "";
  173. while (newCountry == ""){
  174. newCountry=prompt ("Ingrese nuevo codigo.", "");
  175. }
  176. if (newCountry != null) {
  177. inForm.country.options[(inForm.country.options.length-1)]=new Option(newCountry,newCountry,true,true);
  178. inForm.country.options[inForm.country.options.length]=new Option('Other, not listed','Other');
  179.   }
  180. }
  181. if(inForm.country.options[0].text == 'Select country') {
  182. inForm.country.options[0]= null;
  183.   }
  184. }
  185. // End -->
  186. </head>
  187.  
  188. <!-- STEP TWO: Add the last coding to the BODY of your HTML document  -->
  189. </b>
  190.  
  191. </p>
  192.  
  193.  
  194. <form name="globe">
  195.   <p>
  196.   <select name="region" onChange="populateCountry(document.globe,document.globe.region.options[document.globe.region.selectedIndex].value)">
  197.   <option selected>Selecciona tipo de falla</option>
  198.  
  199.   <option value="embobinado">Embibinado</option>
  200.   <option value="corecoil">Core Coil</option>
  201.   <option value="final">Final</option>
  202.  
  203.   </select>
  204.   <select name="country" onChange="populateUSstate(document.globe,document.globe.country.options[document.globe.country.selectedIndex].text)">
  205.   <option value>&lt;--------------------</option>
  206.   </select> </p>
  207. </form>
  208.  
  209. <p></p>
  210. <center>
  211. <p>&nbsp;</p>
  212. </center>
  213. <p></p>
  214.    </div>
  215.    <div id='WebObj2'>
  216.    <input type="text" name="parte" size="20">
  217.    </div>
  218.    <div id='WebObj3'>
  219.    <input type="text" name="cantidad" size="20">
  220.    </div>
  221.    <div id='WebObj4'>
  222.    <select name="unida"><option selected> Elija unidad de medida</option><option value="lbs">Libras</option><option value="piezas">Piezas</option></select>
  223.    </div>
  224.    <div id='WebObj5'>
  225.    <input type=submit value=Enviar onclick="validar()">
  226.    </div>
  227.    <script type="text/javascript" src="./scrap.js?id=11683"></script>
  228. </div>
  229. </body>
  230. </html>
  231. [/HTML]