Home > Archive > ASP > July 2004 > Submitting
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| James Baker 2004-06-29, 3:55 pm |
| 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
| |
| Evertjan. 2004-06-29, 3:55 pm |
| 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)
| |
| Steven Burn 2004-06-29, 3:55 pm |
| 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" <cppjames@hotmail.com> wrote in message
news:#G8TbefXEHA.3012@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
>
>
| |
| James Baker 2004-06-29, 3:55 pm |
| 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" <pvt@noyb.com> wrote in message
news:uEF9dkfXEHA.2844@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" <cppjames@hotmail.com> wrote in message
> news:#G8TbefXEHA.3012@tk2msftngp13.phx.gbl...
> form
> not
here.[color=darkred]
>
>
| |
| Steven Burn 2004-06-29, 3:55 pm |
| 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" <cppjames@hotmail.com> wrote in message
news:OvjVbsfXEHA.4000@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" <pvt@noyb.com> wrote in message
> news:uEF9dkfXEHA.2844@TK2MSFTNGP11.phx.gbl...
"nested"[color=darkred]
or[color=darkred]
> here.
when[color=darkred]
>
>
| |
| Bob Barrows [MVP] 2004-06-29, 3:55 pm |
| 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/in...ks&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.
| |
| Dave Anderson 2004-07-01, 8:55 pm |
| 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.
|
|
|
|
|