Hola amigos tengo el siguiente problema ,.. es con el window.open ();
Tengo esta funcion;
Código javascript
:
Ver originalfunction OT_generatorReportPresupuest () {
if ($('tbody_prodsAdded').childNodes.length > 5 ) {
var newWindow = window.open("presupuestos/presupuesto.html" ,"Presupuesto","toolbar=yes,menubar=yes,location=no,directories=no,scrollbars=yes,resizable=yes");
newWindow.document.write ($('table_productsAded').innerHTML);
newWindow.document.write ("<script language='javascript'>if (document.getElementById('tbody_prodsAdded')) {if (document.getElementById('TrAddedProdButtons')) { document.getElementById('tbody_prodsAdded').removeChild(document.getElementById('TrAddedProdButtons'));}}");
newWindow.document.write ("if (document.getElementById('TD_labelsActions') ) {document.getElementById('TR_Labels').removeChild(document.getElementById('TD_labelsActions'));}");
newWindow.document.write ("document.getElementById('TD_LabeldsCode').style.borderLeft = '1px solid #999999';");
newWindow.document.write ("var total_reg = document.getElementById('tbody_prodsAdded').childNodes.length; for (i=0;i<total_reg;i++) { if (document.getElementById('TdAddedProdActions'+i) ){document.getElementById('TrAddedProdCode'+i).removeChild (document.getElementById('TdAddedProdActions'+i));} {if (document.getElementById('P_cant'+i)) {document.getElementById('P_cant'+i).style.cursor= ''; }}} ");
newWindow.document.write ("document.getElementById('TdAddedProdPriceLabelNeto').colSpan = 4;document.getElementById('TdAddedProdPriceLabelIva').colSpan = 4;document.getElementById('TdAddedProdPriceLabelTotalTotal').colSpan = 4;");
newWindow.document.write ("document.getElementById('TD_LabeldsCode').width = '7%';");
newWindow.document.write ("document.getElementById('TD_LabeldsPriceTotal').width = '8%';");
newWindow.document.write ("document.getElementById('TD_LabeldsDescrip').width = '25%';");
newWindow.document.write ("</script>");
}
}
El problema viene cuando abre la nueva ventana perfecto y me muestra la
informacion deseada . . Pero en FF se queda la pagina como si estubiera
cargando aun cuando el contenido ya esta alli =S ..
Como podria arreglar esto ?