5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 678 Views |
-
JavaScript loaded with AJAX not executed

29 July 2010 at 12:19am
This JavaScript is executed if page it is on in the admin area is the one to be loaded however it does not execute if another page in the admin is loaded first and then that page is loaded.
$fields->addFieldToTab("Root.Zooph", new LiteralField('CustomCode'.$i++,'
<script type="text/javascript">
/* <![CDATA[ */
alert('Hello World');
/* ]]> */
</script>
'));I think the problem may be that JavaScript loaded with AJAX is not being executed.
Any ideas?
| 678 Views | ||
|
Page:
1
|
Go to Top |

