function agent(param) {
var req = new Request({
url: '[~id~]',
evalResponse: true
}).send('data='+param);
};
function agent2(param) {
var req2 = new Request({
url: '[~id~]',
evalResponse: true
}).send('data='+param);
};
After the function agent() is called the response from the server is:
$('respon').set('html','<strong onClick="agent2()">agent2</strong>')
agent2() is then called and the evalResponse does not function. However, if to output the response into a div or into an alert box then everything is fine. Is there anyway to make evalResponse or eval() work on the secondary response from the server?