Re: submit a form using javascript in netscape

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37571
interpreted = N
texte = I found out why it didn't work in netscape if anybody is interested. > >Apparently you need to tell the caller of the function not to expect a >return. > >eg > >onClick=submittheform();return false > >kinda stupid if you ask me... > >regards, > >andrew simpson on 2/8/01 4:57 AM, John Peacock at jpeacock@rowman.com wrote:> Andrew Simpson wrote: >> >> Why will this work in IE and not in Netscape??? >> >> document.forms[1].submit(); > > Maybe because the document.forms[1] set is 0-based? Did you try > > document.forms[0].submit() > > if you have only the one form on the page? > >> >> in ie you can almost get away with >> >> um.yeah.can.you.send.that.form.there.to.my.server-thanks. >> >> Does anybody know how to submit a form in netscape??? > > Try Netscape's site: > > http://developer.netscape.com:80/docs/manuals/js/client/jsref/form.htm#1194123 > > All of the examples you gave should work, unless there is something > else subtly wrong with your page. As you noted, IE is very lazy and > will take almost anything; Netscape tries to be consistent and usually > requires everything to set up correctly before it will work. > > If you have a problem with your javascript in Netscape, you can usually > discover what is going on by type javascript: into the location field. > > HTH > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4720 Boston Way > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 301-429-5747 > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: submit a form using javascript in netscape (Andrew Simpson 2001)
  2. Re: submit a form using javascript in netscape (Celeste Paul 2001)
  3. Re: submit a form using javascript in netscape (John Peacock 2001)
  4. submit a form using javascript in netscape (Andrew Simpson 2001)
I found out why it didn't work in netscape if anybody is interested. > >Apparently you need to tell the caller of the function not to expect a >return. > >eg > >onClick=submittheform();return false > >kinda stupid if you ask me... > >regards, > >andrew simpson on 2/8/01 4:57 AM, John Peacock at jpeacock@rowman.com wrote:> Andrew Simpson wrote: >> >> Why will this work in IE and not in Netscape??? >> >> document.forms[1].submit(); > > Maybe because the document.forms[1] set is 0-based? Did you try > > document.forms[0].submit() > > if you have only the one form on the page? > >> >> in ie you can almost get away with >> >> um.yeah.can.you.send.that.form.there.to.my.server-thanks. >> >> Does anybody know how to submit a form in netscape??? > > Try Netscape's site: > > http://developer.netscape.com:80/docs/manuals/js/client/jsref/form.htm#1194123 > > All of the examples you gave should work, unless there is something > else subtly wrong with your page. As you noted, IE is very lazy and > will take almost anything; Netscape tries to be consistent and usually > requires everything to set up correctly before it will work. > > If you have a problem with your javascript in Netscape, you can usually > discover what is going on by type javascript: into the location field. > > HTH > > John > > -- > John Peacock > Director of Information Research and Technology > Rowman & Littlefield Publishing Group > 4720 Boston Way > Lanham, MD 20706 > 301-459-3366 x.5010 > fax 301-429-5747 > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Andrew Simpson

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCatalog/WebMerchant 2.1 (1998) [BULK] [WebDNA] Snow Leopard Server install problems (2010) Formating Tables w/[founditems] (1998) [WebDNA] 8.0.2 Install on Yosemite (2015) ftp site no longer accepting anonymous login, so I cannotdownload (2002) Items XX to XX shown (1997) Cancel Subscription (1996) Can you specify encoding=multiline? (2000) Getting Emailer to send mail (1997) Webmerchant orders? (2000) Configuring E-mail (1997) expired beta (1997) Read and weep (2003) Searching multiple fields from one form field (1997) Robots fill event log (1997) Apache2 connector (2003) unable to run webcatalog locally (1998) webcat plugin issue (2001) Summary search -- speed (1997) HTML Editors (1997)