By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,027 Members | 1,088 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,027 IT Pros & Developers. It's quick & easy.

Submitting

P: n/a
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
Jul 19 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2

P: n/a
Because you can't nest a form inside a form?

May I ask, why is this necessary?

--

Regards

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

Keeping it FREE!
"James Baker" <cp******@hotmail.com> wrote in message
news:#G**************@tk2msftngp13.phx.gbl...
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

Jul 19 '05 #3

P: n/a
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

"Steven Burn" <pv*@noyb.com> wrote in message
news:uE**************@TK2MSFTNGP11.phx.gbl...
Because you can't nest a form inside a form?

May I ask, why is this necessary?

--

Regards

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

Keeping it FREE!
"James Baker" <cp******@hotmail.com> wrote in message
news:#G**************@tk2msftngp13.phx.gbl...
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


Jul 19 '05 #4

P: n/a
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!
"James Baker" <cp******@hotmail.com> wrote in message
news:Ov**************@TK2MSFTNGP09.phx.gbl...
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

"Steven Burn" <pv*@noyb.com> wrote in message
news:uE**************@TK2MSFTNGP11.phx.gbl...
Because you can't nest a form inside a form?

May I ask, why is this necessary?

--

Regards

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

Keeping it FREE!
"James Baker" <cp******@hotmail.com> wrote in message
news:#G**************@tk2msftngp13.phx.gbl...
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



Jul 19 '05 #5

P: n/a
James Baker wrote:
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/ind...s&hp=links.asp

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #6

P: n/a
James Baker wrote:
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.
Jul 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.