to explain in somewhat more detail:
I have 2 nested divs
The user enters data into a text box in the outer div. This
triggers a NEW XMLHtttpRequest which invokes a .php script.
The output of the script lists the search data in the 2nd div
with a button to edit the selected data item.
The button click calls a js function that calls another new
XMLHtttpRequest which is serviced by another php script that puts
the item's data back into a form in the 2nd div
The form contains data elements and a button to call a js script
to save the edited data.
That script fails because it can not find the form.
rather than copy the entire function I list only enough to show
the failure.
------------------------------
function saveItem () {
alert ("saveItem - entering 208")
alert ("saveItem - " +
document.getElementById("EditItemsForm"));
The both alerts are executed with the 2nd showing
"saveItem - " + null
If I change the EditItemsForm to another element that is not
dynamically generated it does not fail; it returns the id.
Thank you very much for taking the time to read this.
-bill