Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by aspi on Jul 23, 2008 10:57
open dhtmlx forum
DhtmlXWindow

IE6 working fine firefox don't

the full code:

 

<div id="menu_zone" style="background-color:#f5f5f5;border :1px solid Silver;"/></div>

missing scripts containing te another main.php file

<script>
  

   
  function onButtonClick(itemId)
  {
   /*program funkciók*/
   if(itemId=='change_password')
   {
   //var w1 = new dhtmlXWindows();
         var dhxWins = new dhtmlXWindows();

    dhxWins.enableAutoViewport(false);
    dhxWins.vp.style.border = "#909090 1px solid";
    dhxWins.setViewport(0, 0, 1024, 1024);
    dhxWins.setImagePath("js/window/imgs/");
   var w1 = dhxWins.createWindow("w1", 0, 0, 400, 300);
   w1.setText('change p');
   
   // extended features
   
   w1.clearIcon();  // hide icon
   w1.denyResize(); // deny resizing
   w1.button("park").hide();
   //win.button("resize").hide();
   w1.button("close").enable(); // disable "close" button
   w1.center();
   w1.attachURL("<?php echo april_url;?>changep.php");
   w1.setModal(true);
         }
  
   else if(itemId=='pdf_print)
   {
   var dhxWins = new dhtmlXWindows();

    dhxWins.enableAutoViewport(false);
    dhxWins.vp.style.border = "#909090 1px solid";
    dhxWins.setViewport(0, 0, 1024, 1024);
    dhxWins.setImagePath("js/window/imgs/");
   var w2 = dhxWins.createWindow("w2", 0, 0, 800, 600);
   w2.setText('pdf_print);
   
   // extended features
   
   w2.clearIcon();  // hide icon
   w2.denyResize(); // deny resizing
   w2.button("park").hide();
   //win.button("resize").hide();
   w2.button("close").enable(); // disable "close" button
   w2.center();
   w2.attachURL("<?php echo april_url;?>fpdf.php?document="+itemId);
   w2.setModal(true);
         }
  
  
  
  
   else if(itemId)
   {
    newwin=window.open('<?php echo ap_url;?>main.php?link='+itemId,'_self');
   }
  };
    
  aMenuBar=new dhtmlXMenuBarObject(document.getElementById('menu_zone'),'100%',25,"<?php echo $_SESSION['Name'].' '.$_SESSION['Rolegrp'];?>");
  aMenuBar.setOnClickHandler(onButtonClick);
  aMenuBar.setGfxPath("js/menu/imgs/");
  aMenuBar.loadXML("menu.php");
  aMenuBar.showBar();

 aMenuBar.disableSmartPositioning(true);
  
 </script>

 

in ff3 behaviour is strange the pdf dokument page not show, and i close the modal window, window is close but parent window still modal (not clickable)

 

thanks

Answer posted by Support on Jul 25, 2008 02:19
Hello.

Here is a demo., all works correctly in both IE and FF
Attachments (1)
demo.zip64.87 Kb