[Phpslash-trackers] [ phpslash-Bugs-848888 ] Template's HTML Form handling is not multilanguage comp
Brought to you by:
joestewart,
nhruby
From: SourceForge.net <no...@so...> - 2003-11-25 12:18:59
|
Bugs item #848888, was opened at 2003-11-25 13:18 Message generated for change (Settings changed) made by tobozo You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110566&aid=848888&group_id=10566 Category: submit Group: enhancement Status: Open Resolution: None Priority: 5 Submitted By: tobozo (tobozo) Assigned to: Nobody/Anonymous (nobody) >Summary: Template's HTML Form handling is not multilanguage compliant Initial Comment: There is no way to alter the value of the submit buttons without breaking the form system. The tags <input type=submit name=submit> are causing this. Because 'submit' is a reserved function name in javascript, the function submit() won't work. Same thing for storyAdmin, topicAdmin, etc, etc. .. Here's a little explanation of the problem http://archives.hwg.org/hwg- languages/000e01bfd18a$23700860$4596a8c0@kpurtell Here's a little hack that will put the submit value in the URL instead of in the POST data (worked fine on a 0.7.2) : first I remove all input tags called 'submit', then I add this javascript assuming I'm using a <form name=myform> <script type="text/javascript"> function subForm(action) { document.myform.action = '{ACTION_URL}? submit='+action; document.myform.submit(); } </script> So I can use a href link instead of the submit button : <a href="javascript:subForm('save');" >Save me!</a> hope this helps tbz ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110566&aid=848888&group_id=10566 |