Changeset 385


Ignore:
Timestamp:
10/06/05 06:04:55 (14 years ago)
Author:
gocher
Message:

ext_example some changes for IE to test Ticket #549

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/ext_example-body.html

    r359 r385  
    6464        f.num.value = 1; 
    6565      } 
    66       var b = document.forms[0]; 
     66      var dest = document.getElementById("editors_here"); 
    6767      var lipsum = window.parent.menu.document.getElementById('myTextarea0').value; 
    6868 
     
    8383 
    8484        div.appendChild(txta); 
    85         b.appendChild(div); 
     85        dest.appendChild(div); 
    8686      } 
    8787 
     
    171171// Finally we "start" the editors, this turns the textareas into Xinha editors. 
    172172      HTMLArea.startEditors(xinha_editors); 
    173      
    174       //check submitted values 
    175       var submit = document.createElement('button'); 
    176       submit.setAttribute('type', 'submit'); //submit.type = "submit"; 
    177       submit.innerHTML = "Submit"; 
    178       b.appendChild(submit); 
    179173    } 
    180174 
     
    184178 
    185179<body> 
    186   <form id="editors_here" method="post" action="ext_example-dest.php"> 
    187   <!-- <textarea id="errors" style="width:100%; height:100px; background:silver;display:none;"></textarea> --> 
     180  <form id="to_submit" method="post" action="ext_example-dest.php"> 
     181  <div id="editors_here"></div> 
     182  <button type="submit">Submit</button> 
     183  <textarea id="errors" style="width:100%; height:100px; background:silver;"></textarea><!-- style="display:none;"> --> 
    188184  </form> 
    189   <textarea id="errors" style="width:100%; height:100px; background:silver;"></textarea> 
    190185<script type="text/javascript"> 
    191186    var _oldSubmitHandler = null; 
Note: See TracChangeset for help on using the changeset viewer.