Common asyncronic request:
var hSuccess = function(o){
if((o.responseText !== undefined) &&
(o.argument.c)){
o.argument.c = o.responseText;
}
}
var callback = {success:aHandleSuccess,
failure:aHandleFailure,
argument: {c:content}};
var request = YAHOO.util.Connect.asyncRequest('GET', url,
callback);
---------------------------------
The question is: Exist a way to execute the scripts within
the
"responseText" after the content will be
displayed inside a DIV?
The problem is that the requested content have a few Scripts
tags,
that must be executed as a common script execution...
instead to use
parsing method for responseText content and eval the script
tags
(generate problems with the var scopes and external
scripts)...
responseText:
-------------------
example text and common scripting definition...
type="text/javascript"
src="external-script.js">
alert ('testing');
</script>
-------------------
Regards
Caridy
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.
yahoo.com/group/ydn-php/
<*> To unsubscribe from this group, send an email to:
ydn-php-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|