A
^AndreA^
Don't use a submit button, use an ordinary one. Do your validation, and
if all is OK do the submit from within js.
yeah, but we have just said that js could be disabled...
Don't use a submit button, use an ordinary one. Do your validation, and
if all is OK do the submit from within js.
^AndreA^ said:and then I tie a js event to the submit button.
So, when the user presses the button the js function starts, but also
the data is sent to the server... because pressing the button you
active two things simultaneously.
I'm sure there is a workaround...
Basically the question is:
how can I tie a js function to the form without breaking it?
how can I prevent the form to send data if js "says" there is
something wrong?
^ Childish indulgence.
Poor choice of design implementation.
Ok, so ....you can you check if the fields are filled up correctly -
(before - treating the form in php) without using javascript ?
Travis Newbury said:There you go again dorayme, telling someone what I was thinking. You
haven't a clue what I am thinking. I simply stated that when a
visitor comes to a page that is not configured for their browser, they
have to make a choice. Change the browser, or go away.
Travis Newbury said:One man's "competent" is another man's fool. Someone you may see as an
expert, I might see as an amateur.
Why would you simply be telling everyone the bleeding obvious? O wait,
of course, I nearly forgot, you are demonstrating your continuing role
as Chief Guardian of the motherhood statement.
Travis Newbury said:Apparently it is not so obvious to everyone or I would not find the
need to state it.
It's like being on the lesser side of a killfile...
Do you think Jonathan Little is such an idiot
that he cannot see the bleeding obvious?
Can't you see that he pays you a compliment and is arguing against what
he thinks are deeper assumptions or positions?
He does not know what I know about you.
You have no position, that what
we see is what we get, impossible-to-disagree-with motherhood
statements.
It ain't obvious to me. What's the "motherhood statement"; -everyone who
ain't cool to the implicit observer is a mutha or what?
Travis said:....
If I did not state the "obvious" then silent readers would only be
give the party line "flash is evil", "don't use javascript","fixed
width sucks" bla bla bla... Newbees and the silent type need to
understand that there is another line of thought when comes to web
development.
Travis Newbury said:If I did not state the "obvious" then silent readers would only be
give the party line "flash is evil", "don't use javascript","fixed
width sucks" bla bla bla... Newbees and the silent type need to
understand that there is another line of thought when comes to web
development.
On the contrary, I believe that the killfiler is much more adversely affected
by his action than is the killfilee. Frustrated, self-limiting people are
generally their own worst enemies.
So is this my cue to complain about your broken sig separator and your
intentionally obnoxious sig? You know, lest the "silent readers" fail to
understand that there is another line of thought when it comes to
netiquette?
Where the hell do you really think you are, Travis? Kindergarten?
And don't you be telling me about the silent type.
How funny coming from a 'guy' who has a driving need to boast about his huge
ego.
I've just been following this rilly *rilly* useful thread.
So tell me: just how many angels *were* there on that pinhead?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.