471,310 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

"document.formname.submit()" doesn't work with Netscape

Don
I can successfully force submission of a <form> using "document.formname.submit()". But, the
submission doesn't appear to occur when used with Netscape. Anybody know why this is happening, and
what I can do to get around this?

Thanks,
Don
-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
Jul 23 '05 #1
3 4500


Don wrote:
I can successfully force submission of a <form> using "document.formname.submit()". But, the
submission doesn't appear to occur when used with Netscape. Anybody know why this is happening, and
what I can do to get around this?


If you have
<form name="formname" action="whatever.php">
then using
document.forms.formname.submit()
should do in browsers, whether it is Netscape or IE.
If you still have problems then provide more details, check the Netscape
JavaScript console first to check for error messages and provide them
including the relevant lines of script and HTML.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2
Don
On Wed, 22 Dec 2004 17:59:24 +0100, Martin Honnen <ma*******@yahoo.de> wrote:


Don wrote:
I can successfully force submission of a <form> using "document.formname.submit()". But, the
submission doesn't appear to occur when used with Netscape. Anybody know why this is happening, and
what I can do to get around this?


If you have
<form name="formname" action="whatever.php">
then using
document.forms.formname.submit()
should do in browsers, whether it is Netscape or IE.
If you still have problems then provide more details, check the Netscape
JavaScript console first to check for error messages and provide them
including the relevant lines of script and HTML.

Martin,

Thanks for your reply. Well, I've gotta hang my head down low...turns out I left out a </body> tag.
Goes to show you how sloppy IE is, as it didn't insist on correct format. I used to use Netscape in
my career and just loved it. But, now that I'm doing web site development, and over 80% of clients
are using IE, I feel obligated to make IE my primary browser, especially, in cases where I don't
have time to deal with compatibility of all browsers. Microsoft creates the buggiest software in
the world, and gets away with it. If I had my way, Gates would be behind bars. Oh well...such a
world.

Thanks again Martin for taking the time to reply, and have a very Happy Holiday Season.
Don
-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----
Jul 23 '05 #3
"Don" <no@adr.com> wrote in message
news:bo********************************@4ax.com...
On Wed, 22 Dec 2004 17:59:24 +0100, Martin Honnen <ma*******@yahoo.de> wrote:


Don wrote:
I can successfully force submission of a <form> using "document.formname.submit()". But, the submission doesn't appear to occur when used with Netscape. Anybody know why this is happening, and what I can do to get around this?
If you have
<form name="formname" action="whatever.php">
then using
document.forms.formname.submit()
should do in browsers, whether it is Netscape or IE.
If you still have problems then provide more details, check the NetscapeJavaScript console first to check for error messages and provide them
including the relevant lines of script and HTML.

Martin,

Thanks for your reply. Well, I've gotta hang my head down low...turns

out I left out a </body> tag. Goes to show you how sloppy IE is, as it didn't insist on correct format. I used to use Netscape in my career and just loved it. But, now that I'm doing web site development, and over 80% of clients are using IE, I feel obligated to make IE my primary browser, especially, in cases where I don't have time to deal with compatibility of all browsers. Microsoft creates the buggiest software in the world, and gets away with it. If I had my way, Gates would be behind bars. Oh well...such a world.


So it's perfectly acceptable for you to leave out a closing </body> tag
in your HTML document, but Bill Gates should be behind bars because
"Microsoft creates the buggiest software in the world"?

How much time should you spend in jail for leaving out the closing
</body> tag?

You blame IE for being "sloppy" but you can't be bothered to validate
your HTML before blaming the browser for a mistake YOU made.

Pot, meet kettle.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Claus - Arcolutions | last post: by
reply views Thread by rosydwin | last post: by

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.