K
kjex
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.getAttributeKey().toString()
%>" value="<isa:translate key="marketing.jsp.ChangeFields"/>">
<input type=text name="SaveMktProfile" value="<isa:translate
key="b2c.marketing.profile.saveButton"/>" class="FancyButton">
<input type=text name="CancelMktProfile" value="<isa:translate
key="marketing.jsp.Cancel"/>" class="FancyButton">
(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="javascript:Submitscript('SaveMktProfile')">
<script>
function submitscript(action){
document.form[1].dummy.name=action;
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.getAttributeKey().toString()
%>" value="<isa:translate key="marketing.jsp.ChangeFields"/>">
<input type=text name="SaveMktProfile" value="<isa:translate
key="b2c.marketing.profile.saveButton"/>" class="FancyButton">
<input type=text name="CancelMktProfile" value="<isa:translate
key="marketing.jsp.Cancel"/>" class="FancyButton">
(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="javascript:Submitscript('SaveMktProfile')">
<script>
function submitscript(action){
document.form[1].dummy.name=action;
documen.form[1].submit();
}
</script>
but this don't work..
Have I just misunderstand the whole thing!?