ciao a tutti!
ho un problema nell' aprire una pop up, e solo con internet explorer 6 e 7 (firefox e safari vanno benone).
il debugger semplicemente ritorna "argomento non valido".
apro la pop up da un filmato swf, ed uso mootools.
a quanto pare sembra essere quest'ultimo a fare a pugni con il mio window.open.
nell'as dell'swf ho questo
mentre invece l'unico script js che tiro dentro è l'embed dell'swf sul domready:codice:MovieClip.prototype.openCenterPopUp = function (nome, titolo, lar, alt, feat){ var w = System.capabilities.screenResolutionX/2; var h = System.capabilities.screenResolutionY/2; var x = Math.round(w - (lar / 2)); var y = Math.round(h - (alt / 2)); getURL("javascript:window.open('"+ nome + "','" + titolo + "','width=" + lar + ",height=" + alt + ",screenX=" + x + ",left=" + x + ",screenY=" + y + ",top=" + y + "," + feat + "');void(0);"); }; legalStatement.onRelease = function() { openCenterPopUp("legalStatementPopUp.html", "..:: ASD | Legal Statement ::..", 550, 520, "status=no, toolbar=no, scrollbars=yes"); trace("apertura popup"); }
sapreste dirmi dove sbaglio, e da cosa potrebbe esser causato il problema?codice:window.addEvent('domready', function(){ var swfo = new SWFObject("swf/container.swf", "main", "100%", "100%", "9", "", false); swfo.addParam("base", "swf"); swfo.addParam("allowFullScreen","true"); swfo.write("container"); });
sostanzialmente il window.open non sembra partire in presenza del framework mootools...
grazie mille in anticipo!![]()


Rispondi quotando