Prototype - Como verificar se a janela já está crianda?

1 resposta
C

Pessoal,
estou começando a estudar o Prototype, já estou fazendo algumas coisa, mas não achei como verificar se o objeto (janela) criado já existe para retornar como mostro abaixo:

function abrirJanela3(TITULO) {

if (  win3 já está criada  ) {

win3.show(true);	

return;

}	else  {

texto = ‘’

texto += ’ <%= guest.getNomeadverso() %>

win3 = new Window('dialog3', {className: "spread", title: TITULO,  width:500, height:600, showEffectOptions: {duration:0}  })
win3.getContent().innerHTML= texto
win3.showCenter();

}

}

1 Resposta

Daniel_Quirino_Olive

Transferido

Criado 29 de janeiro de 2007
Ultima resposta 29 de jan. de 2007
Respostas 1
Participantes 2