flow_conrtolller.js
Código HTML:
tabla = document.getElementById("tabla_xl"); if(eval(customer_registration.shipping_amount.value)==0){ fila = tabla.getElementsByTagName("TR")[4];celda = fila.getElementsByTagName("TD")[3];celda.innerHTML="$"+customer_registration.shipping_amount.value; fila = tabla.getElementsByTagName("TR")[4];celda = fila.getElementsByTagName("TD")[2];celda.innerHTML="none"; } else{ fila = tabla.getElementsByTagName("TR")[4]; celda =fila.getElementsByTagName("TD")[2]; celda.innerHTML=country_d(); }
country tiene estas caracteristicas: "country.js"
Código HTML:
var country_v=['(Select your country)','Afghanistan','Albania','Algeria'....]; function country_d(){ var country_z=country_v.length; document.write("<select name='country' id='country' class='blackText' onChange='selected_c(this)'>"); for(i=0;i<country_z;i++){ document.write("<option value="+country_v[i]+">"+country_v[i]+"</option>");} document.write("</select>"); } function selected_c(a){ var counter=-1; var name=a.value; var a_size=a.length; do{counter++;}while(!(a.options[counter].selected)) if(counter==221){customer_registration.amount.value=9.95;} else{customer_registration.amount.value=45.5;} }
Como puedo colocar este elemento sin que aparezca una página nueva?????
saludos