Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-697

TemplateValidator, Iframe and IE6

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.9.26
    • None
    • None
    • None

      do not work some times

      add a checkbox 'Open in new window' in the top part

          [CMS-697] TemplateValidator, Iframe and IE6

          Fixed in Template Validator 0.3.

          Sébastien Launay (Inactive) added a comment - Fixed in Template Validator 0.3.

          Modification de "menu.js"

          function isIE6()
          {
            var agt = navigator.userAgent.toLowerCase();
            return agt.indexOf("msie 6") > 0;
          }
          
          // Goto direct
          function _goTo(index)
          {
          	var intValue = _formatInt(index);
          	if (isIE6())
          	{
          	  parent.moveTo(0,0);
          	  parent.resizeTo((screen.width - 15), 200);
          	
          	  var params = "scrollbars=yes,resizable=yes,left=0,top=170,width=" + (screen.width - 15) + ",height=" + (screen.height - 240);
              var newwin = window.open("template-" + intValue + ".html", "templatewindow", params);
              newwin.focus();
          	}
          	else
          	{
          	  parent.template.window.location.href = "template-" + intValue + ".html";
          	}
          	parent.menu.window.location.href = "menu-" + intValue + ".html";
          	return false;
          }
          
          

          Raphaël Franchet added a comment - Modification de "menu.js" function isIE6() { var agt = navigator.userAgent.toLowerCase(); return agt.indexOf( "msie 6" ) > 0; } // Goto direct function _goTo(index) { var intValue = _formatInt(index); if (isIE6()) { parent.moveTo(0,0); parent.resizeTo((screen.width - 15), 200); var params = "scrollbars=yes,resizable=yes,left=0,top=170,width=" + (screen.width - 15) + ",height=" + (screen.height - 240); var newwin = window.open( "template-" + intValue + ".html" , "templatewindow" , params); newwin.focus(); } else { parent.template.window.location.href = "template-" + intValue + ".html" ; } parent.menu.window.location.href = "menu-" + intValue + ".html" ; return false ; }

          Modification de "index.html"

          <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
              <title>Ametys Template Validator 0.1 - Anyware Technologies
              </title>
            </head>
            <frameset rows="50, *">
            <frame name="menu" src="menu-001.html" scrolling="no"/>
            <frame name="template" src="load.html"/>
            </frameset>
            <noframes>
              <p>Frame must be supported for using this tool.
              </p>
              </noframes>
          </html>
          

          Raphaël Franchet added a comment - Modification de "index.html" <html xmlns= "http: //www.w3.org/1999/xhtml" > <head> <title>Ametys Template Validator 0.1 - Anyware Technologies </title> </head> <frameset rows= "50, *" > <frame name= "menu" src= "menu-001.html" scrolling= "no" /> <frame name= "template" src= "load.html" /> </frameset> <noframes> <p>Frame must be supported for using this tool. </p> </noframes> </html>

          Nouveau fichier "load.html"

          <html xmlns="http://www.w3.org/1999/xhtml">
            <head>
              <script type="text/javascript" src="_ametys-resources/menu.js"><!--// empty--></script>
            </head>
            <body>
              <p>Chargement...</p>
              <script type="text/javascript">
                _goTo(1);
              </script>
            </body>
          </html>
          

          Raphaël Franchet added a comment - Nouveau fichier "load.html" <html xmlns= "http: //www.w3.org/1999/xhtml" > <head> <script type= "text/javascript" src= "_ametys-resources/menu.js" ><!-- // empty--></script> </head> <body> <p>Chargement...</p> <script type= "text/javascript" > _goTo(1); </script> </body> </html>

          <frame name="menu" src="menu-001.html" scrolling="no"/>
          

          Raphaël Franchet added a comment - <frame name= "menu" src= "menu-001.html" scrolling= "no" />

            Unassigned Unassigned
            raphael Raphaël Franchet
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: