Submitting

J

James Baker

I have a form that contains another form. For some reason the "nested" form
won't submit via document.FormName.submit(); it says "object is null or not
a value" or something like that. When I place the form outside of the
original form, it works just fine...but that's not really an option here.
Any ideas why it will submit when it's outside of the form, but not when
it's within a form?

Thanks,
James
 
E

Evertjan.

James Baker wrote on 29 jun 2004 in
microsoft.public.inetserver.asp.general:
I have a form that contains another form. For some reason the
"nested" form won't submit via document.FormName.submit(); it says
"object is null or not a value" or something like that. When I place
the form outside of the original form, it works just fine...but that's
not really an option here. Any ideas why it will submit when it's
outside of the form, but not when it's within a form?

It is outside the realm of this serverside NG.

Please ask a clientside [HTML?] Group
 
J

James Baker

Well, perhaps it isn't...but I can't really think of another way. I have a
pretty much "all encompassing" form that contains all of the controls on my
form for posting to a page that processes the data. I have a dropdown
that's contained within this form that needs to run a query whenever it is
changed, and re-populate another dropdown. I figured I could just have the
dropdown within its own form and have it submit to the current page.

I'm having a bad day, lol, I know I'm missing something really obvious but I
can't seem to think straight today.

James
 
S

Steven Burn

You'd be best off using Javascript or JScript to do that;

microsoft.public.scripting.jscript

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
 
B

Bob Barrows [MVP]

James said:
Well, perhaps it isn't...but I can't really think of another way. I
have a pretty much "all encompassing" form that contains all of the
controls on my form for posting to a page that processes the data. I
have a dropdown that's contained within this form that needs to run a
query whenever it is changed, and re-populate another dropdown. I
figured I could just have the dropdown within its own form and have
it submit to the current page.

I'm having a bad day, lol, I know I'm missing something really
obvious but I can't seem to think straight today.

Steve said
You'd be best off using Javascript or JScript to do that;

Right. You can use an xml document, either by using its load method, or via
an xmlhttprequest object, to retrieve data from a server-side page. I have a
demo showing one way to do it at:

http://www.thrasherwebdesign.com/index.asp?pi=links&hp=links.asp

Bob Barrows
 
D

Dave Anderson

James said:
I'm having a bad day, lol, I know I'm missing something
really obvious but I can't seem to think straight today.

My guess? You are missing the will to follow the advice you were given
yesterday in microsoft.public.scripting.jscript; namely that you should
break it into multiple scripts or post-back cycles.

If you have one form with everything on it, why on Earth would you need to
submit a subset when you can just submit the whole thing and *process* a
subset?



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 

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

Forum statistics

Threads
474,158
Messages
2,570,882
Members
47,414
Latest member
djangoframe

Latest Threads

Top