On a front-end page, you need to submit parameters via JavaScript, use JS to create form forms, and append the parameters into the form to submit the code as follows:
JS Code: Function loadconfig (Gameurl,skinid) { var temp = document.createelement ("form"); temp.action = "${createlink (Controller: ' Mobileconfig ', action: ' Beforelaunchconfig ')}"; temp.method = "POST"; temp.style.visibility= "Hidden"; var opt = document.createelement ("input"); opt.name = "Gameurl"; opt.id = "Gameurl"; opt.value = gameurl; var opt2 = document.createelement ("input"); opt2.name = "SkinId"; opt2.id = "SkinId"; opt2.value = skinId; &nBsp; temp.appendchild (opt); temp.appendchild (OPT2); temp.submit (); }
The feature was successfully run on both Chrome and Safari, but was not successfully submitted when using Firefox (17.0.1), and after research found that Firefox submitted a page form when it required a complete label for the page, that is JS Code: Function loadconfig (Gameurl,skinid) { var pagediv = document.getelementbyid ("page"); var temp = document.createelement ("form"); temp.action = "${createlink (Controller: ' Mobileconfig ', action: ' Beforelaunchconfig ')} "; temp.method = "POST"; temp.style.visibility= "hidden"; temp.name = "Loadconfigpage"; var opt = Document.createelement ("input"); opt.name = "Gameurl"; opt.id = "Gameurl"; opt.value = gameUrl; var opt2 = document.createelement ("input"); opt2.name = "SkinId";      &NBsp; opt2.id = "SkinId"; opt2.value = skinId; temp.appendchild (opt); temp.appendchild (OPT2); pagediv.appendchild (temp); temp.submit (); }
Append the form form created here in <body> tags, and then commits it successfully. Reference blog: http://bytes.com/topic/javascript/answers/542837-document-getelementbyid-myform-submit-does-not-work