Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.8

Request #6672 Automtically process javascript nodes when loaded through innerHTML
Submitted: 2006-02-02 15:28 UTC
From: miguel dot manso at nfsi dot pt Assigned: arpad
Status: Closed Package: HTML_AJAX (version 0.3.4)
PHP Version: 5.1.2 OS: debian sarge 2.6.8-2-686-smp
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 41 - 3 = ?

 
 [2006-02-02 15:28 UTC] miguel dot manso at nfsi dot pt
Description: ------------ I'm trying to get my webpage to process some javascript that is loaded through HTML_AJAX. But it seems script nodes aren't automatically processed when adding them using innerHTML. Is there any chance this could be implemented in a future release? Thanx

Comments

 [2006-02-04 21:33 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-02-05 00:36 UTC] jeichorn at php dot net
the issue is that if you have a document with a script block the script gets added to the document but it doesn't get run. The first step is to create a util method that looks for all the script tags inside a given parent element and then evals all the ones that have a type of text/javascript. Then its just a matter of adding a flag that turns on doing this automatically. This would be for HTML_AJAX_Replace etc, and possible for the HTML_AJAX_Action stuff.
 [2006-02-05 00:58 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2006-02-05 20:29 UTC] jeichorn at php dot net
HTML_AJAX action already provides a way to do it at the time of writing and its easy to tell what hasn't been run. Any newly added script blocks haven't been run. And the whole point is too make what is happening transparent.
 [2006-02-07 03:08 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!