tu dici chè non si può??? ma per esempio agli input del padre di solito ci arrivo comodamente..Originariamente inviato da delfina blu
nel padre c'è l'oggetto e nel figlio tu vuoi richiamare l'oggetto?
posta il codice con cui apri la finestra
alora... la finestra la apro con questa riga
dove la funzione newWin ècodice:var retValue = newWin('d', 'StampaBarcode.asp?tipo=rich&richiesta_id=' + richiesta_id.value, oXMLEtichette, '400', '400', 'center', 'center');
codice:function newWin(tipo, wUrl, argomenti, wWidth, wHeight, wTop, wLeft) { //tipo = d || n: dialog o normale //wUrl = url su cui aprire la finestra (con querystring) //wWidth, wHeight = se 'max' crea una finestra di dimensioni massime rispetto alla risoluzione, altrimenti setta le dimensioni //wTop, wLeft = se 'center' centra la finestra rispetto alla risoluzione, altrimenti setta il top e left // argomenti = se tipo = 'd' sono gli argomenti della finestra, se tipo = 'n' è il titolo if (wWidth == 'max') wWidth = screen.width - 10 if (wHeight == 'max') wHeight = screen.height - 60 if (wTop == 'center') wTop = ((screen.height - 60)/ 2) - (wHeight / 2) if (wLeft == 'center') wLeft = ((screen.width - 10)/ 2) - (wWidth / 2) if (tipo == 'd') retValue = window.showModalDialog(wUrl, argomenti, 'dialogHeight:' + wHeight + 'px; dialogTop:' + wTop + 'px; dialogLeft: ' + wLeft + 'px; dialogWidth:' + wWidth + 'px; status:false;resizable:yes;help:no'); else { window.open(wUrl, argomenti, 'top=' + wTop + 'px, left=' + wLeft + 'px, width=' + wWidth + 'px, height=' + wHeight + 'px, scrollbars=1'); retValue = 1 } return retValue }


Rispondi quotando