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 simpsonon 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:
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 simpsonon 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:
emailer (1997)
$Quit, $CloseDatabase corrections (1997)
Null Chars (1999)
Is there a way to just get to the last record in the database? (1997)
Imagemagick and fonts (2004)
Bug Report, maybe (1997)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
no global [username] or [password] displayed ... (1997)
Re[2]: when is failing to [URL]ize values in a comparison ri (1999)
WebStar Secure on other machine (1997)
problem serving foreign languages text (1997)
% (mod) was looping table rows (1999)
Dubble Sku's in a Database (1999)
Re:Password Authentication - request example (1998)
WidgetSoftware Downloads (2003)
[OT] What's a 412 error? (2003)
Email notification to one of multiple vendors ? (1997)
Server slowing down. (1997)
Q on the best way to set up a security function so users canedit records (1999)
Webcatalog 3.0.8 on PWS (2000)