  | 
    
 
  
    
    
      
        
          
         Author | 
        
         Topic: HTML Export is not proper  (Read 1879 times) | 
       
     
     | 
   
 
  
    
    
      
        
        
          
            
            whiteflea 
 
     
      
             | 
            
            
            
              
                
                HTML Export is not proper 
                «  on: Jan 7th, 2004, 5:57pm » | 
                
                
 
                 | 
               
             
             
            
            Is there a way to alter the html export template or is it "hardcoded"?         bc exported html file is not propper.   You can check it here:   http://validator.w3.org/   http://jigsaw.w3.org/css-validator/      a proper suggestion is:    Quote:      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">      <html>   <head>    <title>yourfile : Built with Processing</title>    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">    <style type="text/css" title="For screens" media="screen">     body {      background-color: #666;      color: #fff;      font-family: Verdana, Arial, Helvetica, sans-serif;      font-size: 12px;      text-align: center;     }         a:link {      color: #cc0;      text-decoration: none;     }         a:hover {      color: #ee0;      text-decoration: underline;     }         a:active {      color: #990;     }         a:visited {      color: #cc9;     }         #content {     text-align: left;     width: 400px;     margin: auto;     }    </style>        <style type="text/css" title="For printers" media="print">     body {      background-color: #fff;      color: #000;      font-family: "Times New Roman", Times, serif;      font-size: 14px;      text-align: center;     }   </style>   </head>      <body>   <div id="content">    <object archive="test.jar" codetype="application/java" classid="java:test.class" width="200" height="200">     <!-- <applet code="test" archive="test.jar" width=200 height=200></applet> -->     Please enable Java in your Browser.    </object>    <br>    <br>    <a href="yourfile.pde">Source code</a>    <br>    <br>    Built with <a href="http://Proce55ing.net">Processing</a>      </div>   </body>   </html>        |  
  |         further reading   ===============      dtd:   http://www.w3.org/TR/html4/sgml/dtd.html      applet tag: http://www.w3.org/TR/html4/struct/objects.html#h-13.4       font tag:   http://www.w3.org/TR/html4/present/graphics.html#h-15.2.2           CSS:   http://www.w3.org/TR/html4/present/styles.html   http://www.w3.org/Style/CSS/      cu   thomas 
            
             | 
           
            
            
            
              
                | « Last Edit: Jan 7th, 2004, 6:10pm by whiteflea » | 
                  | 
               
             
            
 
  ================================== Software is mindcontrol - get some ================================== Shut up or I will replace you with a  very  small  processing  script
 
  
             | 
           
         
         | 
       
     
     | 
   
 
  
    
    
      
        
        
          
            
            whiteflea 
 
     
      
             | 
            
            
            
              
                
                Re: HTML Export is not proper 
                « Reply #1 on: Jan 7th, 2004, 6:04pm » | 
                
                
 
                 | 
               
             
             
            
            the problem is, that IE does not implement object tag properly.... sigh.      what you can do:    Quote:    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">       <html>   <head>    <title>yourfile : Built with Processing</title>    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">    <style type="text/css" title="For screens" media="screen">     body {      background-color: #666;      color: #fff;      font-family: Verdana, Arial, Helvetica, sans-serif;      font-size: 12px;      text-align: center;     }         a:link {      color: #cc0;      text-decoration: none;     }         a:hover {      color: #ee0;      text-decoration: underline;     }         a:active {      color: #990;     }         a:visited {      color: #cc9;     }         #content {     text-align: left;     width: 400px;     margin: auto;     }    </style>        <style type="text/css" title="For printers" media="print">     body {      background-color: #fff;      color: #000;      font-family: "Times New Roman", Times, serif;      font-size: 14px;      text-align: center;     }   </style>   </head>       <body>   <div id="content">    <!-- Need Java 1.4.0 (or later) Plug-in to run this applet -->    <!-- MS IE (Microsoft Internet Explorer) -->     <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" height="200" width="200" >       <param name="archive" value="yourfile.jar" />     <param name="code" value="yourfile" />           <!--[if !IE]> Mozilla/Netscape and its consorts -->      <object classid="java:yourfile.class"  height="200" width="200" archive="yourfile.jar">     Please enable Java in your Browser.      </object>       <!-- <![endif]-->   </object>    <br>    <br>    <a href="yourfile.pde">Source code</a>    <br>    <br>    Built with <a href="http://Proce55ing.net">Processing</a>       </div>   </body>   </html>         |  
  |            cheers   thomas 
            
             | 
           
            
            
            
              
                | « Last Edit: Jan 7th, 2004, 6:07pm by whiteflea » | 
                  | 
               
             
            
 
  ================================== Software is mindcontrol - get some ================================== Shut up or I will replace you with a  very  small  processing  script
 
  
             | 
           
         
         | 
       
     
     | 
   
 
  
    
    
      
        
        
          
            
            toxi 
 
        
      
             | 
            
            
            
              
                
                Re: HTML Export is not proper 
                « Reply #2 on: Jan 7th, 2004, 6:24pm » | 
                
                
 
                 | 
               
             
             
            
            thomas, something like this is already prepared (validates as xhtml 1.0), but didn't make it in the most recent release. the new export format will be like in this file here: http://www.toxi.co.uk/p5/eclipse/hello/ 
            
             | 
           
            
            
            
             http://toxi.co.uk/
             | 
           
         
         | 
       
     
     | 
   
 
  
    
    
      
        
        
          
            
            whiteflea 
 
     
      
             | 
            
            
            
              
                
                Re: HTML Export is not proper 
                « Reply #3 on: Jan 9th, 2004, 4:41pm » | 
                
                
 
                 | 
               
             
             
            
            you should close your <br> tags like this: <br />   why do you insert the applet with JS?      cu   whiteflea 
            
             | 
           
            
            
            
            
 
  ================================== Software is mindcontrol - get some ================================== Shut up or I will replace you with a  very  small  processing  script
 
  
             | 
           
         
         | 
       
     
     | 
   
 
  
    
    
      
        
        
          
            
            fry 
 
 
        
      
             | 
            
            
            
              
                
                Re: HTML Export is not proper 
                « Reply #4 on: Jan 10th, 2004, 12:21am » | 
                
                
 
                 | 
               
             
             
            
            as toxi mentions, the new html will be in the next release of processing. 
            
             | 
           
            | 
            
            
            
             | 
           
         
         | 
       
     
     | 
   
 
 
 |