JS
|
Posted: 11/04/2003, 7:44 AM |
|
I have a page with 4 forms on it, 1 record and 3 editable grids. Is there any way to simulate a SUBMIT on the grids when the UPDATE button is pressed on the record form. I tried a Javascript:
function saveall(){
document.form1.submit();
document.form2.submit();
... }
but only the last form actually submits. Is there a way in PHP to call the grid submit functions. Thanks for any help.
|
|
|
ryan
|
Posted: 11/04/2003, 3:21 PM |
|
<!-- begin record1name -->
<form...>
</form>
<!-- end record1name -->
<form Onsubmit="PlaceYourJScriptFunctionHere();" name="{formname}">
<!-- begin grid1name -->
<!-- end grid1name -->
<!-- begin grid2name -->
<!-- end grid2name -->
<!-- begin grid3name -->
<!-- end grid3name -->
</form>
|
|
|
JS
|
Posted: 11/06/2003, 4:13 AM |
|
ryan,
thanks for the response. are you saying that i need to encapsulate all 3 grids in 1 form? these grids each deal with different database tables. how does this allow all 3 Update events to run. thanks again for your help.
|
|
|
|