473,575 Members | 3,323 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Submitting

I have a form that contains another form. For some reason the "nested" form
won't submit via document.FormNa me.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
6 1350
James Baker wrote on 29 jun 2004 in
microsoft.publi c.inetserver.as p.general:
I have a form that contains another form. For some reason the
"nested" form won't submit via document.FormNa me.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
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******@hotma il.com> wrote in message
news:#G******** ******@tk2msftn gp13.phx.gbl...
I have a form that contains another form. For some reason the "nested" form won't submit via document.FormNa me.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
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******** ******@TK2MSFTN GP11.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******@hotma il.com> wrote in message
news:#G******** ******@tk2msftn gp13.phx.gbl...
I have a form that contains another form. For some reason the "nested"

form
won't submit via document.FormNa me.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
You'd be best off using Javascript or JScript to do that;

microsoft.publi c.scripting.jsc ript

--

Regards

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

Keeping it FREE!
"James Baker" <cp******@hotma il.com> wrote in message
news:Ov******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP11.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******@hotma il.com> wrote in message
news:#G******** ******@tk2msftn gp13.phx.gbl...
I have a form that contains another form. For some reason the "nested"
form
won't submit via document.FormNa me.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
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
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.publi c.scripting.jsc ript; 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2311
by: Mats | last post by:
Hi Maybee a little bit of topic, but is it possible to stay on the submitting page once you've clicked submit. This is to get processing done on page B when you submit on page A, and the page should not change. Normally I use a response.redirect to the submitting page, but that can't be done in one case. Mats PS I've found that one solution...
2
2214
by: Greg T | last post by:
Hi, I have a rather long form that I don't want people submitting unless they are absolutely sure they are ready. I figured the easiest way to prevent an accidental form submission by way of hitting of the enter key was to simply not have a submit button, instead going for a regular anchor which calls a javascript confirmation box and...
5
1897
by: Don | last post by:
I have a need to submit a form, but don't need the user to click on a button. How do I do this? Is there some way, using JavaScript, to setup a <form> tag to do this? Thanks, Don ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000...
1
1520
by: Hello | last post by:
Scenario: A page creates a pop up and that pop up submits a form. Is there a way to detect whether the submitting was successful or not, so true/false could be passed to the parent window?
4
2788
by: Super Steve | last post by:
I'm trying to write a little script that disables the submit button on a form, changes the text of the button, and then submits the form. Can anyone tell me why this works ok: <input type="button" value="Submit" onClick="this.disabled=true; this.value = 'Submitting...'; this.form.submit();"> But when I try to make a function it doesn't...
85
4259
by: Russ | last post by:
Every Python programmer gets this message occasionally: IndexError: list index out of range The message tells you where the error occurred, but it doesn't tell you what the range and the offending index are. Why does it force you to determine that information for yourself when it could save you a step and just tell you? This seems like a...
3
1894
by: kgbalaji1980 | last post by:
Hi all, i want the jscript coding for more than one form in one page and submitting the same . ie one parent form and one append button when we click that button one child form will display and so on. we have to submitting for the same regards Balaji
18
13103
by: NavinM | last post by:
I have a couple of forms that are misbehaving in FireFox, but work fine in IE. when i do submit( with submit button) a javascript function validates all of the fields entered, and stops the submission if there is an error. Sample (obviously not working code): <html> <head> <script type="text/javascript"> function Submit() {
1
1219
by: SachinBhargava | last post by:
Hi, I am faceing the problem while submitting the same page in ASP. When i am submitting the page, I am showing the java script alert message before closing the pop up window. My problem is, when the alert come the ASP page turn to white. The data is successfully submitted but white page not looks good. I am using the Frameset for submitting...
0
7843
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7773
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8141
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6514
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5660
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5336
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2283
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1378
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1103
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.