napesjp
05-17-2010, 05:22 PM
1) Script Title: DHTML Window widget (v1.1)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem:
I am trying to run some javascript calls on an html form within an ajax content window (window 3). It does not seem to be working properly. Is there a special way to reference object ids or function calls within the window that I'm missing?
for example, the following does not work inside the modal window:
<script type="text/javascript">
function myFunction(id) {
document.getElementById( id ).style.background="DBDBDB"}
</script>
...
<input type="text" name="foo" id="foo" onClick="myFunction('foo');">
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem:
I am trying to run some javascript calls on an html form within an ajax content window (window 3). It does not seem to be working properly. Is there a special way to reference object ids or function calls within the window that I'm missing?
for example, the following does not work inside the modal window:
<script type="text/javascript">
function myFunction(id) {
document.getElementById( id ).style.background="DBDBDB"}
</script>
...
<input type="text" name="foo" id="foo" onClick="myFunction('foo');">