OZONE Asylum
Forums
DHTML/Javascript
Error: document.form has no properties
This page's ID:
27669
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Hi... hi have a similar problem, but couldn't solve it by reading this. I have several forms... something like this: [code] <form method='post' id='form_d431edd4e824b919878c94cca014324a' style='display: inline' action='index.php'> <input type='hidden' name='pa' value='1'> <input type='hidden' name='sec' value='29'> <input type='hidden' name='doc_id' value='16'> <input type='hidden' name='backurl' value='/milenio/index.php?pa=1&sec=25'> </form> <a href='javascript:submitFormById("form_d431edd4e824b919878c94cca014324a")'>Editar datos de este documento</a> .... .... <form method='post' id='form_53db6cc665df1ea68569c1381a05cb5d' style='display: inline' action='index.php'> <input type='hidden' name='pa' value='1'> <input type='hidden' name='sec' value='29'> <input type='hidden' name='doc_id' value='17'> <input type='hidden' name='backurl' value='/milenio/index.php?pa=1&sec=25'> </form> <a href='javascript:submitFormById("form_53db6cc665df1ea68569c1381a05cb5d")'>Editar datos de este documento</a> [/code] So, all this forms are in different <div>s (all of the divs are initially hidden (display: none), by a click in another link, each of this links is displayed. The thing is that, I can click all the forms but the first. If I click any link that is not the first of the list, the form is submited. If I click the first link (the link that submits the first form) I get "document.getElementById(formid) has no properties". My javascript method for submiting is: [code] function submitFormById(formid) { document.getElementById(formid).submit(); } [/code] All this forms are generated by a php script (for a list of documents)... and I use md5 ids so they can submit independently. I don't know why I can submit any of the forms but the first. Does the fact that I'm enclosing every form in a <div style='display: none'> affect in any way? I'll appreciate any help. Thanks.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »