Answer the question
In order to leave comments, you need to log in
Ajax script execution in loadable content?
I use this function
function extractScripts(str) {<br/>
var reg = /<script.*?>((?:\n|\r|.)*?)<\/script>/gi;<br/>
var results = str.match(reg);<br/>
if(results){<br/>
for (var i = 0; i < results.length; i++){<br/>
eval(results[i].replace(reg,\'$1\'));<br/>
}}}<br/>
function test(test){<br/>
alert(document.forms.data.elements.length);<br/>
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question