This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > February 2006 > Re: Verification error using a form
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: Verification error using a form
|
|
| Murray *TMM* 2006-02-24, 10:15 pm |
| No, don't do that. The onSubmit event handler cannot go into the action
attribute in that way.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"person1229" <webforumsuser@macromedia.com> wrote in message
news:dtna9q$gg2$1@forums.macromedia.com...
> <form action="onSubmit=gradeit()"><input type="submit" value="Grade Me!"
> name="B1"> <input type="reset" value="Reset" name="B2"></form>
> i think, maybe not, but grade it should definitely go in the action.
> Originally posted by: Css Lover
> Tried putting that bit of code in, but to be honest, I don't know what
> 'action; I need to specify and the javaquiz works as it is.
>
> The WC3 make mistakes on a page using this sort of script also.
>
> All the form does is bring up the answers using simple javascript, it all
> works so I am not sure why this 'action' needs to be put in there, but
> have to
> presume that it is importent for some reason.
>
> The htm code I use is as follows
>
> <form><input type="button" value="Grade Me!" name="B1"
> onClick="gradeit()">
> <input type="button" value="Reset" name="B2"
> onClick="document.myquiz.reset()"></form>
>
> All I need to know is wereI put this 'action' and what it should do
> <action=
> "?">
>
> Thanks in anticipation.
>
>
>
>
>
>
>
| |
| Murray *TMM* 2006-02-24, 10:15 pm |
| Put it in as I showed.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"Css Lover" <webforumsuser@macromedia.com> wrote in message
news:dtna1a$g2p$1@forums.macromedia.com...
> Tried putting that bit of code in, but to be honest, I don't know what
> 'action;
> I need to specify and the javaquiz works as it is.
>
> The WC3 make mistakes on a page using this sort of script also.
>
> All the form does is bring up the answers using simple javascript, it all
> works so I am not sure why this 'action' needs to be put in there, but
> have to
> presume that it is importent for some reason.
>
> The htm code I use is as follows
>
> <form><input type="button" value="Grade Me!" name="B1"
> onClick="gradeit()">
> <input type="button" value="Reset" name="B2"
> onClick="document.myquiz.reset()"></form>
>
> All I need to know is wereI put this 'action' and what it should do
> <action=
> "?">
>
> Thanks in anticipation.
>
>
>
>
>
| |
| Css Lover 2006-02-24, 10:15 pm |
| Tried putting that bit of code in, but to be honest, I don't know what 'action;
I need to specify and the javaquiz works as it is.
The WC3 make mistakes on a page using this sort of script also.
All the form does is bring up the answers using simple javascript, it all
works so I am not sure why this 'action' needs to be put in there, but have to
presume that it is importent for some reason.
The htm code I use is as follows
<form><input type="button" value="Grade Me!" name="B1" onClick="gradeit()">
<input type="button" value="Reset" name="B2"
onClick="document.myquiz.reset()"></form>
All I need to know is wereI put this 'action' and what it should do <action=
"?">
Thanks in anticipation.
| |
| person1229 2006-02-24, 10:15 pm |
| <form action="onSubmit=gradeit()"><input type="submit" value="Grade Me!"
name="B1"> <input type="reset" value="Reset" name="B2"></form>
i think, maybe not, but grade it should definitely go in the action.
Originally posted by: Css Lover
Tried putting that bit of code in, but to be honest, I don't know what
'action; I need to specify and the javaquiz works as it is.
The WC3 make mistakes on a page using this sort of script also.
All the form does is bring up the answers using simple javascript, it all
works so I am not sure why this 'action' needs to be put in there, but have to
presume that it is importent for some reason.
The htm code I use is as follows
<form><input type="button" value="Grade Me!" name="B1" onClick="gradeit()">
<input type="button" value="Reset" name="B2"
onClick="document.myquiz.reset()"></form>
All I need to know is wereI put this 'action' and what it should do <action=
"?">
Thanks in anticipation.
| |
| Outside5.com 2006-02-24, 10:15 pm |
| Css Lover,
The "action" of a form field points the form to an action page.
If you want the processing of form data done on processing.cfm, then use <form
action="processing.cfm">. If the form should submit to itself (e.g. the
processing will be invoked upon these form variables existing in the 'form'
scope), then as Murray suggested <form action=""> will submit the form to
itself.
HTH,
Paul
| |
| Css Lover 2006-02-24, 10:15 pm |
| HTML FORM PROBLEM SOLVED
Thanks Murray, you took a weight off my shoulders there.
How I solved it was simple, and here is the solution.
I should have stated there were two forms, one that top of the webpage
'wrapping' the multi choice quiz, that code is simple and all we need is to put
this...
<form action="" name="myquiz">
We obviously close it with a </form> at the bottom.
After the questions, you have a submit button so the java brings up a neat
page with answers and your percentage.
That form is a bit more complicated, and the correct code, verified as html
4.01 (maybe xhtml) is as follows.
<form action=""> <input type="button" value="Grade Me!" name="B1"
onClick="gradeit()"> <input type="button" value="Reset" name="B2"
onClick="document.myquiz.reset()"></form>
The actual JavaScript for that quiz is everywhere, and much used.
Thanks again mate, you are a Gentleman and a Scholar
3 days of Wc3 Hell are now at an end.
:D
| |
| Css Lover 2006-02-24, 10:15 pm |
| Just as an aside, I was so frustrated with getting that Java quiz right, I
ended coding a neat little css based quiz in which you switch styles to see the
answers hightlighted and just add a small input button, that's xhtml 1.1
verified, and also 100% compatible with visually disabled impaired folk.
The things you do for web design!
Ah well, I can have two styles of quiz now.
| |
| Murray *TMM* 2006-02-24, 10:16 pm |
| For what it's worth -
> After the questions, you have a submit button so the java brings
It's javascript, not Java.
I'm glad that solved it for you.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"Css Lover" <webforumsuser@macromedia.com> wrote in message
news:dtne2e$lqa$1@forums.macromedia.com...
> HTML FORM PROBLEM SOLVED
>
> Thanks Murray, you took a weight off my shoulders there.
>
> How I solved it was simple, and here is the solution.
>
> I should have stated there were two forms, one that top of the webpage
> 'wrapping' the multi choice quiz, that code is simple and all we need is
> to put
> this...
>
> <form action="" name="myquiz">
>
> We obviously close it with a </form> at the bottom.
>
> After the questions, you have a submit button so the java brings up a neat
> page with answers and your percentage.
>
> That form is a bit more complicated, and the correct code, verified as
> html
> 4.01 (maybe xhtml) is as follows.
>
> <form action=""> <input type="button" value="Grade Me!" name="B1"
> onClick="gradeit()"> <input type="button" value="Reset" name="B2"
> onClick="document.myquiz.reset()"></form>
>
> The actual JavaScript for that quiz is everywhere, and much used.
>
> Thanks again mate, you are a Gentleman and a Scholar
>
> 3 days of Wc3 Hell are now at an end.
>
> :D
>
| |
| Css Lover 2006-02-24, 10:16 pm |
| Originally posted by: Newsgroup User
For what it's worth -
It's javascript, not Java.
I'm glad that solved it for you.
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
Thanks again, I've just spent a while correcting my spellings of JavaScript
(which I spelt as either 'java' or 'java script'.
By the way, I've now done that quiz and verified it as xhtml1.1, mostly just
closed end tags but the actual form code is different.
I suppose I should post it to close this discussion.
I'll remember to call javascript for what it actually is
I only just realised that webpage is spelt web page and website as web site.
And I've only just 'found' Dreamweavers spellchecker.
15 days to go on a trial, but I'm buying this software, without a doubt!
Cheers again.
| |
| Murray *TMM* 2006-02-24, 10:16 pm |
| > I only just realised that webpage is spelt web page and website as web
> site.
I think you will find equal numbers of those in use....
Good luck!
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
"Css Lover" <webforumsuser@macromedia.com> wrote in message
news:dtnhhd$qll$1@forums.macromedia.com...
> Originally posted by: Newsgroup User
> For what it's worth -
>
> It's javascript, not Java.
>
> I'm glad that solved it for you.
>
> --
> Murray --- ICQ 71997575
> Team Macromedia Volunteer for Dreamweaver
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
>
> Thanks again, I've just spent a while correcting my spellings of
> JavaScript
> (which I spelt as either 'java' or 'java script'.
>
> By the way, I've now done that quiz and verified it as xhtml1.1, mostly
> just
> closed end tags but the actual form code is different.
>
> I suppose I should post it to close this discussion.
>
> I'll remember to call javascript for what it actually is
>
> I only just realised that webpage is spelt web page and website as web
> site.
>
> And I've only just 'found' Dreamweavers spellchecker.
>
> 15 days to go on a trial, but I'm buying this software, without a doubt!
>
> Cheers again.
>
>
>
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|