To include a JavaScript submission button:
Add HTML code to create a button for users to click in order to run the JavaScript submission mechanism. For example:
<INPUT TYPE= "BUTTON" VALUE="Submit" ONCLICK= "SubmitNow();">
Type your script similar to the following:
function SubmitNow()
{var llfv = document.myForm.LL_FUNC_VALUES.value;
if ( llfv.substring( 0, 14 ) != "A<1,?,'func'='" )
{alert( "llfuncvalues is not an assoc???" );}
else{if ( llfv.substring( 14, 27 ) != "Form.SaveForm" )
{alert( "llfuncvalues is not saving???" );}
else{var old = llfv;
// change the function from Form.SaveForm to Form.SubmitForm
llfv = "A<1,?,'func'='Form.SubmitForm'" + old.substring( 28, old.length );
// save this back to llfuncvalues
document.myForm.LL_FUNC_VALUES.value = llfv;//alert(llfv);}}
// submit the form
document.myForm.submit( "contentserver.exe#FDF", false, true );}
For information related to this procedure, see Adding an HTML File as a View.