Dynamic form processing

P

Peter Laman

In an HTML form I dynamically create hidden inputs (<input
type="hidden"...) with JavaScript. However, if the submit button is
hit, the data from these dynamically created inputs is not included on
the URL (if I use GET), or in the post data (if I use POST).
Apparently the changes to the HTML DOM are not completely processed
internally. Is there a way to force this?
 
H

Holger Jeromin

Peter Laman schrieb am 06.05.2008 10:16:
In an HTML form I dynamically create hidden inputs (<input
type="hidden"...) with JavaScript. However, if the submit button is
hit, the data from these dynamically created inputs is not included on
the URL (if I use GET), or in the post data (if I use POST).

Which Browser?
 
G

GArlington

In an HTML form I dynamically create hidden inputs (<input
type="hidden"...) with JavaScript. However, if the submit button is
hit, the data from these dynamically created inputs is not included on
the URL (if I use GET), or in the post data (if I use POST).
Apparently the changes to the HTML DOM are not completely processed
internally. Is there a way to force this?

Make sure that you "dynamically create hidden inputs" inside the form
you are trying to submit, use Firebug or IE dev toolbar (or any other
DOM viewer) to check that they are placed and formatted correctly
within <form>...</form> tags that you are trying to submit...
 
P

Peter Laman

Peter, show us your code your using to add the new hidden element...

Graham

Well, I already chose another solution and I could not duplicate the
problem. I must have overlooked something. Sorry for bothering you
guys.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top