Re: Warning popup with IE 8

  •  06-18-2009, 8:23 PM

    Re: Warning popup with IE 8

    Adam
     
    Your example works perfeectly as does the index.php you include with your sample.  The difference is that I am using the smarty engine to templating to handle screen IO and in that environment we have grief.    I have created a small sample which in my environment reproduces the problem which I am attaching here.   Any assistance yoyu can offer will be appreciated.
     
    The base php file
    TestEditor.php 
     
     <?php

        require_once ("../includes/libs_inc.php");
        require_once("../includes/CuteEditor_Files/include_CuteEditor.php");
        
            $article=new CuteEditor();
            $article->ID="article";
            $article->Text="";
            $article->EditorBodyStyle="font:normal 12px arial;";
            $article->EditorWysiwygModeCss="php.css";
            $article->FilesPath="../includes/CuteEditor_Files";
            $article->Width = "625";
            $article->Height = "400";
            $article->AutoConfigure = "myDefault";
            
            $smarty->assign('article', $article->GetString() );
            $smarty->display('testEditor.tpl');
            
    ?>
     
     
    The smarty template file 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>

    <body>
        {$article}
    </body>
    </html>
     
     
     
    The smarty include file
    libs_inc.php
    <?php
      # Filename: libs.inc.php

      # the exact path is defined.
      $fixpath = dirname(__FILE__);

      # changes this value according to your uploaded smarty distribution.
      # don't forget to add trailing back slash
      # change 'username' to your username on web hosting account
     
      define ("SMARTY_DIR", "../includes/lib/smarty/");
      $myPath = getcwd();

      require_once (SMARTY_DIR."Smarty.class.php");
     
      $smarty = new Smarty;
     
      $smarty->template_dir = "$myPath/templates";
      $smarty->compile_dir = "$myPath/templates_c";
      $smarty->cache_dir = "$myPath/cache";
      $smarty->config_dir = "$myPath/configs";

    ?>
     
    I attempted to not use the GetString() function but rather use the Draw() in the template file but got the same result  
View Complete Thread