Re: HTML_AJAX question
| From: | Nicolás Eugenio Ozimiça | Date: | Sat, 29 Apr 2006 14:18:50 +0000 |
| Subject: | Re: HTML_AJAX question | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23888@lists.php.net to get a copy of this message | ||
Hi all!
I don't know well if it's happening only to me, but setting JS code with the
setInnerHTML function of HTML_AJAX_Util, doesn't work with IE. Works fine
with firefox, but when I got the idea to test my sistem in IE, it didn't
work...
I looked at the lists of HTML_AJAX, and just found the thread when you were
discussing the inclusion of this function in the package...
Some good idea about this issue?? :D
Thanks!
On 4/21/06, Joshua Eichorn <josh@bluga.net> wrote:
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 -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php