View Full Version : DHTML Windows Widget & embedded javascript

06-08-2007, 09:31 PM
1) Script Title: DHTML Window Widget

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Describe problem: javascript in ajax popup window does not fire.

Sample app calls an ajax popup window and populates it from some.html.
For the sake of simplicity, the pertinent part of some.html contents are show below

<body onLoad="alert('X');">
<script Language="Javascript">
<p>End of Test</P>

The code works fine when called into a normal browser window, but when called into an Ajax popup window - none of the alerts are shown; yet if I embed

<input type="text" onFocus="alert('Hi')"/>

the alert pop appears fine when then cursor moves to the input box.

Any ideas, oh wise and enlightened ensemble ?