Ignore:
Timestamp:
08/07/06 13:23:07 (13 years ago)
Author:
mokhet
Message:

freeLater() is now able to use an array of properties
free more precisely the properties, instead of freeing the whole object
fix form.submit() from ticket #823
update the original content on dispose
fix window resizing from an inline fucntion i had forgot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/mokhet/examples/on_demand.php

    r545 r548  
    11<?php 
    2 $content1 = array_key_exists('ta1', $_POST) ? $_POST['ta1'] : '<p>Content ONE here</p>'; 
    3 $content2 = array_key_exists('ta2', $_POST) ? $_POST['ta2'] : '<p>Content TWO here</p>'; 
     2$content1 = array_key_exists('ta1', $_POST) ? stripslashes($_POST['ta1']) : '<p>Content ONE here</p>'; 
     3$content2 = array_key_exists('ta2', $_POST) ? stripslashes($_POST['ta2']) : '<p>Content TWO here</p>'; 
    44// Entitize contents 
    55// Please referer to http://xinha.python-hosting.com/wiki/Entize 
     
    143143padding:2px; 
    144144} 
    145 #resultcontent 
     145#resultcontent, .fromPOST 
    146146{ 
    147147border:1px solid black; 
     
    212212 
    213213</form> 
    214 <div id="resultcontent"></div> 
     214<div id="resultcontent"> 
     215<?php 
     216if ( array_key_exists('ta1', $_POST) ) 
     217{ 
     218  echo '<div class="fromPOST">'.stripslashes($_POST['ta1']).'</div>'; 
     219} 
     220if ( array_key_exists('ta2', $_POST) ) 
     221{ 
     222  echo '<div class="fromPOST">'.stripslashes($_POST['ta2']).'</div>'; 
     223} 
     224?> 
     225</div> 
    215226</body> 
    216227</html> 
Note: See TracChangeset for help on using the changeset viewer.