I have a conceptual DOM question - I hope this makes sense.
My page (call it "Home") contains the JS AJAX Updater prototype on it, I select the entry to edit and calls "page B" (partial) in a div on the main page.
When I click on the form in partial, it calls the function in "Main", however Updater "Presumably" updates the div on the partial ... but it never does. I am pretty sure that the DOM cannot find it because it was handed down or brought to Main ...
How to solve this problem?
MAIN
<script> </script> <div id="mainMessage"></div> <ul> <li><a onClick="getItem( 1 );">item 1</a></li> <li><a onClick="getItem( 2 );">item 2</a></li> <li><a onClick="getItem( 3 );">item 3</a></li> </ul> <div id="itemDetail"></div>
Page B (Partial)
<div id="subMessage"></div> <form> -- edit record --- <input type="button" onClick="assignItem( this.form );" ></form>
BTW - it should be noted that this is a "reduced" sample (and may have typos), I am returning the data as expected, there are no problems with AJAX, it is just that the div IN in part seems not to be accessible to the function on Main.
thanks
source share