Html form action behavior

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I created a form

<form id="feedback" name="feedback" method="post" action="cgi-bin/" onsubmit="return validate_form(this);">


You get the idea.  So basically I need to run some javascript to check
what the user has entered and if everything checks out then send it by
e-mail using FormMail.

This works just fine in IE but not in Firefox.  In Firefox, it does
not seem to process the javascript an simply send it to the cgi
regardless of what is entered.  Could someone enlighten me as to why
it is disregarding the onclick event?  How can I learn about creating
code that is truly universal?

Thank you


Re: Html form action behavior

On Sep 1, 6:00=A0pm, wrote:
Quoted text here. Click to load it

I meant OnSubmit event rather than OnClick.


Re: Html form action behavior wrote:
Quoted text here. Click to load it

Because you don't have one?

Assuming you meant the onsubmit event, how can anyone tell if you
haven't bothered to show us the content of the function it calls?

Quoted text here. Click to load it

It's a challenge, but start by sticking to the standards.


(there may be a newer release but this is the link I have)

Document Object Model (that is, accessing the parts of the web page):

I'm sure there are less technical guides to use instead of these source
documents but I don't know what they are.

Most importantly:

  * don't use document.images, use document.getElementsByTagName("img")

  * don't use document.forms, use document.getElementsByTagName("forms")

  * don't use document.all.something, used

  * use ID attributes for page elements you want to access from your
     code, don't use name attributes

Re: Html form action behavior

On Sep 1, 9:10=A0pm, Harlan Messinger
Quoted text here. Click to load it

Based on your response, and other, I now see that it is not a browser
coding issue but rather a javascript issue.  I didn't think that was
the case, hence I didn't include all my code.  After much testing, I
did identify the issue.  I will take a close look at the links you
provided.  I truly appreciate the guidance!!!


Site Timeline