473,390 Members | 1,246 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 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 4642


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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: NotGiven | last post by:
I changed my POST to GET and find appended to the url, the above string. Why and what can I do to NOT have them appended? Thanks.
2
by: Alex | last post by:
Hello, I use the following script inside a page. My page contains : 1 FORM, Some Hidden fields, and one line of JAVASCRIPT in order to instantly post the Form. The problem is that under...
3
by: Pete Wilson | last post by:
How can I highlight the <input type="submit"> object that I want to highlight? 1. In my form, the user enters his ID. He sees two submit "buttons," left labeled Cancel, the right labeled Signup....
2
by: Laermans_k | last post by:
Hi, Does anyone have a solution to use the <input type="file" id="filechooser"> and the <input type="submit" id="submitbutton"> in 1 button click? I've already tried to create a javascript...
2
by: Claus - Arcolutions | last post by:
I got a word document as a stream, and I want to get the text from the word document. But I cant seem to find anything to use for that purpose. The "Microsoft office ?.object" com reference, only...
3
by: Quick | last post by:
.Value is now .setattribute & .getattribute("name", "value") What took the place of .Click? I see .Click is still stated as a method of Forms. I have a reference "xForm" to the exact form I...
4
by: dschruth | last post by:
Hello. Can anybody solve this problem? I am using a server-side language (PERL) to *try* to POST data to a HTTPS login script that doesn't have a standard "submit" button. The form appears...
14
by: white lightning | last post by:
How to have <select onchange="this.form.submit()"and also a Submit button on one form? I have something like this: <form action="<?php $_SERVER; ?>" method="post"...
2
by: ChrisLA | last post by:
Hi; I've seen lots of discussion & disagreement on this issue, so any good explanation would be appreciated. Some people seem to think that "document.GetElementByID("MyName").submit(); should...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.