Bugs item #571708, was opened at 2002-06-20 18:50 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105757&aid=571708&group_id=5757
Category: DynAPI 2 Browser-Specific Group: Unverified Status: Open Resolution: None Priority: 5 Submitted By: luca bracci (giansy) Assigned to: Nobody/Anonymous (nobody) Summary: IExplorer compatibility ? Initial Comment: [ FIRST FILE ] .................. [ button calling javascript function ] <input type=button value=" <? echo _("Enter"); ? > " onclick="openJabberChat2()" class=list1> ...................... [function that should open a new window session .. ] function openJabberChat() { var i,ro,tempo; tempo = Math.random()*1000; i=document.form_select.room.selectedIndex; ro=document.form_select.room.options [i].value; window.open('chat2/chat.php? t='+tempo+'&tempo='+tempo+'&l=<?echo $ouser;? >&n=<?echo $ouser;?>&room=' + ro + '&r='+ ro ro,'toolbar=no,location=no,resizable=no,width=560,height =440'); /* if (navigator.appName == 'Microsoft Internet Explorer') { parent.close(); } */ } [ I tried everything as: window.open or open or parent.open ..etc.. ] ...................... [ SECOND FILE ] [ file containing frames and calling the 'chat_new.php' file with DYNAPI lib and new layer ..] <frameset cols="*,0" framespacing="0" border="0" frameborder="0"> <frameset rows="*,<?print $height;?>" framespacing="0" border="0" frameborder="0" > <frame name="chat" noresize src="chatJabber_new.php?t=<? echo $tempo; ?>&l=<? echo $l; ?>&loginName=<?echo $l;?>&n=<?echo $l; ? >&room=<? echo $r; ?>" > <frame name="form" src="<?print $form;?>" scrolling="No"> </frameset> ....................... [ THIRD FILE ] [ 'chat_new.php' file containing DYNAPI libraries and the onLoad function .. ] DynAPI.include('dynapi.gui.scrollbar.js'); DynAPI.include('dynapi.gui.viewport.js'); DynAPI.include('dynapi.gui.scrollpane.js'); DynAPI.include('dynapi.gui.dynimage.js'); DynAPI.include('dynapi.gui.label.js'); function findWH() { winW = (is.ns)? window.innerWidth : document.body.offsetWidth winH = (is.ns)? window.innerHeight : document.body.offsetHeight } //window size var winH,winW function deleteAllApiForm () { if (DynAPI.document.children.length>0) { deep = DynAPI.document.children.length; while(deep--) { DynAPI.document.children [deep].deleteFromParent() } } } I hope is possible to resolve this problem with new dynapi layer so here I hope to explain my problem : I can't open from 'first_page.php ' 2 different ' window.open' without start a new browser " IExplorer "and so it will not permit me to 'chat' in 2 different rooms (it seems the 2 new different child layers are depending from the same 'parent' so all transactions are waiting to close one of them ) but I can do it with Netscape 4.76 or high or Mozilla : here my code (I cut something to show the code with the main problem ... may be :) ): [ FIRST FILE 'first_page.php' ] .................. [ button calling javascript function ] <input type=button value="Enter" onclick="openJabberChat()" class=list1> ...................... [function in the same file that should open a new window session .. ] function openJabberChat() { var i,ro; i=document.form_select.room.selectedIndex; ro=document.form_select.room.options [i].value; window.open('chat2/chat.php?l=<?echo $ouser;?>&n=<?echo $ouser;?>&room=' + ro + '&r='+ ro ro,'toolbar=no,location=no,resizable=no,width=560,height =440'); /* if (navigator.appName == 'Microsoft Internet Explorer') { parent.close(); } */ } [ I tried everything as: window.open or open or parent.open , self .. etc.. ] ...................... [ SECOND FILE 'chat.php' ] ........................ [ file containing frames and calling the 'chat_new.php' file with DYNAPI lib and new layer ..] ....................... <frameset cols="*,0" framespacing="0" border="0" frameborder="0"> <frameset rows="*,<?print $height;?>" framespacing="0" border="0" frameborder="0" > <frame name="chat" noresize src="chat_new.php? t=<? echo $tempo; ?>&l=<?echo $l; ?>&loginName=<? echo $l;?>&n=<?echo $l; ?>&room=<? echo $r; ?>" > <frame name="form" src="<?print $form;?>" scrolling="No"> </frameset> <frameset rows="*,*" framespacing="0" border="0" frameborder="0"> <frame name="loader" src="login.php" scrolling="no"> <frame name="sendsms" src="sendmsg.php" scrolling="no"> </frameset> </frameset> ....................... [ THIRD FILE 'chat_new.php' ] .................... [ 'chat_new.php' file containing DYNAPI libraries and the onLoad function .. ] ................... <script language="Javascript" src="../src/dynapi.js"></script> <script language="Javascript" > DynAPI.include('dynapi.gui.scrollbar.js'); DynAPI.include('dynapi.gui.viewport.js'); DynAPI.include('dynapi.gui.scrollpane.js'); DynAPI.include('dynapi.gui.dynimage.js'); DynAPI.include('dynapi.gui.label.js'); function findWH() { winW = (is.ns)? window.innerWidth : document.body.offsetWidth winH = (is.ns)? window.innerHeight : document.body.offsetHeight } //window size var winH,winW function deleteAllApiForm () { if (DynAPI.document.children.length>0) { deep = DynAPI.document.children.length; while(deep--) { DynAPI.document.children [deep].deleteFromParent() } } } DynAPI.onLoad=function() { deleteAllApiForm () findWH(); // login size loginxSize = 300; loginySize = 200; loginx = (winW-loginxSize)/2 loginy = (winH-loginySize)/2 loginLayer= new DynLayer (null,loginx,loginy,loginxSize,loginySize,'') fontForm = '<tr><td></td><td><input type=hidden name="loginName" value="<? echo $l; ?>"></td></tr>'+ '<tr><td></td><td><input type=hidden name="nick" value="<? echo $l; ?>"></td></tr>'+ '<tr><td></td><td><input type=hidden name="room" value="<? echo $room; ?>"></td></tr>'; //'<tr><td></td><td><img src="../i/chat_img/hr.gif" ></td></tr>'; formString = '<form name="login">'+fontForm+'</form>'; htmlString = '<html><body><table align=center border=0>' + formString + '</table></body></html>'; loginLayer.setHTML(htmlString) loginLayer.setBgColor('#818A98'); DynAPI.document.addChild(loginLayer) startChat() ........................... Many Thanks Luca Bracci ---------------------------------------------------------------------- Comment By: Joachim Lundgren (lunna) Date: 2002-06-20 19:58 Message: Logged In: YES user_id=86189 The syntax for window.open is oNewWindow=window.open([sURL] [, sName] [, sFeatures] [, bReplace]) Because you don't give the sName parameter you should specify it as null. Try doing that and see if the problem goes away. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=105757&aid=571708&group_id=5757 ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/