/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to js/xml.js

  • Committer: Suren A. Chilingaryan
  • Date: 2009-01-29 15:17:27 UTC
  • Revision ID: csa@dside.dyndns.org-20090129151727-gu0rl008fv8lti84
Initial SEARCH implementation

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
}
187
187
 
188
188
 
189
 
function htmlReplace(htmldoc, place) {
 
189
function htmlReplace(htmldoc, place, jsexec) {
 
190
    if (typeof jsexec == "undefined") jsexec = false;
 
191
 
190
192
    if (typeof place == "string") {
191
193
        place = document.getElementById(place);
192
194
        if (!place) {
203
205
//    alert(htmldoc);
204
206
    
205
207
    place.innerHTML = htmldoc;
 
208
 
 
209
    if (jsexec) {    
 
210
        var x = place.getElementsByTagName("script");
 
211
        for(var i=0;i<x.length;i++) {
 
212
            eval(x[i].text);
 
213
        }
 
214
    }
206
215
}
207
216
 
208
217
function xsltApply(xsltproc, xmldoc, place) {