Pop-up

4 respostas
matheus306

Galera boa tarde,

estou com um problema quando abro uma janela de pop-up no firefox 3. Ela não esta ficando mais com o tamanho definido. Agleum sabe porque?

abraço a todos

4 Respostas

bruno_savi

se for codigo seu cola o codigo.

matheus306
function xxxxxx(botao) {
		var width  = 800;
	    var height = 475;	
	    var left   = 99;
	    var top    = 99;
	    
		var re = /xxx\[(\d+)\]\.xx\[(\d+)\]\.peso/;	
		var el = botao.parentNode.parentNode;
		var xx;
		var xx;
		var xx= -1;
		var xx= -1;
				
		for (i = 0; i < el.childNodes.length; i++){			
			node = el.childNodes[i];
			xx= re.exec(node.innerHTML);
			if (xx) {
				xx= xx[1];
				xx= xx[2];
				break;
			}			
		}	    
	
	    window.open('${applicationName}/x/xx/xxx?ACAO=xxx&xx='+xx+'&xx='+xx,'xx', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
	}
bruno_savi

olha se no console do firefox nao aparece algum erro qdo vc chama a popup

ferramentas console de erro.

matheus306

Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebNavigation.sessionHistory]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://global/content/bindings/browser.xml :: :: line 644" data: no] Source File: chrome://global/content/bindings/browser.xml Line: 650

Criado 14 de julho de 2008
Ultima resposta 14 de jul. de 2008
Respostas 4
Participantes 2