I'm rewriting a webshop where all the "ugly submitbuttons" are changed
with more complexed and nice looking <a href="#" onclick="">'s
So here is the case, in the form there are several submitbuttons that
makes the backend javaengine deside what do do;
<input type=submit name="More<%= question.getAtt ributeKey().toS tring()
%>" value="<isa:tra nslate key="marketing. jsp.ChangeField s"/>">
<input type=text name="SaveMktPr ofile" value="<isa:tra nslate
key="b2c.market ing.profile.sav eButton"/>" class="FancyBut ton">
<input type=text name="CancelMkt Profile" value="<isa:tra nslate
key="marketing. jsp.Cancel"/>" class="FancyBut ton">
(makes the buttons; more, save and cancel)
How can I submit the form with javascript?
I tried make a dummy field <input type=hidden name="dummy"
value="xxx"> and call the submitscript:
<a href="javascrip t:Submitscript( 'SaveMktProfile ')">
<script>
function submitscript(ac tion){
document.form[1].dummy.name=act ion;
documen.form[1].submit();
}
</script>
but this don't work..
Have I just misunderstand the whole thing!?
with more complexed and nice looking <a href="#" onclick="">'s
So here is the case, in the form there are several submitbuttons that
makes the backend javaengine deside what do do;
<input type=submit name="More<%= question.getAtt ributeKey().toS tring()
%>" value="<isa:tra nslate key="marketing. jsp.ChangeField s"/>">
<input type=text name="SaveMktPr ofile" value="<isa:tra nslate
key="b2c.market ing.profile.sav eButton"/>" class="FancyBut ton">
<input type=text name="CancelMkt Profile" value="<isa:tra nslate
key="marketing. jsp.Cancel"/>" class="FancyBut ton">
(makes the buttons; more, save and cancel)
How can I submit the form with javascript?
I tried make a dummy field <input type=hidden name="dummy"
value="xxx"> and call the submitscript:
<a href="javascrip t:Submitscript( 'SaveMktProfile ')">
<script>
function submitscript(ac tion){
document.form[1].dummy.name=act ion;
documen.form[1].submit();
}
</script>
but this don't work..
Have I just misunderstand the whole thing!?
Comment