I have a nested form in an asp.net page. This nested form is a login/password which I will pass over to another application. I need to submit the nested form using javascipt. However I am having trouble getting a reference to the nested form.
// this is not working for me:
document.forms[1]submit();
The nested form is a plain html form (doesn't have a runat server) which should only pass over the login and password inpt values.
It actually works fine for me if the 2nd form is not nested, but insted placed below the asp.net form. Is my only option to leave the form at the bottom of the page and use javascript to populate it and submit it?
Does anyone see any security issues with this technique o开发者_如何学Pythonf cross page posting?
Nesting forms in HTML is not allowed, so yes you have to keep it separate.
精彩评论