2013年9月26日星期四

Nested FORM, inside the FORM unable to submit ,








<%
for (int i = 0; i Photo photo = photoList.getIndex (i);
%>


src = "< % = photo.getPath ()%> \ <% = photo.getName ()%> "
alt = "$ { photo.shuoming} "width = 150 height = 113
border = '0 ' ; align = "middle">





<%
}
%>





wow how to solve this ? Can not two FORM ~ ~ ~ I know it is not enough to drop ~ there are other ideas do
------ Solution ------------------- -------------------------


src = "< % = photo.getPath ()%> \ <% = photo.getName ()%> "
alt = "$ { photo.shuoming} "width = 150 height = 113
border = '0 ' ; align = "middle">





<%
}
%>


you want to achieve this is nothing more than a single deletion is not it , that you can use Delete wrote not submit form
------ For reference only ----------------- ----------------------
why are you two form nested. . . How can there be so used . . . .
------ For reference only -------------------------------------- -
form can not be nested ~
------ For reference only ---------------------------- -----------
parallel is not on the line , have nested
------ For reference only --------------- ------------------------
form nested there may be unexpected exception is best not so used
- ----- For reference only ---------------------------------------
inside through onclick, then this.location this can it ?
------ For reference only -------------------------------------- -
FORM is not allowed nested
------ For reference only -------------------------- -------------
think of any other way to achieve two action
------ For reference only --------------- ------------------------
this seems not ~ ~
------ For reference only ------ ---------------------------------
Why not you test it ? Replace the corresponding parameter own
------ For reference only --------------------------------- ------
think of any other way to achieve two action   synthesis of an action of the two , on the line chanting, not, then consider ajax. . .
------ For reference only -------------------------------------- -
think of any other way to achieve two action        synthesis of an action of the two , on the line chanting, not, then consider ajax. . .   How do together ? With a different action
------ For reference only --------------------------------- ------
form a nested case only by getting the form object . submit () to submit this way . . . Because the browser does not know what you specifically want to submit the form . ,
------ For reference only ------------------------------------- -
how this warning ?
------ For reference only -------------------------------------- -
how it should do ?
------ For reference only -------------------------------------- -
because you are inside the loop join form, then for each form to add a unique id, the above can be used
then submit it using document.getElementById ("xx"). submit (); As specified xx is how , you can specify when the loop is good . Such as : checkInvalidate ("form <% = i%>")


没有评论:

发表评论