Re: HTML_AJAX question

From: Date: Fri, 21 Apr 2006 16:30:41 +0000
Subject: Re: HTML_AJAX question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23801@lists.php.net to get a copy of this message
Slavka wrote:
I have a situation where i need to pass some javascript to a div element where it needs to be executed, what happens is the javascritpt actually gets passed b/c i can see it in the view source content, but it is not executed... and there are no errors or warning. Is there a certain way that i should be passing javascript through? Thanks.... Richard JavaScript can't be added to a page using innerHTML. Use HTML_AJAX_Util.setInnerHTML(element,content). It will make sure the JavaScript gets run. Feel free to use the HTML_AJAX mailing list (http://lists.bluga.net/mailman/listinfo/html_ajax-devel) for JavaScript questions.
-josh

« previous php.pear.general (#23801) next »